GroupUp/src/constantCmds.ts

173 lines
4.6 KiB
TypeScript
Raw Normal View History

import {
DiscordButtonStyles, ActionRow
} from "../deps.ts";
import config from "../config.ts";
export const constantCmds = {
help: {
embed: {
title: `${config.name} Help`,
fields: [
{
name: "All commands must have the bot's prefix before them.",
value: `Default is \`${config.prefix}\`, send <@847256159123013722> to change it.`
},
{
name: "LFG Commands",
value: `
\`lfg help\` - More detailed help for the LFG commands
\`lfg create\` - Create a new LFG post
\`lfg edit\` - Edit an existing LFG post
\`lfg delete\` - Delete an existing LFG post
`
},
{
name: "Utility Commands",
value: `
\`info\` - Information about the bot
\`ping\` - Pings the bot to check its connection
\`report [TEXT]\` - Report an issue to the developer
\`version\` - Prints the bot's current version
`
}
]
}
},
lfgHelp: {
embed: {
title: `${config.name} LFG Help`,
fields: [
{
name: "All commands must have the bot's prefix before them.",
value: `Default is \`${config.prefix}\`, send <@847256159123013722> to change it.`
},
{
name: "lfg create",
value: `
\`lfg create\`, alternatively \`lfg c\`, will walk you through creating a new LFG post. Simply follow the prompts and the bot will walk you through building a new LFG.
Make sure you run this command in the channel you wish the LFG post to be created in.
`,
inline: true
},
{
name: "lfg edit",
value: `
\`lfg edit [id?]\`, alternatively \`lfg e [id?]\`, will walk you through editing an existing LFG. Like \`lfg create\`, the bot will walk you through editing it.
Simply run \`lfg edit\` in the channel where the LFG post lives.
If you only have one LFG in this channel, the editing process will begin.
If you have more than one LFG in this channel, the bot will ask you to specify the LFG post using a two character id.
`,
inline: true
},
{
name: "lfg delete",
value: `
\`lfg delete [id?]\`, alternatively \`lfg d [id?]\`, will delete an existing LFG. You only can delete LFG posts that you own.
Simply run \`lfg delete\` in the channel where the LFG post lives.
If you only have one LFG in this channel, the LFG will be deleted.
If you have more than one LFG in this channel, the bot will ask you to specify the LFG post using a two character id.
`,
inline: true
}
]
}
},
info: {
embed: {
fields: [
{
name: "Group Up, the LFG bot",
value: `Group Up is developed by Ean AKA Burn_E99.
Want to check out my source code? Check it out [here](https://github.com/Burn-E99/GroupUp).
Need help with this bot? Join my support server [here](https://discord.gg/peHASXMZYv).`
}
]
}
},
version: {
embed: {
title: `My current version is ${config.version}`
}
},
report: {
embed: {
fields: [
{
name: "Failed command has been reported to my developer.",
value: "For more in depth support, and information about planned maintenance, please join the support server [here](https://discord.gg/peHASXMZYv)."
}
]
}
},
lfgDelete1: {
embed: {
fields: [
{
name: "Could not find any LFGs to delete.",
value: "Make sure you are the owner of the LFG and are running this command in the same channel as the LFG"
}
]
}
},
lfgDelete2: {
embed: {
fields: [
{
name: `Multiple LFGs found, please run this command again with the two character ID of the LFG you wish to delete.\n\nExample: \`${config.prefix}lfg delete XX\``,
value: "Click on the two character IDs below to view the LFG:\n"
}
]
}
},
lfgDelete3: {
embed: {
title: "LFG deleted."
}
},
lfgEdit1: {
embed: {
fields: [
{
name: "Could not find any LFGs to edit.",
value: "Make sure you are the owner of the LFG and are running this command in the same channel as the LFG"
}
]
}
},
lfgEdit2: {
embed: {
fields: [
{
name: `Multiple LFGs found, please run this command again with the two character ID of the LFG you wish to edit.\n\nExample: \`${config.prefix}lfg edit XX\``,
value: "Click on the two character IDs below to view the LFG:\n"
}
]
}
}
};
export const editBtns: ActionRow["components"] = [
{
type: 2,
label: "Change Game/Activity",
customId: `editing@set_game`,
style: DiscordButtonStyles.Primary
},
{
type: 2,
label: "Change Time",
customId: `editing@set_time`,
style: DiscordButtonStyles.Primary
},
{
type: 2,
label: "Change Description",
customId: `editing@set_desc`,
style: DiscordButtonStyles.Primary
}
];