How to create a Discord bot with Python: Part 11 - Connect a sqlite3 database

Опубликовано: 06 Октябрь 2024
на канале: DevXplaining
2,531
62

Earlier, we created a Python Discord bot using discord.py library, and the bot API. Today we will add sqlite3 database for the bot to use, so we can actually get some data to persist over time. This is just a very tiny introduction to how you can combine Python, Discord.py, and SQLite3 together in your code, but just enough to get you started.

If you like content like this, feel free to click the like and subscribe buttons. Also, share the link for anyone who might be interested. And if you have some tips to share, or learned something new today, please leave a comment below the video about it.

Code can be found from here: https://github.com/crystoll/discord_bot

You can make a clone of it, study it, play with it. Note that code is ahead of this video since when I make new ones, I push them on top of old ones. Read the README file for instructions on how you can check out the code for a specific session. If you just want to see the final result - so far - no need to go back in time, the final commit is always the best available at the time.