1
0
Fork
You've already forked vulpes
0
Yet another XMPP Bot
  • C 92.7%
  • M4 5.1%
  • Makefile 1.9%
  • Shell 0.3%
2024年09月20日 21:32:46 +02:00
doc vulpes - A XMPP Bot 2024年09月20日 21:32:46 +02:00
modules vulpes - A XMPP Bot 2024年09月20日 21:32:46 +02:00
src vulpes - A XMPP Bot 2024年09月20日 21:32:46 +02:00
bootstrap.sh vulpes - A XMPP Bot 2024年09月20日 21:32:46 +02:00
changelog vulpes - A XMPP Bot 2024年09月20日 21:32:46 +02:00
configure.ac vulpes - A XMPP Bot 2024年09月20日 21:32:46 +02:00
LICENSE vulpes - A XMPP Bot 2024年09月20日 21:32:46 +02:00
Makefile.am vulpes - A XMPP Bot 2024年09月20日 21:32:46 +02:00
README.md vulpes - A XMPP Bot 2024年09月20日 21:32:46 +02:00
run-debug.sh vulpes - A XMPP Bot 2024年09月20日 21:32:46 +02:00
vulpes_mod_api.h vulpes - A XMPP Bot 2024年09月20日 21:32:46 +02:00

vulpes - XMPP Bot

vulpes is a modular XMPP bot written in C. There are basically two parts of the bot. The vulpes core functionality and a set of modules which can be used.

Core Service

The core service of the bot will read the configuration file ~/.config/vulpes.conf.

[account]
xmppid=local_part@domain.tld
pwd=botspassword
muc=room@chat.domain.tld/BotName
db=test.db
admins=admin1@domain.tld;admin2@domain.tld

The bot will load the modules defined in the [modules] section.

[modules]
admin=modules/mod_admin.so
echo=modules/mod_echo.so

After connecting to the XMPP server, the bot will join the operator muc which has been defined in muc and the MUCs stored with autojoin within the bookmarks.

The bot has a housekeeper function, which will run every 5 minutes (300 seconds) and will call the time-based function for modules every second.

Incoming chat and group chat messages will be forward to the modules. Core is quite lazy and is not doing much.

Modules

Coming soon

Build the bot

The bot needs:

  • libstrophe 0.10.0

  • glib 2.58.3

  • libstrophe >= 0.10.0

  • libcurl >= 7.74.0

  • libxml-2.0 >= 2.9.10

  • sqlite3 >= 3.34.1

    ./bootstrap.sh && ./configure && make

More information