Skip to content

Commit

Permalink
chore(MessageCreateEvent): better handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mzrtamp committed Oct 6, 2024
1 parent 90ce1e5 commit 0efe130
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/events/MessageCreateEvent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import process from "node:process";
import { Message, User } from "discord.js-selfbot-v13";
import { Message, TextChannel, User } from "discord.js-selfbot-v13";
import { BaseEvent } from "../structures/BaseEvent.js";
import { Event } from "../utils/decorators/Event.js";

Expand All @@ -11,11 +11,9 @@ export class MessageCreateEvent extends BaseEvent {
if (message.content.startsWith(this.client.config.prefix)) {
await this.client.commands.handle(message);
// return;
} else if (message.content.startsWith("**⚠️ |** ")) {
await message.channel.send("BOCILLLLLL");
} else if (message.content.startsWith(`**⚠️ | ${this.client.user?.username}**`) || message.content.startsWith(`⚠️ **|** <@${this.client.user?.id}>`)) {
await (this.client.channels.cache.get("972407605811085354") as TextChannel).send("<@999162502472548353>");
process.exit(0);
} else if (message.content.startsWith("BAAANNNGGG")) {
await this.client.users.cache.get("1213698164905746505")?.send("Woi cil, bot kontol minta disepong, buru.");
}

/* if (this.getUserFromMention(message.content)?.id === this.client.user?.id) {
Expand Down

0 comments on commit 0efe130

Please sign in to comment.