2022-07-10 17:48:38 -07:00
import { ActionRow , DiscordButtonStyles } from '../deps.ts' ;
2021-05-30 14:04:58 -07:00
2022-07-10 17:48:38 -07:00
import config from '../config.ts' ;
2021-05-30 14:04:58 -07:00
export const constantCmds = {
help : {
2021-11-11 19:23:36 -08:00
embeds : [ {
2021-05-30 14:04:58 -07:00
title : ` ${ config . name } Help ` ,
fields : [
{
2022-07-10 17:48:38 -07:00
name : 'All commands must have the bot\'s prefix before them.' ,
value : ` Default is \` ${ config . prefix } \` , send <@847256159123013722> to change it. ` ,
2021-05-30 14:04:58 -07:00
} ,
{
2022-07-10 17:48:38 -07:00
name : 'LFG Commands' ,
2021-05-30 14:04:58 -07:00
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
2022-07-10 17:48:38 -07:00
` ,
2021-05-30 14:04:58 -07:00
} ,
{
2022-07-10 17:48:38 -07:00
name : 'Utility Commands' ,
2021-05-30 14:04:58 -07:00
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
2022-07-10 17:48:38 -07:00
` ,
} ,
] ,
} ] ,
2021-05-30 14:04:58 -07:00
} ,
lfgHelp : {
2021-11-11 19:23:36 -08:00
embeds : [ {
2021-05-30 14:04:58 -07:00
title : ` ${ config . name } LFG Help ` ,
fields : [
{
2022-07-10 17:48:38 -07:00
name : 'All commands must have the bot\'s prefix before them.' ,
value : ` Default is \` ${ config . prefix } \` , send <@847256159123013722> to change it. ` ,
2021-05-30 14:04:58 -07:00
} ,
{
2022-07-10 17:48:38 -07:00
name : 'lfg create' ,
2021-05-30 14:04:58 -07:00
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 .
` ,
2022-07-10 17:48:38 -07:00
inline : true ,
2021-05-30 14:04:58 -07:00
} ,
{
2022-07-10 17:48:38 -07:00
name : 'lfg edit' ,
2021-05-30 14:04:58 -07:00
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 .
` ,
2022-07-10 17:48:38 -07:00
inline : true ,
2021-05-30 14:04:58 -07:00
} ,
{
2022-07-10 17:48:38 -07:00
name : 'lfg delete' ,
2021-05-30 14:04:58 -07:00
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 .
` ,
2022-07-10 17:48:38 -07:00
inline : true ,
} ,
] ,
} ] ,
2021-05-30 14:04:58 -07:00
} ,
info : {
2021-11-11 19:23:36 -08:00
embeds : [ {
2021-05-30 14:04:58 -07:00
fields : [
{
2022-07-10 17:48:38 -07:00
name : 'Group Up, the LFG bot' ,
2021-05-30 14:04:58 -07:00
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).
2022-07-10 17:48:38 -07:00
Need help with this bot ? Join my support server [ here ] ( https : //discord.gg/peHASXMZYv).`,
} ,
] ,
} ] ,
2021-05-30 14:04:58 -07:00
} ,
version : {
2021-11-11 19:23:36 -08:00
embeds : [ {
2022-07-10 17:48:38 -07:00
title : ` My current version is ${ config . version } ` ,
} ] ,
2021-05-30 14:04:58 -07:00
} ,
report : {
2021-11-11 19:23:36 -08:00
embeds : [ {
2021-05-30 14:04:58 -07:00
fields : [
{
2022-07-10 17:48:38 -07:00
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).' ,
} ,
] ,
} ] ,
2021-05-30 14:04:58 -07:00
} ,
lfgDelete1 : {
2021-11-11 19:23:36 -08:00
embeds : [ {
2021-05-30 14:04:58 -07:00
fields : [
{
2022-07-10 17:48:38 -07:00
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' ,
} ,
] ,
} ] ,
2021-05-30 14:04:58 -07:00
} ,
lfgDelete2 : {
2021-11-11 19:23:36 -08:00
embeds : [ {
2021-05-30 14:04:58 -07:00
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 \` ` ,
2022-07-10 17:48:38 -07:00
value : 'Click on the two character IDs below to view the LFG:\n' ,
} ,
] ,
} ] ,
2021-05-30 14:04:58 -07:00
} ,
lfgDelete3 : {
2021-11-11 19:23:36 -08:00
embeds : [ {
2022-07-10 17:48:38 -07:00
title : 'LFG deleted.' ,
} ] ,
2021-05-30 14:04:58 -07:00
} ,
lfgEdit1 : {
2021-11-11 19:23:36 -08:00
embeds : [ {
2021-05-30 14:04:58 -07:00
fields : [
{
2022-07-10 17:48:38 -07:00
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' ,
} ,
] ,
} ] ,
2021-05-30 14:04:58 -07:00
} ,
lfgEdit2 : {
2021-11-11 19:23:36 -08:00
embeds : [ {
2021-05-30 14:04:58 -07:00
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 \` ` ,
2022-07-10 17:48:38 -07:00
value : 'Click on the two character IDs below to view the LFG:\n' ,
} ,
] ,
} ] ,
} ,
2021-05-30 14:04:58 -07:00
} ;
2022-07-10 17:48:38 -07:00
export const editBtns : ActionRow [ 'components' ] = [
2021-05-30 14:04:58 -07:00
{
type : 2 ,
2022-07-10 17:48:38 -07:00
label : 'Change Game/Activity' ,
2021-05-30 14:04:58 -07:00
customId : ` editing@set_game ` ,
2022-07-10 17:48:38 -07:00
style : DiscordButtonStyles.Primary ,
2021-05-30 14:04:58 -07:00
} ,
{
type : 2 ,
2022-07-10 17:48:38 -07:00
label : 'Change Time' ,
2021-05-30 14:04:58 -07:00
customId : ` editing@set_time ` ,
2022-07-10 17:48:38 -07:00
style : DiscordButtonStyles.Primary ,
2021-05-30 14:04:58 -07:00
} ,
{
type : 2 ,
2022-07-10 17:48:38 -07:00
label : 'Change Description' ,
2021-05-30 14:04:58 -07:00
customId : ` editing@set_desc ` ,
2022-07-10 17:48:38 -07:00
style : DiscordButtonStyles.Primary ,
} ,
2021-05-30 14:04:58 -07:00
] ;
2021-06-02 09:27:05 -07:00
export const lfgStepQuestions = {
2022-07-10 17:48:38 -07:00
'set_game' : 'Please select a game from the list below. If your game is not listed, please type it out:' ,
'set_activity_with_button' :
'Please select an Activity from the list below. Depending on the game selected, these may be categories you can use to drill down to a specific activity.\n\nIf your activity is not listed, please type it out:' ,
'set_activity_with_text' : 'Please type the activity name out:' ,
'set_activity_from_category' : 'Please select an Activity from the list below.\n\nIf your activity is not listed, please type it out:' ,
'set_player_cnt' : 'Please enter the max number of members for this activity:' ,
'set_time' : 'Please enter the time of the activity:\nRecommended format: `h:mm am/pm tz month/day`' ,
'set_desc' : 'Please enter a description for the activity. Enter `none` to skip:' ,
'set_done' : 'Finalizing, please wait. . .' ,
2021-06-02 09:27:05 -07:00
} ;