Refactor message handling functions for improved clarity and maintainability
This commit is contained in:
@@ -4,7 +4,7 @@ import { logMessage } from "@root/logging.ts";
|
||||
import { defaultString } from "@root/defaultString.ts";
|
||||
import { Embed } from "@root/structures/embeds.ts";
|
||||
|
||||
export async function rule34MessageHandler(bot: Bot, message: Message) {
|
||||
export async function rule34MessageHandler(message: Message) {
|
||||
const command = message.content.trim().split(" ").slice(1).join(" ");
|
||||
if (command === "drop") {
|
||||
bot.helpers.sendMessage(message.channelId, {
|
||||
|
||||
Reference in New Issue
Block a user