Skip to content

Commit

Permalink
slash cmd bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
thatkev committed Apr 20, 2024
1 parent 35b3628 commit 0756857
Show file tree
Hide file tree
Showing 34 changed files with 686 additions and 0 deletions.
1 change: 1 addition & 0 deletions discord-languages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["en-US", "en-GB", "tr"]
21 changes: 21 additions & 0 deletions langs/en_gb/bot/slash_commands/ban.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "ban",
"description": "Ban a user",

"commandOptions": {
"userOption": {
"name": "user",
"description": "The user to ban"
},

"reasonOption": {
"name": "reason",
"description": "The reason for banning the user"
},

"deleteMessageDaysOption": {
"name": "delete",
"description": "Number of days of user messages to delete"
}
}
}
4 changes: 4 additions & 0 deletions langs/en_gb/bot/slash_commands/commands.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "commands",
"description": "See a list of Quark's commands"
}
10 changes: 10 additions & 0 deletions langs/en_gb/bot/slash_commands/debug.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "debug",
"description": "Generate a debug report for this server",
"commandOptions": {
"shareOption": {
"name": "share",
"description": "Choose whether to share this debug report with the developers"
}
}
}
30 changes: 30 additions & 0 deletions langs/en_gb/bot/slash_commands/export.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "export",
"description": "Export a group of logs",

"commandOptions": {
"startOption": {
"name": "start",
"description": "The message link of the first log to start exporting from"
},

"endOption": {
"name": "end",
"description": "The message link of the last log to export from"
},

"formatOption": {
"name": "format",
"description": "The format of the exported logs",

"choices": {
"json": {
"name": "json"
},
"pretty": {
"name": "pretty"
}
}
}
}
}
14 changes: 14 additions & 0 deletions langs/en_gb/bot/slash_commands/help.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "help",
"description": "Get help with Quark",
"commandOptions": {
"overviewOption": {
"name": "overview",
"description": "See general help info"
},
"serverlogOption": {
"name": "serverlog",
"description": "Get help with Quark's serverlogs"
}
}
}
4 changes: 4 additions & 0 deletions langs/en_gb/bot/slash_commands/invite.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "invite",
"description": "Invite Quark to your server"
}
16 changes: 16 additions & 0 deletions langs/en_gb/bot/slash_commands/kick.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "kick",
"description": "Kick a user",

"commandOptions": {
"userOption": {
"name": "user",
"description": "The user to kick"
},

"reasonOption": {
"name": "reason",
"description": "The reason for kicking the user"
}
}
}
10 changes: 10 additions & 0 deletions langs/en_gb/bot/slash_commands/language.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "language",
"description": "Change Quark's language",
"commandOptions": {
"languageOption": {
"name": "language",
"description": "Set the bot language for this server"
}
}
}
38 changes: 38 additions & 0 deletions langs/en_gb/bot/slash_commands/mute.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "mute",
"description": "Mute a user",

"commandOptions": {
"userOption": {
"name": "user",
"description": "The user to mute"
},

"timeOption": {
"name": "time",
"description": "Period of time to timeout the user for. Default unit is days"
},

"typeOption": {
"name": "type",
"description": "Units for the \"time\" field. Defaults to days",

"choices": {
"minutes": {
"name": "minutes"
},
"hours": {
"name": "hours"
},
"days": {
"name": "days"
}
}
},

"reasonOption": {
"name": "reason",
"description": "The reason for muting the user"
}
}
}
4 changes: 4 additions & 0 deletions langs/en_gb/bot/slash_commands/privacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "privacy",
"description": "View our privacy policy"
}
10 changes: 10 additions & 0 deletions langs/en_gb/bot/slash_commands/purge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "purge",
"description": "Purge channel messages",
"commandOptions": {
"countOption": {
"name": "count",
"description": "Number of messages to delete (2-100)"
}
}
}
16 changes: 16 additions & 0 deletions langs/en_gb/bot/slash_commands/reason.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "reason",
"description": "Modify the reason on a modlog",

"commandOptions": {
"caseOption": {
"name": "case",
"description": "Message ID of the modlog to modify"
},

"reasonOption": {
"name": "reason",
"description": "The new reason to update the modlog case with"
}
}
}
71 changes: 71 additions & 0 deletions langs/en_gb/bot/slash_commands/serverlog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"name": "serverlog",
"description": "Serverlog",

"commandOptions": {
"channelOptionAllChannel": {
"name": "channel",
"description": "Select the logging channel"
},

"channelOptionAll": {
"name": "all",
"description": "Toggle channel from logging all log types"
},

"channelOption": {
"name": "channel",
"description": "Set the serverlog channel"
},

"targetUserOption": {
"name": "user",
"description": "Select a target"
},

"ignoreOptionTarget": {
"name": "target",
"description": "Targets are people who are doing the action"
},

"messageContentOption": {
"name": "content",
"description": "Add or remove a message from the ignore list"
},

"ignoreOptionMessage": {
"name": "message",
"description": "Messages with this exact content are not recorded to the serverlog"
},

"executorUserOption": {
"name": "user",
"description": "Select an executor"
},

"ignoreOptionExecutor": {
"name": "executor",
"description": "Executors are people carrying out the action"
},

"ignoreOptionsChannelChannel": {
"name": "channel",
"description": "Add or remove a channel from the ignore list"
},

"ignoreOptionChannel": {
"name": "channel",
"description": "Messages in this channel are not recorded to the serverlog"
},

"ignoreOption": {
"name": "ignore",
"description": "Ignore options"
},

"spoilersOption": {
"name": "spoilers",
"description": "Spoiler all media sent to the serverlog"
}
}
}
66 changes: 66 additions & 0 deletions langs/en_gb/bot/slash_commands/tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"name": "tags",
"description": "Tags",
"commandOptions": {
"sendOptionTag": {
"name": "tag",
"description": "Name of tag to send"
},
"sendOptionUser": {
"name": "user",
"description": "Mentions a user for better visibility"
},
"sendOption": {
"name": "send",
"description": "Send a tag"
},
"editOptionTag": {
"name": "tag",
"description": "Name of tag to edit"
},
"editOptionText": {
"name": "text",
"description": "Text to display on the tag"
},
"editOptionColour": {
"name": "colour",
"description": "The hex colour code for the tag"
},
"editOptionImage": {
"name": "image",
"description": "A URL for an image to be displayed on the tag"
},
"editOption": {
"name": "edit",
"description": "Edit a tag"
},
"createOptionTag": {
"name": "tag",
"description": "Name of tag to create"
},
"createOptionText": {
"name": "text",
"description": "Text to display on the tag"
},
"createOption": {
"name": "create",
"description": "Create a tag"
},
"deleteOptionTag": {
"name": "tag",
"description": "Name of tag to delete"
},
"deleteOption": {
"name": "delete",
"description": "Delete a tag"
},
"listOption": {
"name": "list",
"description": "List all tags"
},
"helpOption": {
"name": "help",
"description": "Get help with tags"
}
}
}
14 changes: 14 additions & 0 deletions langs/en_gb/bot/slash_commands/unban.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "unban",
"description": "Unban a user",
"commandOptions": {
"userOption": {
"name": "user-id",
"description": "The ID of the user to unban"
},
"reasonOption": {
"name": "reason",
"description": "The reason for unbanning the user"
}
}
}
14 changes: 14 additions & 0 deletions langs/en_gb/bot/slash_commands/unmute.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "unmute",
"description": "Unmute a user",
"commandOptions": {
"userOption": {
"name": "user",
"description": "The user to unmute"
},
"reasonOption": {
"name": "reason",
"description": "The reason for unmuting the user"
}
}
}
21 changes: 21 additions & 0 deletions langs/en_us/bot/slash_commands/ban.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "ban",
"description": "Ban a user",

"commandOptions": {
"userOption": {
"name": "user",
"description": "The user to ban"
},

"reasonOption": {
"name": "reason",
"description": "The reason for banning the user"
},

"deleteMessageDaysOption": {
"name": "delete",
"description": "Number of days of user messages to delete"
}
}
}
4 changes: 4 additions & 0 deletions langs/en_us/bot/slash_commands/commands.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "commands",
"description": "See a list of Quark's commands"
}
10 changes: 10 additions & 0 deletions langs/en_us/bot/slash_commands/debug.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "debug",
"description": "Generate a debug report for this server",
"commandOptions": {
"shareOption": {
"name": "share",
"description": "Choose whether to share this debug report with the developers"
}
}
}
Loading

0 comments on commit 0756857

Please sign in to comment.