Slack chatbot for Server DensityA
- Clone the repo
- Create a bot user if you don't have one yet, and copy the API Token
- export SLACK_TOKEN="your-api-token"
- export SD_AUTH_TOKEN="your-server-density-token"
- export SD_ACCOUNT_NAME="server-density-account-name"
make replfor local testing)
- Invite sdbot into any channels you want it in. Try typing
sdbot helpto test it out.
You could also install docker and use the docker file to run sdbot.
When you run
make run it'll try to install matplotlib. Matplotlib depends on
freetype. These needs to be installed before you can install matplotlib.
Get up to speed with SDBot
If you don't want to host SDBot yourself you can launch an SDBot with the help of BeepBoop. Just visit the public page, sign in and you'll be able to launch SDBot to your slack team in just seconds! If you don't yet have an account at Server Density and would like to enjoy the tremendous advantages of having an SDBot to support your slack team. Visit Server Density to sign up. Creating an SDBot for your team is the next step!
If you are curious about what BeepBoop does you can always read their documentation
If you have any questions at all, just send an email to firstname.lastname@example.org
- --test, -t: Enter command line mode to enter a sdbot repl.
- --hook: Specify the hook to test. (Defaults to "message").
- -c: Run a single command.
- --database, -d: Where to store the sdbot tinydb database. Defaults to log.json.
- --pluginpath, -pp: The path where sdbot should look to find its plugins (defaults to /plugins).
- SD_AUTH_TOKEN: A Server Density Token. Required.
- SD_ACCOUNT_NAME: Your account name at Server Density. Recommended
- SLACK_TOKEN: Slack API token. Required.
- LIMBO_LOGLEVEL: The logging level. Defaults to INFO.
- LIMBO_LOGFILE: File to log info to. Defaults to none.
- LIMBO_LOGFORMAT: Format for log messages. Defaults to
- LIMBO_PLUGINS: Comma-delimited string of plugins to load. Defaults to loading all plugins in the plugins directory (which defaults to "/plugins")
It's very easy to extend sdbot and add your own commands. Just create a python file in the plugins directory with an
on_message function that returns a string.
You can use the
sdbot help command to print out all available commands and a brief help message about them.
A kind thank you to Limbo and the persons who contributed to that.