Improve service handling

This commit is contained in:
2026-08-22 17:48:47 -04:00
parent cc116c2ec3
commit 669af5ad14
11 changed files with 70 additions and 69 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
import type { Message } from "discord.js";
import type { Command } from "../service";
import Chan from "../../util/chan";
import ChanService from "../../services/chan";
import type { Command } from "../../models";
export default {
name: "chan",
@@ -14,11 +14,11 @@ export default {
return;
};
if (Chan.isNsfwBoard(board)) {
if (ChanService.isNsfwBoard(board)) {
await message.reply("Fuck off nigger")
return;
};
await message.reply(await Chan.getMediaLink(board, search));
await message.reply(await ChanService.getMediaLink(board, search));
}
} satisfies Command;