1
0
Fork 0
mirror of https://gitlab.com/niansa/discord_llama.git synced 2025-03-06 20:48:25 +01:00

Ignore messages during startup

This commit is contained in:
niansa 2023-04-01 18:26:48 +02:00
parent 4921be8793
commit e179f1ae50

View file

@ -290,6 +290,8 @@ public:
});
});
bot.on_message_create([=, this] (const dpp::message_create_t& event) {
// Ignore messages before full startup
if (!llm) return;
// Make sure message source is correct
if (event.msg.channel_id != channel_id) return;
// Make sure message has content