This commit is contained in:
fluttershy 2025-01-17 23:28:40 +05:00
parent 004327b4c2
commit d113d303a2

View File

@ -2,7 +2,7 @@
#include <includes.h>
int main(int argc, char* argv[]) {
if (argc != 3) return -1;
WebSocket* bot = &WebSocket::getInstance(argv[2], 131071);
WebSocket* bot = &WebSocket::getInstance(argv[2], ALL_INTENTS);
bot->on(GatewayEvents::MESSAGE_CREATE, [](const Bot<Message, User, Author>& msg) {
if (!g(2, msg.net)->isBot()) {
g(0, msg.net)->send("939957962972229634", j("content", g(2, msg.net)->content()));
@ -10,4 +10,4 @@ int main(int argc, char* argv[]) {
});
bot->start();
return 0;
}
}