This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: context menus and private commands
Co-authored-by: Marcos Susaña <[email protected]>
- Loading branch information
Showing
9 changed files
with
80 additions
and
31 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
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,25 @@ | ||
import { NoCooldown, createCommand } from "../config/setup.js"; | ||
|
||
export default createCommand({ | ||
body: { | ||
name: "grant", | ||
description: "View information & statistics about the bot", | ||
options: [ | ||
{ | ||
name: "plan", | ||
type: "SubCommand", | ||
description: "Customize the bot for yourself", | ||
}, | ||
{ | ||
name: "subscription", | ||
type: "SubCommand", | ||
description: "Customize the bot for the entire server", | ||
}, | ||
], | ||
}, | ||
cooldown: NoCooldown, | ||
pr: true, | ||
interaction: async ({ interaction }) => { | ||
await interaction.edit({}); | ||
}, | ||
}); |
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,8 +1,9 @@ | ||
import Bot from "./bot.js"; | ||
import Imagine from "./imagine.js"; | ||
import Chat from "./chat.js"; | ||
import grant from "./grant.js"; | ||
import Imagine from "./imagine.js"; | ||
import Premium from "./premium.js"; | ||
import Settings from "./settings.js"; | ||
import Reset from "./reset.js"; | ||
import Settings from "./settings.js"; | ||
|
||
export const commands = [Bot, Chat, Imagine, Premium, Settings, Reset]; | ||
export const commands = [Bot, Chat, Imagine, Premium, Settings, Reset, grant]; |
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,17 @@ | ||
import { BigString, Bot, ButtonComponent, CreateMessageOptions, MessageComponentTypes } from "@discordeno/bot"; | ||
import config from "../../config.js"; | ||
import { NoCooldown, buttonInfo, createCommand } from "../config/setup.js"; | ||
import { gatewayConfig } from "../index.js"; | ||
import { resetConversation } from "../utils/conversations.js"; | ||
import { getDefaultValues, getSettingsValue } from "../utils/settings.js"; | ||
|
||
export default createCommand({ | ||
body: { | ||
name: "translate", | ||
type: "Message", | ||
description: "Translate a message", | ||
}, | ||
cooldown: NoCooldown, | ||
isPrivate: true, | ||
interaction: async ({ interaction, env }) => {}, | ||
}); |
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