Discord Bot API Linking Feature
So by this I mean, let's say that there are 2 discord bots. If both of them are programmed to link together then Bot 1 will be able to trigger events from Bot 2 (vice versa applies) and will be able to change variables etc.
Now, you might ask why the heck would this be useful, well lets say, we have bot 1, and bot 2 again. They both have an economy system and a level system. Well with this linking feature, they would be able to sync money and levels! So if you are shifting from one bot to another one your server, you can easily shift data across bots.
-
No point. Just make 2 webservers on each bot and talk to them directly, rather than going through a Discord API. Also each bot has its own 'inflation' in its own economy so it'd completely destroy economies.
3 -
no, just make your own websockets in the bot or socket sever so you can send events
3 -
No point in this, you can just set up a socket server or anything they can use to send and receive data (that won't go down like every minute preferably)
(e.g, in a channel specifically for sending and receiving you, can make it so bot 1 sends a message saying that oh a user joined, etc. the 2nd bot gets an event triggered as there's a message in the channel, the bot can understand this (in code) and sends a message saying oh a user joined welcome him, etc.)
also if you want it, to share the same data, link the leveling system and currency to the same databases.
1
Zaloguj się, aby dodać komentarz.
Komentarze
Komentarze: 3