APRK01 commited on
Commit
91be398
Β·
1 Parent(s): eab4b19

docs: update help menu to include massdrop and linkdrop

Browse files
Files changed (1) hide show
  1. src/events/messageCreate.js +7 -6
src/events/messageCreate.js CHANGED
@@ -72,7 +72,7 @@ module.exports = {
72
 
73
  // ── Whitelisted user: only allow "drop" ──
74
  if (userId !== OWNER_ID) {
75
- if (content === 'drop') {
76
  const check = canDrop(userId);
77
  if (!check.allowed) {
78
  if (check.reason === 'not_whitelisted') {
@@ -94,14 +94,14 @@ module.exports = {
94
  });
95
  return;
96
  }
97
- return; // Whitelisted users can only use "drop"
98
  }
99
 
100
  // ── Owner-only commands below ──────────────────────────
101
 
102
  // Drop (no rate limit for owner)
103
- if (content === 'drop') {
104
- await logCommand(client, 'drop');
105
  const session = startDropSession(userId);
106
  await message.reply(getPrompt(session));
107
  return;
@@ -160,7 +160,7 @@ module.exports = {
160
 
161
  // Show help
162
  if (content === 'help') {
163
- const allCommands = [...Object.keys(commands), 'drop', 'whitelist', 'whitelist <id> [limit]', 'unwhitelist <id>', 'clear <channel_id>'];
164
  const embed = infoEmbed('WSB Commands', [
165
  'All commands are **DM-only** and **Owner-only**.\n',
166
  ...allCommands.map(cmd => `\`${cmd}\``),
@@ -175,9 +175,10 @@ module.exports = {
175
  content.startsWith('backup') || content.startsWith('shutdown') ||
176
  content.startsWith('ticket') || content.startsWith('permission') ||
177
  content.startsWith('post') || content.startsWith('drop') ||
 
178
  content.startsWith('apply') || content.startsWith('fix') ||
179
  content.startsWith('clear')) {
180
- return message.reply({ embeds: [errorEmbed('Unknown Command', `Did you mean one of these?\n${[...Object.keys(commands), 'drop', 'clear <channel_id>'].map(c => `\`${c}\``).join('\n')}`)] });
181
  }
182
  return;
183
  }
 
72
 
73
  // ── Whitelisted user: only allow "drop" ──
74
  if (userId !== OWNER_ID) {
75
+ if (content === 'drop' || content === 'linkdrop') {
76
  const check = canDrop(userId);
77
  if (!check.allowed) {
78
  if (check.reason === 'not_whitelisted') {
 
94
  });
95
  return;
96
  }
97
+ return; // Whitelisted users can only use "drop" or "linkdrop"
98
  }
99
 
100
  // ── Owner-only commands below ──────────────────────────
101
 
102
  // Drop (no rate limit for owner)
103
+ if (content === 'drop' || content === 'linkdrop') {
104
+ await logCommand(client, content);
105
  const session = startDropSession(userId);
106
  await message.reply(getPrompt(session));
107
  return;
 
160
 
161
  // Show help
162
  if (content === 'help') {
163
+ const allCommands = [...Object.keys(commands), 'drop', 'massdrop', 'linkdrop', 'whitelist', 'whitelist <id> [limit]', 'unwhitelist <id>', 'clear <channel_id>'];
164
  const embed = infoEmbed('WSB Commands', [
165
  'All commands are **DM-only** and **Owner-only**.\n',
166
  ...allCommands.map(cmd => `\`${cmd}\``),
 
175
  content.startsWith('backup') || content.startsWith('shutdown') ||
176
  content.startsWith('ticket') || content.startsWith('permission') ||
177
  content.startsWith('post') || content.startsWith('drop') ||
178
+ content.startsWith('mass') || content.startsWith('link') ||
179
  content.startsWith('apply') || content.startsWith('fix') ||
180
  content.startsWith('clear')) {
181
+ return message.reply({ embeds: [errorEmbed('Unknown Command', `Did you mean one of these?\n${[...Object.keys(commands), 'drop', 'massdrop', 'linkdrop', 'clear <channel_id>'].map(c => `\`${c}\``).join('\n')}`)] });
182
  }
183
  return;
184
  }