From 8e506ecd2271b2f1124ec2bf83072acef6b775e6 Mon Sep 17 00:00:00 2001 From: fluttershy Date: Mon, 20 Jan 2025 15:07:30 +0500 Subject: [PATCH] default --- sources/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/main.cpp b/sources/main.cpp index dec23db..2d59b94 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -2,11 +2,11 @@ #include int main(int argc, char* argv[]) { if (argc != 3) return -1; - WebSocket* bot = &WebSocket::getInstance(argv[2], GatewayIntents::AllIntents, false); - bot->on(GatewayEvents::READY, [](const Discorda) { + WebSocket* bot = &WebSocket::getInstance(argv[2], GatewayIntents::AllIntents); + bot->on(GatewayEvents::READY, [](const Discord& a) { cout << DiscordEndpoints::details::latest << endl; }); - bot->on(GatewayEvents::MESSAGE_CREATE, [](const Discord msg) { + bot->on(GatewayEvents::MESSAGE_CREATE, [](const Discord& msg) { g(0, msg.net)->send("939957962972229634", j("content", g(2, msg.net)->content())); }); bot->start();