Resolve beefs or make tough decisions by duking it out!
(sadly, image generation has been removed because the API that it relied on is now gone)
Copy the config-sample.py
to config.py
and add the following values:
- Slack Webhook URL (see below for more info)
To setup the database, run the following from a Python interpreter:
from saltbeef import db
db.create_all()
For simplicity, this just runs off of sqlite
.
Example nginx
and supervisor
config scripts are in the setup
folder.
You can then go to your Slack team's integration page and:
- Add an Incoming Webhook. Get the URL Slack provides and add it in the
config.py
file (seeconfig-sample.py
for the format). - Add a Slash Command. For instance,
/saltbeef
, and point it to the root of the app. For instance, if you're hosting it atsaltbeef.myserver.com
, point the slash command tohttp:https://saltbeef.myserver.com/
.
Then from within the Slack channel you setup, you can run /saltbeef help
to see a list of available commands.
The following commands are available:
battle <username>
- fight a useritems
- list your itemsequip <item #>
equip an item for the next battle (one-time use)creatures
- list your creaturesichoose <creature #>
- choose a creature for your next battlecapture
- catch a new creatureleaderboard
- view the best trainers
- add in experience/leveling up/EVOLUTION??
- add in types and strengths/weaknesses??