This is a Discordbot for helping out with "play by post" games of Legacy: Life Among the Ruins. If you want to jump right in, head over to the TUTORIAL.md.
Legacy Bot is currently beta testing. It is hosted in Heroku. All of its data is stored in a Mongodb database using mLab.
To get the "production" Heroku bot, paste https://discordapp.com/api/oauth2/authorize?client_id=619678791626915850&permissions=201845824&scope=bot into your browser and select the server you'd like the bot to join.
If you'd like to help test features in development, there's sometime a bot up with the client id 621907047587512330
. https://discordapp.com/api/oauth2/authorize?client_id=621907047587512330&permissions=201845824&scope=bot
Legacybot has limited permissions.
All commands to Legacybot begin with a dot "." Legacybot's command help is built in to the bot; to get started, typing in help -c
First clone this Github repo locally.
Second, create your bot on the Discord Developer Portal.
Third, make a note of the your token
and owner id
. These can be configured into the app in two ways:
1) Via config/default.json
. Put the token and owner_id into these fields. Note, this is not secure, so please be careful!
2) By setting the environment variables LEGACY_BOT_TOKEN
and LEGACY_BOT_OWNER_ID
. These will override the config/default.json file keys.
Run make install
Run a make test
to run the unit tests. Tests can be found in the test
folder. Note, the db tests assume you have a locally running instance of Mongodb.
Run make run