Skip to content
The source code repository for Sporks, the learning, backchatting, scriptable discord bot!
C++ C Makefile CMake Python PHP Other
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci make sure develop branch of aegis is checked out Nov 3, 2019
.github Update issue templates Dec 18, 2019
buildtools/cmake CMakeLists.txt Nov 6, 2019
help improved help response, and moved out of DM Jan 16, 2020
hooks fix installer Dec 17, 2019
include/sporks add db::error() method Feb 5, 2020
lib enable debug symbols Nov 1, 2019
modules add db::error() method Feb 5, 2020
mysql-schema cpu graph works with -members now, and new mysql schema Jan 31, 2020
src add db::error() method Feb 5, 2020
.gitignore start of javascript vm using duktape Nov 12, 2019
CMakeLists.txt fix sudo ping by implementing the on_rest_end diagnostic event and en… Jan 3, 2020
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Dec 18, 2019
CONTRIBUTING.md Create CONTRIBUTING.md Dec 18, 2019
LICENSE as sole developer of this software with no other contributor as of 23… Dec 23, 2019
README.md Update README.md Jan 29, 2020
config-example.json Update config-example.json Jan 10, 2020
do-web-requests.php further license boilerplate, add lock and unlock to sudo command Jan 2, 2020
mail-core-file.sh the only proper way to do this is with mutt, it seems Jan 10, 2020
make-core-file.sh further license boilerplate, add lock and unlock to sudo command Jan 2, 2020
run.sh enable intents as default, and add guild member add to sqlcache membe… Jan 29, 2020
update-bot-lists.php further license boilerplate, add lock and unlock to sudo command Jan 2, 2020
update-cpu-graph.php cpu graph works with -members now, and new mysql schema Jan 31, 2020
update-uptimerobot-heartbeat-urls.php further license boilerplate, add lock and unlock to sudo command Jan 2, 2020

README.md

Sporks, the backchatting, learning, scriptable discord bot

This github project contains the source code for Sporks, the learning, scriptable Discord chat bot, written in C++ using the aegis.cpp library. Remember you can still find my original perl/botnix version of Sporks on IRC at irc.chatspike.net!

Project and System status

Discord CircleCI Dashboard

Service Status

Listing Badges

Discord Bots Discord Boats DiscordBotList Bots for Discord

Supported Platforms

Currently only Linux is supported, but other UNIX-style platforms should build and run the bot fine. I build the bot under Debian Linux.

Dependencies

Building

mkdir build
cmake ..
make -j8

Replace the number after -j with a number suitable for your setup, usually the same as the number of cores on your machine.

Database

You should have a database configured with the mysql schemas from the mysql-schemas directory. use mysqlimport to import this.

Configuration

Edit the config-example.json file and save it as config.json. The configuration variables in the file should be self explainatory.

Running

cd my-bot-dir
./run.sh

run.sh will restart the bot executable continually if it dies.

Command line parameters

./bot [--dev|--test] [--members]
Argument Meaning
--dev Run using the development token in the config file. Mutually exclusive with --test
--test Run using the live token in the config file, but squelch all outbound messages unless they originate from the test server (also defined in the config file)
--members Send a GUILD_MEMBERS intent when identifying to the discord gateway
You can’t perform that action at this time.