summary refs log tree commit diff
path: root/src-slowcord/bot/src/commands/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src-slowcord/bot/src/commands/index.ts')
-rw-r--r--src-slowcord/bot/src/commands/index.ts13
1 files changed, 6 insertions, 7 deletions
diff --git a/src-slowcord/bot/src/commands/index.ts b/src-slowcord/bot/src/commands/index.ts
index d3b39e0f..0130b2bc 100644
--- a/src-slowcord/bot/src/commands/index.ts
+++ b/src-slowcord/bot/src/commands/index.ts
@@ -2,11 +2,11 @@ import { Message, GuildMember, Guild, User } from "discord.js";
 import fs from "fs";
 
 export type CommandContext = {
-	user: User,
-	guild: Guild | null,
-	member: GuildMember | null,
-	message: Message,
-	args: string[],
+	user: User;
+	guild: Guild | null;
+	member: GuildMember | null;
+	message: Message;
+	args: string[];
 };
 
 export type Command = {
@@ -19,8 +19,7 @@ const walk = async (path: string) => {
 	const out = [];
 	for (var file of files) {
 		if (fs.statSync(`${path}/${file}`).isDirectory()) continue;
-		if (file.indexOf("index") !== -1)
-			continue;
+		if (file.indexOf("index") !== -1) continue;
 		if (file.indexOf(".js") !== file.length - 3) continue;
 		var imported = (await import(`./${file}`)).default;
 		out.push(imported);