An extensible discourse bot, great for rolling dice, and silly games. Be responsible! Before using, make sure you own your discourse instance, or have permission to run this bot.
Not much but discbot will reply to you if you say the magic words. Think of hubot but async and slower.
Follow instructions here: https://github.com/discourse/discourse/blob/master/docs/DEVELOPER-ADVANCED.md
Make sure you have a book or other fun activities ready while bundle install
finishes.
Sign up for a user with an email address you own. Consider adding a +bot modifier to the email address. [email protected]
export DISCBOT_URL=<your-discourse-base-url>
export DISCBOT_USERNAME=<bot-username>
export DISCBOT_PASSWORD=<bot-password>
npm install
In your checkout folder:
./bin/discbot
npm test
- Push discbot to your heroku remote repo
- Setup the following environment variables in heroku:
heroku config:set DISCBOT_URL=<your-discourse-base-url> DISCBOT_USERNAME=<bot-username> DISCBOT_PASSWORD=<bot-password>
- You're done!
Discourse has excellent user management controls. As a result your bot won't have full permissions until it is well loved by your community. Your bot may fall silent when it hits reply limits, or won't be able to post images until it reaches the correct trust level.
Heroku's free tier no longer runs 24/7. Your discbot may fall asleep.
Please file them in github.
MIT