aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/common/util/Arg.ts11
-rw-r--r--tests/arguments/abbreviatedNumber.test.ts10
-rw-r--r--tests/arguments/contentWithDuration.test.ts0
-rw-r--r--tests/arguments/discordEmoji.test.ts0
-rw-r--r--tests/arguments/duration.test.ts0
-rw-r--r--tests/arguments/durationSeconds.test.ts0
-rw-r--r--tests/arguments/globalUser.test.ts0
-rw-r--r--tests/arguments/messageLink.test.ts0
-rw-r--r--tests/arguments/permission.test.ts0
-rw-r--r--tests/arguments/roleWithDuration.test.ts0
-rw-r--r--tests/arguments/snowflake.test.ts0
-rw-r--r--tests/arguments/tinyColor.test.ts0
-rw-r--r--tests/commands/admin/channelPermissions.test.ts0
-rw-r--r--tests/commands/admin/roleAll.test.ts0
-rw-r--r--tests/commands/config/blacklist.test.ts0
-rw-r--r--tests/commands/config/config.test.ts0
-rw-r--r--tests/commands/config/disable.test.ts0
-rw-r--r--tests/commands/config/features.test.ts0
-rw-r--r--tests/commands/config/log.test.ts0
-rw-r--r--tests/commands/dev/dm.test.ts0
-rw-r--r--tests/commands/dev/eval.test.ts0
-rw-r--r--tests/commands/dev/javascript.test.ts0
-rw-r--r--tests/commands/dev/reload.test.ts0
-rw-r--r--tests/commands/dev/say.test.ts0
-rw-r--r--tests/commands/dev/servers.test.ts0
-rw-r--r--tests/commands/dev/sh.test.ts0
-rw-r--r--tests/commands/dev/superUser.test.ts0
-rw-r--r--tests/commands/dev/syncAutomod.test.ts0
-rw-r--r--tests/commands/dev/test.test.ts0
-rw-r--r--tests/commands/fun/coinFlip.test.ts0
-rw-r--r--tests/commands/fun/dice.test.ts0
-rw-r--r--tests/commands/fun/eightBall.test.ts0
-rw-r--r--tests/commands/fun/minesweeper.test.ts0
-rw-r--r--tests/commands/info/avatar.test.ts0
-rw-r--r--tests/commands/info/botInfo.test.ts0
-rw-r--r--tests/commands/info/color.test.ts0
-rw-r--r--tests/commands/info/guildInfo.test.ts0
-rw-r--r--tests/commands/info/help.test.ts0
-rw-r--r--tests/commands/info/icon.test.ts0
-rw-r--r--tests/commands/info/links.test.ts0
-rw-r--r--tests/commands/info/ping.test.ts0
-rw-r--r--tests/commands/info/pronouns.test.ts0
-rw-r--r--tests/commands/info/snowflake.test.ts0
-rw-r--r--tests/commands/info/userInfo.test.ts0
-rw-r--r--tests/commands/leveling/leaderboard.test.ts0
-rw-r--r--tests/commands/leveling/level.test.ts0
-rw-r--r--tests/commands/leveling/levelRoles.test.ts0
-rw-r--r--tests/commands/leveling/setLevel.test.ts0
-rw-r--r--tests/commands/leveling/setXp.test.ts0
-rw-r--r--tests/commands/moderation/ban.test.ts0
-rw-r--r--tests/commands/moderation/block.test.ts0
-rw-r--r--tests/commands/moderation/evidence.test.ts0
-rw-r--r--tests/commands/moderation/hideCase.test.ts0
-rw-r--r--tests/commands/moderation/kick.test.ts0
-rw-r--r--tests/commands/moderation/lockdown.test.ts0
-rw-r--r--tests/commands/moderation/massBan.test.ts0
-rw-r--r--tests/commands/moderation/massEvidence.test.ts0
-rw-r--r--tests/commands/moderation/modlog.test.ts0
-rw-r--r--tests/commands/moderation/mute.test.ts0
-rw-r--r--tests/commands/moderation/purge.test.ts0
-rw-r--r--tests/commands/moderation/removeReactionEmoji.test.ts0
-rw-r--r--tests/commands/moderation/role.test.ts0
-rw-r--r--tests/commands/moderation/slowmode.test.ts0
-rw-r--r--tests/commands/moderation/timeout.test.ts0
-rw-r--r--tests/commands/moderation/unban.test.ts0
-rw-r--r--tests/commands/moderation/unblock.test.ts0
-rw-r--r--tests/commands/moderation/unlockdown.test.ts0
-rw-r--r--tests/commands/moderation/unmute.test.ts0
-rw-r--r--tests/commands/moderation/untimeout.test.ts0
-rw-r--r--tests/commands/moderation/warn.test.ts0
-rw-r--r--tests/commands/moulberry-bush/capePermissions.test.ts0
-rw-r--r--tests/commands/moulberry-bush/capes.test.ts0
-rw-r--r--tests/commands/moulberry-bush/giveawayPing.test.ts0
-rw-r--r--tests/commands/moulberry-bush/moulHammer.test.ts0
-rw-r--r--tests/commands/moulberry-bush/report.test.ts0
-rw-r--r--tests/commands/moulberry-bush/rule.test.ts0
-rw-r--r--tests/commands/moulberry-bush/serverStatus.test.ts0
-rw-r--r--tests/commands/utilities/activity.test.ts0
-rw-r--r--tests/commands/utilities/calculator.test.ts0
-rw-r--r--tests/commands/utilities/decode.test.ts0
-rw-r--r--tests/commands/utilities/hash.test.ts0
-rw-r--r--tests/commands/utilities/highlight-!.test.ts0
-rw-r--r--tests/commands/utilities/highlight-add.test.ts0
-rw-r--r--tests/commands/utilities/highlight-block.test.ts0
-rw-r--r--tests/commands/utilities/highlight-clear.test.ts0
-rw-r--r--tests/commands/utilities/highlight-matches.test.ts0
-rw-r--r--tests/commands/utilities/highlight-remove.test.ts0
-rw-r--r--tests/commands/utilities/highlight-show.test.ts0
-rw-r--r--tests/commands/utilities/highlight-unblock.test.ts0
-rw-r--r--tests/commands/utilities/price.test.ts0
-rw-r--r--tests/commands/utilities/remind.test.ts0
-rw-r--r--tests/commands/utilities/reminders.test.ts0
-rw-r--r--tests/commands/utilities/steal.test.ts0
-rw-r--r--tests/commands/utilities/suicide.test.ts0
-rw-r--r--tests/commands/utilities/uuid.test.ts0
-rw-r--r--tests/commands/utilities/viewRaw.test.ts0
-rw-r--r--tests/commands/utilities/whoHasRole.test.ts0
-rw-r--r--tests/commands/utilities/wolframAlpha.test.ts0
-rw-r--r--tests/context-menu-commands/message/viewRaw.test.ts0
-rw-r--r--tests/context-menu-commands/user/modlog.test.ts0
-rw-r--r--tests/context-menu-commands/user/userInfo.test.ts0
-rw-r--r--tests/inhibitors/blacklist/channelGlobalBlacklist.test.ts0
-rw-r--r--tests/inhibitors/blacklist/channelGuildBlacklist.test.ts0
-rw-r--r--tests/inhibitors/blacklist/guildBlacklist.test.ts0
-rw-r--r--tests/inhibitors/blacklist/userGlobalBlacklist.test.ts0
-rw-r--r--tests/inhibitors/blacklist/userGuildBlacklist.test.ts0
-rw-r--r--tests/inhibitors/checks/fatal.test.ts0
-rw-r--r--tests/inhibitors/checks/guildUnavailable.test.ts0
-rw-r--r--tests/inhibitors/command/dm.test.ts0
-rw-r--r--tests/inhibitors/command/globalDisabledCommand.test.ts0
-rw-r--r--tests/inhibitors/command/guild.test.ts0
-rw-r--r--tests/inhibitors/command/guildDisabledCommand.test.ts0
-rw-r--r--tests/inhibitors/command/nsfw.test.ts0
-rw-r--r--tests/inhibitors/command/owner.test.ts0
-rw-r--r--tests/inhibitors/command/restrictedChannel.test.ts0
-rw-r--r--tests/inhibitors/command/restrictedGuild.test.ts0
-rw-r--r--tests/inhibitors/command/superUser.test.ts0
-rw-r--r--tsconfig.json2
-rw-r--r--vite.config.ts7
119 files changed, 26 insertions, 4 deletions
diff --git a/src/lib/common/util/Arg.ts b/src/lib/common/util/Arg.ts
index 325f821..d362225 100644
--- a/src/lib/common/util/Arg.ts
+++ b/src/lib/common/util/Arg.ts
@@ -5,7 +5,7 @@ import {
type CommandMessage,
type SlashMessage
} from '#lib';
-import { Argument, type Flag, type ParsedValuePredicate } from 'discord-akairo';
+import { Argument, type Command, type Flag, type ParsedValuePredicate } from 'discord-akairo';
import { type Message } from 'discord.js';
/**
@@ -17,8 +17,13 @@ import { type Message } from 'discord.js';
export async function cast<T extends ATC>(type: T, message: CommandMessage | SlashMessage, phrase: string): Promise<ATCR<T>>;
export async function cast<T extends KBAT>(type: T, message: CommandMessage | SlashMessage, phrase: string): Promise<BAT[T]>;
export async function cast(type: AT | ATC, message: CommandMessage | SlashMessage, phrase: string): Promise<any>;
-export async function cast(type: ATC | AT, message: CommandMessage | SlashMessage, phrase: string): Promise<any> {
- return Argument.cast(type as any, message.client.commandHandler.resolver, message as Message, phrase);
+export async function cast(
+ this: ThisType<Command>,
+ type: ATC | AT,
+ message: CommandMessage | SlashMessage,
+ phrase: string
+): Promise<any> {
+ return Argument.cast.call(this, type as any, message.client.commandHandler.resolver, message as Message, phrase);
}
/**
diff --git a/tests/arguments/abbreviatedNumber.test.ts b/tests/arguments/abbreviatedNumber.test.ts
new file mode 100644
index 0000000..2cf326d
--- /dev/null
+++ b/tests/arguments/abbreviatedNumber.test.ts
@@ -0,0 +1,10 @@
+import { expect, test } from 'vitest';
+import { abbreviatedNumber } from '../../src/arguments/abbreviatedNumber.js';
+import { CommandMessage } from '../../src/lib/index.js';
+
+const message = {} as CommandMessage;
+
+test('empty string returns null', () => {
+ const res = abbreviatedNumber(message, '');
+ expect(res).toBeNull();
+});
diff --git a/tests/arguments/contentWithDuration.test.ts b/tests/arguments/contentWithDuration.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/arguments/contentWithDuration.test.ts
diff --git a/tests/arguments/discordEmoji.test.ts b/tests/arguments/discordEmoji.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/arguments/discordEmoji.test.ts
diff --git a/tests/arguments/duration.test.ts b/tests/arguments/duration.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/arguments/duration.test.ts
diff --git a/tests/arguments/durationSeconds.test.ts b/tests/arguments/durationSeconds.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/arguments/durationSeconds.test.ts
diff --git a/tests/arguments/globalUser.test.ts b/tests/arguments/globalUser.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/arguments/globalUser.test.ts
diff --git a/tests/arguments/messageLink.test.ts b/tests/arguments/messageLink.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/arguments/messageLink.test.ts
diff --git a/tests/arguments/permission.test.ts b/tests/arguments/permission.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/arguments/permission.test.ts
diff --git a/tests/arguments/roleWithDuration.test.ts b/tests/arguments/roleWithDuration.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/arguments/roleWithDuration.test.ts
diff --git a/tests/arguments/snowflake.test.ts b/tests/arguments/snowflake.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/arguments/snowflake.test.ts
diff --git a/tests/arguments/tinyColor.test.ts b/tests/arguments/tinyColor.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/arguments/tinyColor.test.ts
diff --git a/tests/commands/admin/channelPermissions.test.ts b/tests/commands/admin/channelPermissions.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/admin/channelPermissions.test.ts
diff --git a/tests/commands/admin/roleAll.test.ts b/tests/commands/admin/roleAll.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/admin/roleAll.test.ts
diff --git a/tests/commands/config/blacklist.test.ts b/tests/commands/config/blacklist.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/config/blacklist.test.ts
diff --git a/tests/commands/config/config.test.ts b/tests/commands/config/config.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/config/config.test.ts
diff --git a/tests/commands/config/disable.test.ts b/tests/commands/config/disable.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/config/disable.test.ts
diff --git a/tests/commands/config/features.test.ts b/tests/commands/config/features.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/config/features.test.ts
diff --git a/tests/commands/config/log.test.ts b/tests/commands/config/log.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/config/log.test.ts
diff --git a/tests/commands/dev/dm.test.ts b/tests/commands/dev/dm.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/dev/dm.test.ts
diff --git a/tests/commands/dev/eval.test.ts b/tests/commands/dev/eval.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/dev/eval.test.ts
diff --git a/tests/commands/dev/javascript.test.ts b/tests/commands/dev/javascript.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/dev/javascript.test.ts
diff --git a/tests/commands/dev/reload.test.ts b/tests/commands/dev/reload.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/dev/reload.test.ts
diff --git a/tests/commands/dev/say.test.ts b/tests/commands/dev/say.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/dev/say.test.ts
diff --git a/tests/commands/dev/servers.test.ts b/tests/commands/dev/servers.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/dev/servers.test.ts
diff --git a/tests/commands/dev/sh.test.ts b/tests/commands/dev/sh.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/dev/sh.test.ts
diff --git a/tests/commands/dev/superUser.test.ts b/tests/commands/dev/superUser.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/dev/superUser.test.ts
diff --git a/tests/commands/dev/syncAutomod.test.ts b/tests/commands/dev/syncAutomod.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/dev/syncAutomod.test.ts
diff --git a/tests/commands/dev/test.test.ts b/tests/commands/dev/test.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/dev/test.test.ts
diff --git a/tests/commands/fun/coinFlip.test.ts b/tests/commands/fun/coinFlip.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/fun/coinFlip.test.ts
diff --git a/tests/commands/fun/dice.test.ts b/tests/commands/fun/dice.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/fun/dice.test.ts
diff --git a/tests/commands/fun/eightBall.test.ts b/tests/commands/fun/eightBall.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/fun/eightBall.test.ts
diff --git a/tests/commands/fun/minesweeper.test.ts b/tests/commands/fun/minesweeper.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/fun/minesweeper.test.ts
diff --git a/tests/commands/info/avatar.test.ts b/tests/commands/info/avatar.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/info/avatar.test.ts
diff --git a/tests/commands/info/botInfo.test.ts b/tests/commands/info/botInfo.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/info/botInfo.test.ts
diff --git a/tests/commands/info/color.test.ts b/tests/commands/info/color.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/info/color.test.ts
diff --git a/tests/commands/info/guildInfo.test.ts b/tests/commands/info/guildInfo.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/info/guildInfo.test.ts
diff --git a/tests/commands/info/help.test.ts b/tests/commands/info/help.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/info/help.test.ts
diff --git a/tests/commands/info/icon.test.ts b/tests/commands/info/icon.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/info/icon.test.ts
diff --git a/tests/commands/info/links.test.ts b/tests/commands/info/links.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/info/links.test.ts
diff --git a/tests/commands/info/ping.test.ts b/tests/commands/info/ping.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/info/ping.test.ts
diff --git a/tests/commands/info/pronouns.test.ts b/tests/commands/info/pronouns.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/info/pronouns.test.ts
diff --git a/tests/commands/info/snowflake.test.ts b/tests/commands/info/snowflake.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/info/snowflake.test.ts
diff --git a/tests/commands/info/userInfo.test.ts b/tests/commands/info/userInfo.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/info/userInfo.test.ts
diff --git a/tests/commands/leveling/leaderboard.test.ts b/tests/commands/leveling/leaderboard.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/leveling/leaderboard.test.ts
diff --git a/tests/commands/leveling/level.test.ts b/tests/commands/leveling/level.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/leveling/level.test.ts
diff --git a/tests/commands/leveling/levelRoles.test.ts b/tests/commands/leveling/levelRoles.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/leveling/levelRoles.test.ts
diff --git a/tests/commands/leveling/setLevel.test.ts b/tests/commands/leveling/setLevel.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/leveling/setLevel.test.ts
diff --git a/tests/commands/leveling/setXp.test.ts b/tests/commands/leveling/setXp.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/leveling/setXp.test.ts
diff --git a/tests/commands/moderation/ban.test.ts b/tests/commands/moderation/ban.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/ban.test.ts
diff --git a/tests/commands/moderation/block.test.ts b/tests/commands/moderation/block.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/block.test.ts
diff --git a/tests/commands/moderation/evidence.test.ts b/tests/commands/moderation/evidence.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/evidence.test.ts
diff --git a/tests/commands/moderation/hideCase.test.ts b/tests/commands/moderation/hideCase.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/hideCase.test.ts
diff --git a/tests/commands/moderation/kick.test.ts b/tests/commands/moderation/kick.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/kick.test.ts
diff --git a/tests/commands/moderation/lockdown.test.ts b/tests/commands/moderation/lockdown.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/lockdown.test.ts
diff --git a/tests/commands/moderation/massBan.test.ts b/tests/commands/moderation/massBan.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/massBan.test.ts
diff --git a/tests/commands/moderation/massEvidence.test.ts b/tests/commands/moderation/massEvidence.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/massEvidence.test.ts
diff --git a/tests/commands/moderation/modlog.test.ts b/tests/commands/moderation/modlog.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/modlog.test.ts
diff --git a/tests/commands/moderation/mute.test.ts b/tests/commands/moderation/mute.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/mute.test.ts
diff --git a/tests/commands/moderation/purge.test.ts b/tests/commands/moderation/purge.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/purge.test.ts
diff --git a/tests/commands/moderation/removeReactionEmoji.test.ts b/tests/commands/moderation/removeReactionEmoji.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/removeReactionEmoji.test.ts
diff --git a/tests/commands/moderation/role.test.ts b/tests/commands/moderation/role.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/role.test.ts
diff --git a/tests/commands/moderation/slowmode.test.ts b/tests/commands/moderation/slowmode.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/slowmode.test.ts
diff --git a/tests/commands/moderation/timeout.test.ts b/tests/commands/moderation/timeout.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/timeout.test.ts
diff --git a/tests/commands/moderation/unban.test.ts b/tests/commands/moderation/unban.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/unban.test.ts
diff --git a/tests/commands/moderation/unblock.test.ts b/tests/commands/moderation/unblock.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/unblock.test.ts
diff --git a/tests/commands/moderation/unlockdown.test.ts b/tests/commands/moderation/unlockdown.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/unlockdown.test.ts
diff --git a/tests/commands/moderation/unmute.test.ts b/tests/commands/moderation/unmute.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/unmute.test.ts
diff --git a/tests/commands/moderation/untimeout.test.ts b/tests/commands/moderation/untimeout.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/untimeout.test.ts
diff --git a/tests/commands/moderation/warn.test.ts b/tests/commands/moderation/warn.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moderation/warn.test.ts
diff --git a/tests/commands/moulberry-bush/capePermissions.test.ts b/tests/commands/moulberry-bush/capePermissions.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moulberry-bush/capePermissions.test.ts
diff --git a/tests/commands/moulberry-bush/capes.test.ts b/tests/commands/moulberry-bush/capes.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moulberry-bush/capes.test.ts
diff --git a/tests/commands/moulberry-bush/giveawayPing.test.ts b/tests/commands/moulberry-bush/giveawayPing.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moulberry-bush/giveawayPing.test.ts
diff --git a/tests/commands/moulberry-bush/moulHammer.test.ts b/tests/commands/moulberry-bush/moulHammer.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moulberry-bush/moulHammer.test.ts
diff --git a/tests/commands/moulberry-bush/report.test.ts b/tests/commands/moulberry-bush/report.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moulberry-bush/report.test.ts
diff --git a/tests/commands/moulberry-bush/rule.test.ts b/tests/commands/moulberry-bush/rule.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moulberry-bush/rule.test.ts
diff --git a/tests/commands/moulberry-bush/serverStatus.test.ts b/tests/commands/moulberry-bush/serverStatus.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/moulberry-bush/serverStatus.test.ts
diff --git a/tests/commands/utilities/activity.test.ts b/tests/commands/utilities/activity.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/activity.test.ts
diff --git a/tests/commands/utilities/calculator.test.ts b/tests/commands/utilities/calculator.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/calculator.test.ts
diff --git a/tests/commands/utilities/decode.test.ts b/tests/commands/utilities/decode.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/decode.test.ts
diff --git a/tests/commands/utilities/hash.test.ts b/tests/commands/utilities/hash.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/hash.test.ts
diff --git a/tests/commands/utilities/highlight-!.test.ts b/tests/commands/utilities/highlight-!.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/highlight-!.test.ts
diff --git a/tests/commands/utilities/highlight-add.test.ts b/tests/commands/utilities/highlight-add.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/highlight-add.test.ts
diff --git a/tests/commands/utilities/highlight-block.test.ts b/tests/commands/utilities/highlight-block.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/highlight-block.test.ts
diff --git a/tests/commands/utilities/highlight-clear.test.ts b/tests/commands/utilities/highlight-clear.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/highlight-clear.test.ts
diff --git a/tests/commands/utilities/highlight-matches.test.ts b/tests/commands/utilities/highlight-matches.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/highlight-matches.test.ts
diff --git a/tests/commands/utilities/highlight-remove.test.ts b/tests/commands/utilities/highlight-remove.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/highlight-remove.test.ts
diff --git a/tests/commands/utilities/highlight-show.test.ts b/tests/commands/utilities/highlight-show.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/highlight-show.test.ts
diff --git a/tests/commands/utilities/highlight-unblock.test.ts b/tests/commands/utilities/highlight-unblock.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/highlight-unblock.test.ts
diff --git a/tests/commands/utilities/price.test.ts b/tests/commands/utilities/price.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/price.test.ts
diff --git a/tests/commands/utilities/remind.test.ts b/tests/commands/utilities/remind.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/remind.test.ts
diff --git a/tests/commands/utilities/reminders.test.ts b/tests/commands/utilities/reminders.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/reminders.test.ts
diff --git a/tests/commands/utilities/steal.test.ts b/tests/commands/utilities/steal.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/steal.test.ts
diff --git a/tests/commands/utilities/suicide.test.ts b/tests/commands/utilities/suicide.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/suicide.test.ts
diff --git a/tests/commands/utilities/uuid.test.ts b/tests/commands/utilities/uuid.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/uuid.test.ts
diff --git a/tests/commands/utilities/viewRaw.test.ts b/tests/commands/utilities/viewRaw.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/viewRaw.test.ts
diff --git a/tests/commands/utilities/whoHasRole.test.ts b/tests/commands/utilities/whoHasRole.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/whoHasRole.test.ts
diff --git a/tests/commands/utilities/wolframAlpha.test.ts b/tests/commands/utilities/wolframAlpha.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/commands/utilities/wolframAlpha.test.ts
diff --git a/tests/context-menu-commands/message/viewRaw.test.ts b/tests/context-menu-commands/message/viewRaw.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/context-menu-commands/message/viewRaw.test.ts
diff --git a/tests/context-menu-commands/user/modlog.test.ts b/tests/context-menu-commands/user/modlog.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/context-menu-commands/user/modlog.test.ts
diff --git a/tests/context-menu-commands/user/userInfo.test.ts b/tests/context-menu-commands/user/userInfo.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/context-menu-commands/user/userInfo.test.ts
diff --git a/tests/inhibitors/blacklist/channelGlobalBlacklist.test.ts b/tests/inhibitors/blacklist/channelGlobalBlacklist.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/blacklist/channelGlobalBlacklist.test.ts
diff --git a/tests/inhibitors/blacklist/channelGuildBlacklist.test.ts b/tests/inhibitors/blacklist/channelGuildBlacklist.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/blacklist/channelGuildBlacklist.test.ts
diff --git a/tests/inhibitors/blacklist/guildBlacklist.test.ts b/tests/inhibitors/blacklist/guildBlacklist.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/blacklist/guildBlacklist.test.ts
diff --git a/tests/inhibitors/blacklist/userGlobalBlacklist.test.ts b/tests/inhibitors/blacklist/userGlobalBlacklist.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/blacklist/userGlobalBlacklist.test.ts
diff --git a/tests/inhibitors/blacklist/userGuildBlacklist.test.ts b/tests/inhibitors/blacklist/userGuildBlacklist.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/blacklist/userGuildBlacklist.test.ts
diff --git a/tests/inhibitors/checks/fatal.test.ts b/tests/inhibitors/checks/fatal.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/checks/fatal.test.ts
diff --git a/tests/inhibitors/checks/guildUnavailable.test.ts b/tests/inhibitors/checks/guildUnavailable.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/checks/guildUnavailable.test.ts
diff --git a/tests/inhibitors/command/dm.test.ts b/tests/inhibitors/command/dm.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/command/dm.test.ts
diff --git a/tests/inhibitors/command/globalDisabledCommand.test.ts b/tests/inhibitors/command/globalDisabledCommand.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/command/globalDisabledCommand.test.ts
diff --git a/tests/inhibitors/command/guild.test.ts b/tests/inhibitors/command/guild.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/command/guild.test.ts
diff --git a/tests/inhibitors/command/guildDisabledCommand.test.ts b/tests/inhibitors/command/guildDisabledCommand.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/command/guildDisabledCommand.test.ts
diff --git a/tests/inhibitors/command/nsfw.test.ts b/tests/inhibitors/command/nsfw.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/command/nsfw.test.ts
diff --git a/tests/inhibitors/command/owner.test.ts b/tests/inhibitors/command/owner.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/command/owner.test.ts
diff --git a/tests/inhibitors/command/restrictedChannel.test.ts b/tests/inhibitors/command/restrictedChannel.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/command/restrictedChannel.test.ts
diff --git a/tests/inhibitors/command/restrictedGuild.test.ts b/tests/inhibitors/command/restrictedGuild.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/command/restrictedGuild.test.ts
diff --git a/tests/inhibitors/command/superUser.test.ts b/tests/inhibitors/command/superUser.test.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/inhibitors/command/superUser.test.ts
diff --git a/tsconfig.json b/tsconfig.json
index 9046efe..eb23517 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -35,7 +35,7 @@
".eslintrc.cjs",
"config/**/*.ts",
"tests/**/*.ts",
- "vitest.config.ts"
+ "vite.config.ts"
],
"exclude": ["dist", "node_modules"]
}
diff --git a/vite.config.ts b/vite.config.ts
new file mode 100644
index 0000000..58e1d1c
--- /dev/null
+++ b/vite.config.ts
@@ -0,0 +1,7 @@
+import { defineConfig } from 'vitest/config';
+
+export default defineConfig({
+ test: {
+ include: ['./tests/**/*.test.ts']
+ }
+});