generated from nhcarrigan/template
This commit is contained in:
@@ -51,6 +51,7 @@ const amari: Amari = {
|
||||
freeCodeCamp: null,
|
||||
hackerNews: null,
|
||||
},
|
||||
recentlyActiveChannels: new Set<string>(),
|
||||
};
|
||||
|
||||
amari.discord.once(Events.ClientReady, () => {
|
||||
@@ -65,6 +66,9 @@ amari.discord.once(Events.ClientReady, () => {
|
||||
await logger.log("debug", "Auditing guild tags.");
|
||||
await cacheData(amari);
|
||||
});
|
||||
setInterval(() => {
|
||||
amari.recentlyActiveChannels = new Set<string>();
|
||||
}, 10 * 60 * 1000);
|
||||
});
|
||||
|
||||
amari.discord.on(Events.MessageCreate, (message) => {
|
||||
|
||||
Reference in New Issue
Block a user