Skip to content

Commit

Permalink
fix: do not send help message in pom bank along with pom bot (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjtheham authored Jan 5, 2025
1 parent 95f3ff5 commit 658b927
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions commands/help.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
const Discord = require('discord.js');
const discordDMWrapper = require ('../helpers/discordDirectMessageWrapper');
const { Config: { BOT: { PREFIX } } } = require('../config.js');
const { Config: { CHANNELS: { POM_BANK } } } = require('../config.js');

module.exports.execute = async (client, message, args) => {
let commands = client.commands;
let commandNames = [];

if (message.channel.id == POM_BANK) {
return;
}

if (!args || args.length === 0) {
let helpMessage = new Discord.MessageEmbed()
.setColor('#ff0000')
Expand Down
1 change: 1 addition & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const config = {
'CONTENT_NOTIFIER': process.env.C_CONTENT_NOTIFER,
'ERRORS': process.env.C_ERRORS,
'FORBIDDEN_HIGHLIGHT_CHANNELS': commaSepToArray(process.env.C_FORBIDDEN_HIGHLIGHT_CHANNELS),
'POM_BANK': process.env.C_POM_BANK,
},

// Discord emotes. Unicode emotes can be specified in the config directly,
Expand Down

0 comments on commit 658b927

Please sign in to comment.