Improve service handling
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user