GitHub Readme.md
This bot is used for standard
/roll (range 1 - 20):
/roll
/roll xdy (rolls y sided dice x times):
/roll 1d20
/roll xdy+z (rolls x dice of y sides + z modifier):
/roll 5d6+5
Be sure to log into heroku, using your heroku credentials, then click the link below.
You should be taken to a page that looks like this:
Optionally, you can give your app a name, or instead leave it blank and let Heroku name it for you (you can change it later).
Go to: https://dev.groupme.com/session/new
Use your GroupMe credentials to log into the developer site.
Once you have successfully logged in, go to https://dev.groupme.com/bots/new
Fill out the form to create your new bot:
http://your-app-name-here.herokuapp.com/
Go here to view all of your bots: https://dev.groupme.com/bots
Click on the one you just created.
On your Bot's page, copy the Bot Token (aka your Bot ID)
Go here to see all of your Heroku apps and select the one you just created before:
https://dashboard-next.heroku.com/apps
On your app page, click settings in the top navigation:
On your app's setting page, find the Config Vars section and click the Reveal Config Vars button:
Then click edit:
Fill out the form to add an environment variable to your app:
Go to GroupMe and type "/cool guy" in the group where your bot lives to see it in action.
Within terminal, change directory to the location where you would like the files to live, then run this command:
$ heroku git:clone -a YOUR_APP_NAME_HERE
And then change directory into the new folder
$ cd YOUR_APP_NAME_HERE
Open the file .env
from your local files in your text editor of choice.
Find where it says "YOUR_BOT_ID_HERE" and replace it with the ID of your new bot.
If you don't know what your Bot ID is, please refer back to this section, where it is explained how to retrieve it.
If your Bot ID is 12345678910, then:
BOT_ID="YOUR_BOT_ID_HERE"
becomes:
BOT_ID="12345678910"
To test your bot locally, open terminal and run the following command to start a local server.
$ foreman start
Then navigate to http://127.0.0.1:5000/
in a browser.