I forgot to mention in the video but you'll need to pip install asyncpg if you don't already have it installed! Also when the video get's 100 likes I'll upload the code on github, so make sure to like!
@ProgrammerAyush3 жыл бұрын
You gonna upload the source code to GitHub to spoonfeed like your server?
@SmokxeeOP3 жыл бұрын
1 like to go
@clues80123 жыл бұрын
Can u do economy with asyncpg
@Paper19883 жыл бұрын
it's already got 100 likes 😂
@tasoulman3 жыл бұрын
Code please, aahahhahahaha
@fureai91433 жыл бұрын
Well, this method only works when you wanna host postgres on localhost. Since postgres is a server based db, it needs to be hosted, so I recommend hosting it on a vps such as DigitalOcean or MS Azure. If you host the db on vps, then you need to provide `ssl = 'require'` kwarg while declaring the connection. Hosting services like Heroku provide a postgres add-on which basically adds a DATABASE_URI to your environment variables. *Note:* There is no way of using postgres without hosting it, so you gotta pay or link cc in order to use a vps to host it. Heroku is one of the free options but it has its own limits, so consider linking your credit card to enjoy free vps for some time!
@ProgrammerAyush3 жыл бұрын
POV: Swas is trying to flex his discord server
@isaiahstone25743 жыл бұрын
All my code is correct and it says the connection was successful but when i go to change the prefix i get an error saying guilds does no exist
@meizufluxx3 жыл бұрын
This tutorial *does* work, but this method will query Postgres on every single message the bot receives. The proper way to do this is to write a caching system where you don’t need to query the database every message.
@conos17653 жыл бұрын
This is pretty pog
@diogoredondo83633 жыл бұрын
Can you make a tutorial on warn command pls
@GoldenJan3 жыл бұрын
Can you do this wiith cogs too? i'm currently stuck in trying to implement this...
@KillerZM3 жыл бұрын
How do I connect it to an external database?
@nishilsheth90763 жыл бұрын
Please make a video like this for MongoDB and please use motor with it!
@meizufluxx3 жыл бұрын
Postgres makes more sense for discord bots as most of the data you will store is relational
@nishilsheth90763 жыл бұрын
@@meizufluxx I need a cloud database so I think MongoDB would be the best choice
@meizufluxx3 жыл бұрын
@@nishilsheth9076 why do you need a cloud database? Installing postgres on a server is super simple
@nishilsheth90763 жыл бұрын
@@meizufluxx oh. I just do not want to host the database or my discord bot. Could you show me how to do it? Like a yt link?
@nishilsheth90763 жыл бұрын
@@meizufluxx I am using replit. Can I use replit to connect to that database?
@0nyxamv3 жыл бұрын
How to change prefix from dashboard?
@rpbricks2553 жыл бұрын
Can you please do a tutorial on a levelling system as I feel it is a subject which does not get that much attention?
@yoavvishne71793 жыл бұрын
Swastik, where can I host my bot if I am using postgresql?
@DalvinNotFound2 жыл бұрын
bruh i am getting a error saying `asyncpg.exceptions.UndefinedTableError: relation "guilds" does not exist` when i try to mention and use help or change prefix
@gdkid2 жыл бұрын
make a table called guilds
@orangegamer3 жыл бұрын
A warnsystem with pg would be cool
@dts27163 жыл бұрын
This is like SQLite, isn't aiosqlite good?
@SymphonicMelody3 жыл бұрын
its pogg
@thegenocide86313 жыл бұрын
pog New video
@makiyu32363 жыл бұрын
it finally happened!! Death to JSON as db :gura_wink:
@geruchslostlost9273 жыл бұрын
Thank you ❤
@nikunjgupta33453 жыл бұрын
Can we run pgadmin4 just on its website, I mean browser or do we need to install and run it? Btw pog vid
@gdkid2 жыл бұрын
You need to install it
@GH05TYPLAYz3 жыл бұрын
wheres part 4
@rushanchess3 жыл бұрын
Can you make a video on how to create a web server using Python
@rushanchess3 жыл бұрын
Nice 👏
@redhawk33852 жыл бұрын
Make sure you set guild_id in your database to be a primary key, not doing this will inserts a new entry every time you insert
@bruceonion3 жыл бұрын
I am just vibin with Mod
@tapu_3 жыл бұрын
And that's how you end up with 2000 character long prefix
@mightyzain90323 жыл бұрын
IS THERE ecomany part 5 ??
@CodeWithSwastik3 жыл бұрын
Well it will start from Part 1 again lol
@mightyzain90323 жыл бұрын
@@CodeWithSwastik huh why
@nish11763 жыл бұрын
@@mightyzain9032 cuz he screw up and bad video make
@Cyrus_FG3 жыл бұрын
Thank You
@parthiv32553 жыл бұрын
how long r u gonna keep makign discord bot tutorials :\
@ayushanand94173 жыл бұрын
until he or discord dies 🤣
@FrazixOP3 жыл бұрын
@@ayushanand9417 I don't think discord bot Dev's are gonna stop anytime, because they keep adding any new feature for bots just like the Buttons.
@SymphonicMelody3 жыл бұрын
enable text wrapping it would be easier :p
@rashmichoubey20293 жыл бұрын
Make a leveling system (with mongodb) like mee6 (I know how to make it but the custom image you get on leveling up plz show us that....
@LegendYt4k3 жыл бұрын
can you make a level up commands like @name has reached level 3. GG!
@FrazixOP3 жыл бұрын
I don't know about him but I was working on something like that and I have figured it out how to make a level up thing like mee6 or amari :)
@clues80123 жыл бұрын
I use SQLite3(aiosqlite) lol
@manwhas Жыл бұрын
Me who uses a json file
@CodeWithSwastik Жыл бұрын
💀
@itsyaboivoid Жыл бұрын
We got another one of those
@mustafatechsolutions3 жыл бұрын
SWAS UNBAN ME PLSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS I MISS MY 40+ LEVELS!!!!!!!!!!!!!!!!!!!!