forked from vendetta-mod/Vendetta
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
78 additions
and
2 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,20 @@ | ||
import { ApplicationCommand, ApplicationCommandInputType } from "@types"; | ||
import { Messages } from "../metro/common"; | ||
import { getDebugInfo } from "../debug"; | ||
|
||
const debugInfo = getDebugInfo(); | ||
export default [ | ||
{ | ||
name: 'debug', | ||
description: 'Prints Optis debug information to chat.', | ||
inputType: ApplicationCommandInputType.BUILT_IN, | ||
execute(_, ctx) { | ||
const content = `**Opti Debug Info** | ||
> **Opti Version**: ${debugInfo.vendetta.version} | ||
> **Discord Version**: ${debugInfo.discord.version} (Build ${debugInfo.discord.build}) | ||
> **Device**: ${debugInfo.device.brand} (${debugInfo.os.name} ${debugInfo.os.version}) | ||
> **Codename/Machine ID**: ${debugInfo.device.codename}` | ||
Messages.sendMessage(ctx.channel.id, { content: content }); | ||
}, | ||
}, | ||
] as ApplicationCommand[] |
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,13 @@ | ||
import { registerCommand } from "../commands"; | ||
import debug from "./debug"; | ||
import pluginslist from "./pluginslist"; | ||
|
||
export function initCustomCommands(): void { | ||
const customCommands = [ | ||
...debug, | ||
...pluginslist | ||
]; | ||
// registerCommand(customCommands); | ||
} | ||
|
||
export default { initCustomCommands }; |
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 { ApplicationCommand } from "@/def"; | ||
import { Messages } from "../metro/common"; | ||
import { getDebugInfo } from "../debug"; | ||
import { getDisabledPlugins, getPluginList, getPlugins } from "../plugins"; | ||
export default [ | ||
{ | ||
name: 'plugins list', | ||
description: 'Lists all Opti plugins.', | ||
execute(_, ctx) { | ||
const content = `**Enabled Plugins (${getPlugins()}):** | ||
> ${getPluginList()} | ||
**Disabled Plugins:** | ||
> ${getDisabledPlugins()}` | ||
Messages.sendMessage(ctx.channel.id, { content: content }); | ||
}, | ||
}, | ||
] as ApplicationCommand[] |
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