Giter Site home page Giter Site logo

discbot's Introduction

discbot Build Status

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.

Seriously, what does discbot do?

Not much but discbot will reply to you if you say the magic words. Think of hubot but async and slower.

Setup

Install Discourse (skip this step if you have a simple script to add)

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.

Create a bot user in discourse

Sign up for a user with an email address you own. Consider adding a +bot modifier to the email address. [email protected]

Setup local environment variables if you're using this with a local discourse instance

export DISCBOT_URL=<your-discourse-base-url>
export DISCBOT_USERNAME=<bot-username>
export DISCBOT_PASSWORD=<bot-password>

Local install of Discbot

npm install

To Run Locally:

In your checkout folder:

./bin/discbot

Run Tests

npm test

Running discbot in Heroku

  • 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!

Gotchas

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.

Have questions or issues?

Please file them in github.

License

MIT

discbot's People

Contributors

gwwar avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.