- Joined
- Feb 14, 2015
- Messages
- 5,643
- Solutions
- 559
- Reaction score
- 3,948
Self-hosted Discord bot to communicate to and from your server. Automatically inserts tables needed to database on first-time setup.
Git repo: delusionx/Serpent (https://github.com/delusionx/Serpent/)
Pre-implemented commands:
Command prefix:
Example on how to add a new command: Add uptime command · delusionx/Serpent@2187339 (https://github.com/delusionx/Serpent/commit/2187339f29c25b27549380a3d9aa5d0d991fe086)
Example on sending data from server to the bot with a custom event: Player death event · delusionx/Serpent@02825d5 (https://github.com/delusionx/Serpent/commit/02825d54d26e520a3c8c2aa41b23bdf01ea9ff4b)
If you want to send data from your server to the bot, use the
If you'd like to see it in action, join my testing server: Join the Serpent Discord Server! (https://discord.gg/NqPmGDz)
Git repo: delusionx/Serpent (https://github.com/delusionx/Serpent/)
Pre-implemented commands:
online
, uptime
Command prefix:
;
Example on how to add a new command: Add uptime command · delusionx/Serpent@2187339 (https://github.com/delusionx/Serpent/commit/2187339f29c25b27549380a3d9aa5d0d991fe086)
Example on sending data from server to the bot with a custom event: Player death event · delusionx/Serpent@02825d5 (https://github.com/delusionx/Serpent/commit/02825d54d26e520a3c8c2aa41b23bdf01ea9ff4b)
If you want to send data from your server to the bot, use the
enqueue(command, args)
function anywhere in a Lua file, add it to event_listener.py in self.commands
and handle with either a custom callback or the default command_finish
callback. Keep in mind this is a work-in-progress and a barebones project, let me know if anything is broken by submitting an issue on Github.If you'd like to see it in action, join my testing server: Join the Serpent Discord Server! (https://discord.gg/NqPmGDz)
Last edited: