https://github.com/apollo-roboto/template-python-discordbot
https://github.com/apollo-roboto/template-python-discordbot
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/apollo-roboto/template-python-discordbot
- Owner: Apollo-Roboto
- License: mit
- Created: 2022-09-18T04:44:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-12T03:44:48.000Z (over 3 years ago)
- Last Synced: 2025-01-22T05:17:31.938Z (over 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Template-Python-DiscordBot
Discord bot supporting slash commands!
# Running the bot
Create a `.env` file with the following content.
```env
# Discord
DISCORD_BOT_TOKEN=
DISCORD_APPLICATION_ID=
```
Install dependencies
```bash
python -m pip install -r ./requirements.txt
```
Run the bot.
```bash
python ./src/main.py
```
One manual action needs to be done to update the slash commands. As the owner, send a private message with `!sync` to the bot.
## With Docker
```bash
docker-compose build
docker-compose --env-file ./.env up
```