Add custom variables to custom message feature

This commit is contained in:
SileNce5k 2021-07-04 12:48:06 +02:00
parent 67f674c92b
commit 9bb9effaf7
No known key found for this signature in database
GPG key ID: C507260E7F2583AD
3 changed files with 30 additions and 2 deletions

View file

@ -10,7 +10,8 @@ module.exports = {
moreHelp: ["<prefix>custom add - Add new custom commands",
"<prefix>custom remove - Delete your custom commands.",
"<prefix>custom owner - check owner of custom command",
"<prefix>custom list - list all custom commands"
"<prefix>custom list - list all custom commands",
"<prefix>custom variables - list all variables you can use"
],
execute({message, args, client}) {
const customPath = './data/customCommands.json';
@ -53,6 +54,9 @@ module.exports = {
sendText = embed
}else sendText = "NO CUSTOM COMMANDS"
break;
case "variables":
sendText = "The variables you can use are:\n<prefix>\n<globalPrefix>\n<username>\n<nickname>\n<user_id>\n<discriminator>\n<guild_name>\n<guild_id>"
break;
default:
sendText = "Argument not recognized."
break;