Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xela/birthday.py
🎉 A simple discord bot in discord.py that helps you understand the usage of SQL databases
https://github.com/xela/birthday.py
alexflipnote birthday clean clean-code commands database discord discord-bot discord-py easy-to-use fun pm2 py python small sql sqlite3 starter-kit storage tutorial
Last synced: about 1 month ago
JSON representation
🎉 A simple discord bot in discord.py that helps you understand the usage of SQL databases
- Host: GitHub
- URL: https://github.com/xela/birthday.py
- Owner: xelA
- License: gpl-3.0
- Created: 2020-02-07T07:14:51.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-05T12:52:46.000Z (about 4 years ago)
- Last Synced: 2024-10-07T22:52:02.994Z (about 1 month ago)
- Topics: alexflipnote, birthday, clean, clean-code, commands, database, discord, discord-bot, discord-py, easy-to-use, fun, pm2, py, python, small, sql, sqlite3, starter-kit, storage, tutorial
- Language: Python
- Homepage: https://discord.gg/AlexFlipnote
- Size: 35.2 KB
- Stars: 30
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Do you need more help? Visit my server here: **https://discord.gg/AlexFlipnote**
## Requirements
- Python 3.6 and up - https://www.python.org/downloads/
- git - https://git-scm.com/download/## Useful to always have
Keep [this](https://discordpy.readthedocs.io/en/latest/) saved somewhere, as this is the docs to discord.py@rewrite.
All you need to know about the library is defined inside here, even code that I don't use in this example is here.## How to setup
1. Make a bot [here](https://discordapp.com/developers/applications/me) (or use one you've already made), be sure to grab the token from the bot and have "Public mode" turned off. This bot is only made to work on one server, so don't let other people invite it in too.2. Rename the file **config.json.example** to **config.json**, then fill in the required spots, such as token, prefix and game
3. To install what you need, do **pip install -r requirements.txt**
(If that doesn't work, do **python -m pip install -r requirements.txt**)
`NOTE: Use pip install with Administrator/sudo`4. Start the bot by having the cmd/terminal inside the bot folder and type **python index.py**
5. You're done, enjoy your bot!
## FAQ
Q: I don't see my bot on my server!
A: Invite it by using this URL: https://discordapp.com/oauth2/authorize?client_id=CLIENT_ID&scope=bot
Remember to replace **CLIENT_ID** with your bot client IDQ: There aren't that many commands here...
A: Yes, I will only provide a few commands to get you started, this is mostly to learn databases# Optional tools
### PM2
PM2 is an alternative script provided by NodeJS, which will reboot your bot whenever it crashes and keep it up with a nice status. You can install it by doing `npm install -g pm2` and you should be done.