Skip to content

Commit

Permalink
fix: add abandon command (#54)
Browse files Browse the repository at this point in the history
* fix: add abandon command

* fix: remove duplicate champion/agent/hero

* fix: remove duplicate champion/agent/hero

* fix: remove duplicate champion/agent/hero

* fix: remove duplicate champion/agent/hero

* fix: remove duplicate champion/agent/hero

* fix: remove duplicate champion/agent/hero

* fix: remove duplicate champion/agent/hero

* fix: remove duplicate champion/agent/hero
  • Loading branch information
HenrySpartGlobal authored Nov 23, 2023
1 parent f679e9f commit 9f66ec5
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 32 deletions.
6 changes: 3 additions & 3 deletions src/app/commands/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const categoryDescriptions = {
Admin: "You must have Administrator permissions to run these commands",
"Set-Up": "Set up your server to use InHouseQueue Bot!",
General: "General commands that all members can use.",
LoL: "League of Legends commands",
Overwatch: "Overwatch commands",
Valorant: "Valorant commands",
// LoL: "League of Legends commands",
// Overwatch: "Overwatch commands",
// Valorant: "Valorant commands",
} satisfies {
[key in Categories]: string;
};
Expand Down
70 changes: 41 additions & 29 deletions src/data/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,41 +520,53 @@ const commands = [
"/top League of Legends Thresh",
]
},

// ~ Games
{
"name": "champion",
"type": "LoL",
"description": "Select your champion. Only works inside a lobby channel",
"usage": [
"/champion [name]",
],
"examples": [
"/champion Teemo",
]
},
{
"name": "hero",
"type": "Overwatch",
"description": "Select your hero. Only works inside a lobby channel",
"name": "abandon",
"type": "General",
"description": "Initiate a vote to cancel an ongoing game",
"usage": [
"/hero [name]",
"/abandon",
],
"examples": [
"/hero Tracer",
"/abandon",
]
},
{
"name": "agent",
"type": "Valorant",
"description": "Select your agent. Only works inside a lobby channel",
"usage": [
"/agent [name]",
],
"examples": [
"/agent Astra",
]
}
// ~ Games
// {
// "name": "champion",
// "type": "LoL",
// "description": "Select your champion. Only works inside a lobby channel",
// "usage": [
// "/champion [name]",
// ],
// "examples": [
// "/champion Teemo",
// ]
// },
// {
// "name": "hero",
// "type": "Overwatch",
// "description": "Select your hero. Only works inside a lobby channel",
// "usage": [
// "/hero [name]",
// ],
// "examples": [
// "/hero Tracer",
// ]
// },
// {
// "name": "agent",
// "type": "Valorant",
// "description": "Select your agent. Only works inside a lobby channel",
// "usage": [
// "/agent [name]",
// ],
// "examples": [
// "/agent Astra",
// ]
// }
// removing these for now - leaving as an example in case i ever add game specific commands
// full search for "League of Legends commands" in this repo
] as const;

// export commands
Expand Down

1 comment on commit 9f66ec5

@vercel
Copy link

@vercel vercel bot commented on 9f66ec5 Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.