:robot: Aracred Bot to quickly onboard users into an Aracred instance. Don't be afraid to fork and modify this!
^^ Click here to deploy!
Interacting with the bot is simple; it offers 3 commands, all of them starting with the !ac flag:
"!ac help": Shows the available commands, along with an example for each one.
"!ac signup": Signs the user up for generating cred through their contributions, by modifying the project.json
file in the configured Aracred repo.
"!ac addaddress": Signs the user up for receiving tokens minted to match their generated cred, by modifying the addressbook.json
file in the configured Aracred repo.
npm run dev
will launch the bot locally, with hot reloading included.
There are a few other scripts provided:
start
: Starts up the bot without hot reloading; used for the heroku deployment described below.lint
: Lints the project with ESLint.test
: Runs all the tests! (If you contribute some code, please do write tests for it β¨οΈ!)For the bot to run properly, it needs these variables, laid out in the .env.sample
file:
DISCORD_API_TOKEN
: Your discord API token. See this guide on how to obtain one.GITHUB_API_TOKEN
: Your github API token. This will tie the bot's contributions to your profile.GITHUB_FILE_PATH
: The "file path" to the project.json
folder, laid out with the format described here.GITHUB_ADDRESS_FILE_PATH
: The "file path" to the addressbook.json
folder, laid out with the format described here.WHITELISTED_CHANNELS
: The whitelisted channels for the bot to read messages from, in the form of comma separated words, as in bot,general,channel
. If you want the bot to listen to all channels, set this variable to *
.You'll need a service to host this bot πββοΈ but do not despair! There's an easy, already configured way of doing this by deploying it to heroku! Just go through these steps:
Don't be shy to contribute even the smallest tweak. π² There are still some dragons to be aware of, but we'll be here to help you get started!