Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jb3/microsoft-python-discord-bot
A bot for the Microsoft Python Discord community
https://github.com/jb3/microsoft-python-discord-bot
azure discord discord-bot discord-py microsoft
Last synced: 8 days ago
JSON representation
A bot for the Microsoft Python Discord community
- Host: GitHub
- URL: https://github.com/jb3/microsoft-python-discord-bot
- Owner: jb3
- License: mit
- Created: 2020-06-18T19:27:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-29T15:41:11.000Z (over 1 year ago)
- Last Synced: 2024-10-31T21:12:14.162Z (about 2 months ago)
- Topics: azure, discord, discord-bot, discord-py, microsoft
- Language: Python
- Homepage: https://aka.ms/python-discord
- Size: 83 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# microsoft-python-discord-bot
A bot for the Microsoft Python Discord community## Setup
### Install poetry
Get the latest version of Poetry from https://python-poetry.org/.
Confirm installation by running `poetry -V`, you can expect to see an output like:
```
$ poetry -V
Poetry version 1.0.9
```### Install dependencies
Run `poetry install` to install all dependencies needed to run the bot.
### Create a Discord application
Check out the guide from the discord.py docs on how to create a bot account: https://discordpy.readthedocs.io/en/latest/discord.html
Additionally invite the bot to your server at this stage.
### Create a .env file
Secrets are stored in the `.env` file.
You should create a `.env` file that looks like the following:
```
TOKEN=
```### Create a non-secret TOML file
For configuration that is not a secret a TOML file is used. The defaults should be good enough for most people but if you want to override them then you can create a file named `config.toml` which will be used instead of the defaults.
### Run the bot!
You can run the bot with `poetry run bot`.