A
A
Alcatras2020-08-04 00:02:28
Python
Alcatras, 2020-08-04 00:02:28

On the basis of what to build a discord bot with an interface in the form of a site?

There is a bot in the discord to which you need to transfer any data, as I have decided so far, using a socket connection (maybe there is a more rational approach to interprocess communication in this case?) And the site itself, which sends data to the bot using sockets. At least at the beginning, I encountered the fact that socket methods are blocking, and with my knowledge, the bot cannot work in parallel with the socket. And the question is, how is the construction of such projects generally carried out, where can I see examples?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Ternick, 2020-08-06
@Ternick

You yourself are a "socket connection". -> socket connections.
You can communicate through anything. In this case, it doesn't matter. There are such things as multithreading and asynchrony, I advise you to study these two things :) In general, such things are written in the basis of php + webhook, if I understand correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question