SausageBot - affectionately known as “pølsa” among its Norwegian users - is a Discord bot with some very specific functions.
To be updated
Ok, so you want to run a Discord bot?
Follow the instructions on this page on Creating a Discord Bot Account: https://www.pythondiscord.com/pages/guides/python-guides/discordpy/#creating-a-discord-bot-account
You need to register with Spotify API first:
Use the docker-compose file.
It is recommended to run the bot in a controlled environment, by using pipenv
or similar services.
git clone https://github.com/geirawsm/sausage_bot.git
cd
into sausage_botpipenv
if you haven’t alreadypipenv shell
to create the python environment and start the shellpipenv install
to install dependencies.env
file: python -m sausage_bot
sausage_bot/sausage_bot/data/.env
and add as a minimum these values under the basic
key:
DISCORD_TOKEN
Get the token from the Discord Developer portal under “Bot”, “Build-A-Bot”, “TOKEN”DISCORD_GUILD
The name of the discord server you want to connect toBOT_ID
Also found in the Discord Developer portal, under “OAuth2”, “General”, “Client information”, “CLIENT ID”python -m sausage_bot
again. The bot will now be online.If you run python -m sausage_bot -h
you can also see all the arguments you can add.
docker build .
docker run sausage_bot:latest -v [host path to a data folder]:/data
Here’s how to help out:
Report bugs in issues.
Come up with awesome ideas (and submit them in issues)
Make pull requests that solves a problem or an issue