In this video, we will learn how to make a system where users can set custom prefixes for a Discord bot in python using discord.py, postgreSQL and asyncpg. This is the rework of the video where I showed how to do the same thing with JSON, but here it’s with a database.

You’ll need to pip install asyncpg if you don’t already have it installed!

If you have any suggestions for future videos/doubts, leave it in the comments below. I might not be able to answer everyone but you can join my discord server for help: https://discord.gg/TXF3hBj

Some Useful Links -
Install Postgres- https://youtu.be/24FRaxoTc_c

Discord Developer Portal- https://discord.com/developers
My Discord Server- https://discord.gg/TXF3hBj

My Twitter - https://twitter.com/codewithswastik
My Instagram - https://instagram.com/code_with_swastik

Discord.py Documentation: https://discordpy.readthedocs.io/en/latest/
Asyncpg Documentation: https://magicstack.github.io/asyncpg/current/

Queries solved in the video:

  1. How to set a Custom Prefix with discord,py
  2. How to have Per Server Prefixes in Discord.py
  3. Per Server Custom Prefixes with PostgreSQL and asyncpg
  4. How to use a database to store prefixes in discord.py
  5. PostgreSQL with discord.py

#discord #customprefix

#postgresql #discord #python #json #database

Per Server Custom Prefixes in Discord.py with PostgreSQL and asyncpg
38.05 GEEK