https://github.com/rssnyder/discord-bot-manager
code to help me strengthen my bot army
https://github.com/rssnyder/discord-bot-manager
Last synced: 2 months ago
JSON representation
code to help me strengthen my bot army
- Host: GitHub
- URL: https://github.com/rssnyder/discord-bot-manager
- Owner: rssnyder
- Created: 2021-11-10T23:43:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-31T20:57:35.000Z (over 2 years ago)
- Last Synced: 2025-01-28T12:39:47.292Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# discord-bot-manager
an api to help you manage your other bots
master is not assumed stable
## storage
postgres
```shell
export DB_HOST="" # postgres host
export DB_DB="" # postgres database
export DB_USER="" # postgres user
export DB_PASS="" # postgres password
```
## auth
lazy: using the browser dev tools, capture a post call and view the `Authorization` header
```shell
export AUTH='mfa_' # Authorization header
export TEAMS='["00000000000000"]' # json of team ids to create bots in
```
## main
fastapi server to enable bot creation via http
`uvicorn main:app`
## create_bot
create a new discord application
create a new discord bot and generate a token (these together are one action)
## db
store a new bot in the db
get a bot from the db
mark a bot as claimed
get count of unclimed bots