Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwin24 committed Aug 2, 2024
1 parent cd5ed20 commit 1adaef9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,11 @@ bot.action(/add_/, async (ctx) => {

bot.hears(/^(?!\/).*/, async (ctx) => {
try {
// if not a private message return
if (ctx.chat.type !== "private") {
return;
}

let message = ctx.message.text;
if (message.startsWith("/")) {
return;
Expand Down

0 comments on commit 1adaef9

Please sign in to comment.