Skip to content

Commit

Permalink
added check on ping
Browse files Browse the repository at this point in the history
  • Loading branch information
MasedMSD committed Nov 6, 2024
1 parent cc6ac2d commit c61cc3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/structures/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ export class Client {
this.bot.command("exec", execCommand);
this.bot.command("start", startCommand);

this.bot.on("::mention", ctx => {
if (ctx.message?.text == `@${this.bot.botInfo.username}`) return ctx.reply("Я тут!");
});

this.bot.catch(console.error);
await this.bot.init();
await this.bot.start({ drop_pending_updates: true, onStart });
Expand Down

0 comments on commit c61cc3b

Please sign in to comment.