-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* split builders into groups * add new vote link to help embed * add invite and vote commands
- Loading branch information
Yoru
authored
Apr 21, 2024
1 parent
3729645
commit 738d026
Showing
18 changed files
with
78 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import type { MessageCommand } from "@type/commands"; | ||
import type { Message } from "@lilybird/transformers"; | ||
|
||
export default { | ||
name: "invite", | ||
description: "Get an invite link of the bot.", | ||
cooldown: 1000, | ||
run: async ({ message }: { message: Message }) => { | ||
const links = { | ||
invite: "https://discord.com/oauth2/authorize?client_id=995999045157916763&permissions=265216&scope=bot", | ||
vote: "https://top.gg/bot/995999045157916763" | ||
}; | ||
|
||
await message.reply({ | ||
content: `You can invite the bot to your server using the following link:\n${links.invite}\nYou can also vote for the bot:\n${links.vote}` | ||
}); | ||
} | ||
} satisfies MessageCommand; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { MessageCommand } from "@type/commands"; | ||
import type { Message } from "@lilybird/transformers"; | ||
|
||
export default { | ||
name: "vote", | ||
description: "Vote for the bot.", | ||
cooldown: 1000, | ||
run: async ({ message }: { message: Message }) => { | ||
const voteLink = "https://top.gg/bot/995999045157916763"; | ||
|
||
await message.reply({ | ||
content: `You can vote for the bot using the following link:\n${voteLink}` | ||
}); | ||
} | ||
} satisfies MessageCommand; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { SlashCommand } from "@type/commands"; | ||
|
||
export default { | ||
data: { name: "invite", description: "Get an invite link of the bot." }, | ||
run: async (interaction) => { | ||
const links = { | ||
invite: "https://discord.com/oauth2/authorize?client_id=995999045157916763&permissions=265216&scope=bot", | ||
vote: "https://top.gg/bot/995999045157916763" | ||
}; | ||
|
||
await interaction.editReply({ | ||
content: `You can invite the bot to your server using the following link:\n${links.invite}\nYou can also vote for the bot:\n${links.vote}` | ||
}); | ||
} | ||
} satisfies SlashCommand; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { SlashCommand } from "@type/commands"; | ||
|
||
export default { | ||
data: { name: "vote", description: "Vote for the bot." }, | ||
run: async (interaction) => { | ||
const voteLink = "https://top.gg/bot/995999045157916763"; | ||
|
||
await interaction.editReply({ | ||
content: `You can vote for the bot using the following link:\n${voteLink}` | ||
}); | ||
} | ||
} satisfies SlashCommand; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
// Complicated functions | ||
export * from "./compare"; | ||
export * from "./leaderboard"; | ||
export * from "./map"; | ||
export * from "./plays"; | ||
export * from "./profile"; | ||
|
||
// Simple functions | ||
export * from "./simple/avatar"; | ||
export * from "./simple/background"; | ||
export * from "./simple/banner"; | ||
export * from "./simple/help"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters