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:
parent
4921be8793
commit
e179f1ae50
1 changed files with 2 additions and 0 deletions
2
main.cpp
2
main.cpp
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue