Skip to content

Commit

Permalink
remnants of copy/paste found
Browse files Browse the repository at this point in the history
static typing is nice
  • Loading branch information
meadowsys committed Nov 14, 2023
1 parent e0f022a commit 8196660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/Hug/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ module.exports = class Hug extends Module {
setCooldown(msg) {
const cooldownMessage = Tools.parseReply(this.config.cooldownMessage, [msg.author, Application.modules.Discord.getEmoji("gc_cannierror")]);

if (!Application.modules.Discord.hasCooldown(msg.author.id, this.config.bapType)) {
Application.modules.Discord.setCooldown(msg.author.id, this.config.bapType, this.config.bapTimeout);
if (!Application.modules.Discord.hasCooldown(msg.author.id, this.config.hugType)) {
Application.modules.Discord.setCooldown(msg.author.id, this.config.hugType, this.config.hugTimeout);
Application.modules.Discord.sendCooldownMessage(msg, msg.author.id + this.config.bapType, cooldownMessage, false);
this.log.info(`${msg.author} added to bap cooldown list.`);
}
Expand Down

0 comments on commit 8196660

Please sign in to comment.