Birthday.py Save

🎉 A simple discord bot in discord.py that helps you understand the usage of SQL databases

Project README

birthday.py

Do you need more help? Visit my server here: https://discord.gg/AlexFlipnote

Requirements

Useful to always have

Keep this 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 (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 ID

Q: 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.

Open Source Agenda is not affiliated with "Birthday.py" Project. README Source: xelA/birthday.py

Open Source Agenda Badge

Open Source Agenda Rating