Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anand2312/crajybot
A small Discord bot
https://github.com/anand2312/crajybot
discord-bot prisma python sqlite
Last synced: 3 months ago
JSON representation
A small Discord bot
- Host: GitHub
- URL: https://github.com/anand2312/crajybot
- Owner: anand2312
- License: gpl-3.0
- Created: 2020-05-10T12:33:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-17T12:04:05.000Z (over 1 year ago)
- Last Synced: 2024-05-03T15:43:44.206Z (8 months ago)
- Topics: discord-bot, prisma, python, sqlite
- Language: Python
- Homepage:
- Size: 748 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Crajy Bot
A Discord Bot.[Invite link](https://discord.com/api/oauth2/authorize?client_id=709407268487037019&permissions=414464673856&scope=applications.commands%20bot)
## Development
### Requirements
- Python >= 3.10
- Poetry### Setting up
- Run `poetry install` to install dependencies
- Run `prisma db push` to create the SQLite database
- Add constants:
- add the bot token as a constant named `TOKEN` in `secret/TOKEN.py`
- add the ID of the testing server as a constant named `BOT_TEST_SERVER` in `secret/constants.py`
- add the ID of the testing channel as a constant named `BOT_TEST_CHANNEL` in `secret/constants.py`### Running
`python manage.py` -> Runs the bot and attempts to load all extensions \
`python manage.py --exts ext1 ext2 ext3` -> Runs the bot and only loads `ext1`, `ext2`, `ext3`