Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit ea820bf

Browse files
authored
Switch msg commands to slash and subcommands (Team-Neptune#19)
* Add subcommand support * Migrate note command * Migrate userinfo command * Migrate userlog command * Migrate warn command * Migrate ban command * Update .gitignore * Update subcommand loading * Update index.d.ts * Migrate kick command * Add commandName and subCommandGroup to commands * Add logStaffCommands() * remove console logs * Update index.ts * Migrate purge command * Update moderation.ts * Update sd.ts * Migrate deletewarn command * Migrate speak command * Migrated all moderation commands * Update index.d.ts * Update index.ts * Remove message command version of support, user * Migrate shrek command * Remove message command version of meme * Remove leftover code in purge, shrek, speak * Add build command * Add gitpull command * Add kill command * Migrate 'bot' commands * Move all message commands to slash commands * Delete moderation.ts * Update closeprompt.ts * fix eta command loading * Add new eta strings
1 parent 1161822 commit ea820bf

42 files changed

Lines changed: 1266 additions & 602 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ privateThreads.json
1212
publicThreads.json
1313
storage/deepsea_db.json
1414
activeTickets.json
15+
commands_setup.flag

src/classes/Command.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ import { CommandInteraction, MessageInteraction } from "discord.js";
22

33
class Command {
44
staffOnly?:boolean
5+
commandName?:string
6+
subCommandGroup?:string
57
constructor(options:Command){
68
this.staffOnly = options.staffOnly;
9+
this.subCommandGroup = options.subCommandGroup;
10+
this.commandName = options.commandName;
711
this.execute = options.execute;
812
};
913
execute(interaction:CommandInteraction){}

0 commit comments

Comments
 (0)