perf: use a memory cache for AutoReactions

This commit is contained in:
Dragory 2021-11-02 23:25:09 +02:00
parent 31f18ba27f
commit d09d6b776a
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
5 changed files with 24 additions and 3 deletions

View file

@ -19,6 +19,7 @@ export const DisableAutoReactionsCmd = autoReactionsCmd({
}
await pluginData.state.autoReactions.removeFromChannel(args.channelId);
pluginData.state.cache.delete(args.channelId);
sendSuccessMessage(pluginData, msg.channel, `Auto-reactions disabled in <#${args.channelId}>`);
},
});