mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 20:55:01 +00:00
Chunk text-only log messages. Use a cooldown if running into Missing Access / Missing Permissions error during logging.
This commit is contained in:
parent
ac79eb09f5
commit
e6694f3751
3 changed files with 26 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
import { PluginOptions } from "knub";
|
||||
import { CooldownManager, PluginOptions } from "knub";
|
||||
import DefaultLogMessages from "../../data/DefaultLogMessages.json";
|
||||
import { GuildArchives } from "../../data/GuildArchives";
|
||||
import { GuildCases } from "../../data/GuildCases";
|
||||
|
@ -267,6 +267,7 @@ export const LogsPlugin = zeppelinGuildPlugin<LogsPluginType>()({
|
|||
state.cases = GuildCases.getGuildInstance(guild.id);
|
||||
|
||||
state.buffers = new Map();
|
||||
state.channelCooldowns = new CooldownManager();
|
||||
|
||||
state.regexRunner = getRegExpRunner(`guild-${pluginData.guild.id}`);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue