forked from rcxpony/sparkle
test
This commit is contained in:
parent
004327b4c2
commit
d113d303a2
@ -2,7 +2,7 @@
|
|||||||
#include <includes.h>
|
#include <includes.h>
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
if (argc != 3) return -1;
|
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) {
|
bot->on(GatewayEvents::MESSAGE_CREATE, [](const Bot<Message, User, Author>& msg) {
|
||||||
if (!g(2, msg.net)->isBot()) {
|
if (!g(2, msg.net)->isBot()) {
|
||||||
g(0, msg.net)->send("939957962972229634", j("content", g(2, msg.net)->content()));
|
g(0, msg.net)->send("939957962972229634", j("content", g(2, msg.net)->content()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user