K
K
Kirill2021-10-07 19:19:03
Python
Kirill, 2021-10-07 19:19:03

How to connect Discord bot to a database that is on a virtual server?

Tell me, where can I read information on how to connect the bot to the database that I have on the virtual server?
Or how to connect a bot to such a database
. I can't find the info on the Internet ....
And I apologize for the stupid question.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2021-10-07
@Drno

https://proglib.io/p/kak-podruzhit-python-i-bazy-d...

Y
Yanis07, 2021-10-08
@Yanis07

First you need to connect to the database, and the bot has nothing to do with third-party libraries, for example, sqlalchemy.
Then you define the functions of working with the database and pull them with the bot commands,
see here https://github.com/denisyakimov07/NBA_DISCORD_BOT recently made a bot guide to NBA players

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question