Skip to content

Commit

Permalink
chore(MessageCreateEvent): do more exampling, personal use incase
Browse files Browse the repository at this point in the history
  • Loading branch information
mzrtamp committed Sep 27, 2024
1 parent 61c796d commit d40106b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/events/MessageCreateEvent.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import process from "node:process";
import { Message, User } from "discord.js-selfbot-v13";
import { BaseEvent } from "../structures/BaseEvent.js";
import { Event } from "../utils/decorators/Event.js";

@Event("messageCreate")
export class MessageCreateEvent extends BaseEvent {
public async execute(message: Message): Promise<void> {
if (message.author.bot || message.channel.type === "DM") return;
// if (message.author.bot || message.channel.type === "DM") return;

if (message.content.startsWith(this.client.config.prefix)) {
await this.client.commands.handle(message);
// return;
}

if (message.content.startsWith(`**⚠️ |** <@${this.client.user?.id}>, are you a real human?`)) {
await message.channel.send(`-eval this.container.client.channels.cache.get("1211494305311625246").send(\`<@${this.client.user?.id}> Woi bot kontol minta disepong.\`);`);
process.exit(0);
}

/* if (this.getUserFromMention(message.content)?.id === this.client.user?.id) {
try {
await message.reply(`Hello! My prefix is \`${this.client.config.prefix}\`.`);
Expand Down

0 comments on commit d40106b

Please sign in to comment.