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

Limit /reset response to one shard

This commit is contained in:
niansa 2023-05-19 19:08:28 +02:00
parent 36976dfee9
commit eaf5cf9837
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit c9dac7cb892d4c7856ff86c595ecb44a36b0b0eb
Subproject commit f279b31d5f90c455fd77a14f8291272d018e556a

View file

@ -648,7 +648,9 @@ public:
co_await llm_pool.delete_inference(id);
});
// Sender message
bot.message_create(dpp::message(event.command.channel_id, "Conversation was reset by "+event.command.usr.format_username()+'!'));
if (is_on_own_shard(event.command.channel_id)) {
bot.message_create(dpp::message(event.command.channel_id, "Conversation was reset by "+event.command.usr.format_username()+'!'));
}
// Finalize
invalidate_event(event);
return;