This repository has been archived by the owner on Apr 23, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2a8aec
commit c773a76
Showing
5 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"Command": { | ||
"prefix": "command", | ||
"body": [ | ||
"import help from '@/help/version';", | ||
"import Command from '@classes/command';", | ||
"import { SlashCommandBuilder } from '@discordjs/builders';", | ||
"import Discord from 'discord.js';", | ||
"export default new Command()", | ||
"\t.setCommandData(", | ||
"\t\tnew SlashCommandBuilder()", | ||
"\t\t\t.setName('version')", | ||
"\t\t\t.setDescription('The version of the bot in use.')", | ||
"\t)", | ||
"\t.setHelp(help)", | ||
"\t.setResponse(async (interaction) => {", | ||
"\t\tinteraction.reply({", | ||
"\t\t\tephemeral: true,", | ||
"\t\t\tcontent: `The version of the bot is \\`${process.env.VERSION}\\`.\\nThe discord.js version is \\`${Discord.version}\\`.`,", | ||
"\t\t});", | ||
"\t});" | ||
], | ||
"description": "Creates a command" | ||
}, | ||
"Help": { | ||
"prefix": "help", | ||
"body": [ | ||
"import Help from '@/classes/help';", | ||
"", | ||
"export default new Help('Sends the running version of Dynamica.');" | ||
], | ||
"description": "Creates help file" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
import Help from '@/classes/help'; | ||
|
||
export default new Help('Sends the running version of Dynamica.'); | ||
export default new Help('Sends the running version of Dynamica.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters