Skip to content

Commit

Permalink
Merge branch 'main' of https://gitlab.com/wc-yat/whatsbot
Browse files Browse the repository at this point in the history
  • Loading branch information
sdip15fa committed Apr 15, 2024
2 parents 26bcc23 + 5a56e14 commit ee0e406
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const execute = async (client: Client, msg: Message, args: string[]) => {
while (/^[\d|-]+@(g|c)\.us$/.test(args[0])) {
chats.push(args.shift());
}
if (chats.length && !msg.fromMe) {
try { await msg.reply("Not allowed.")} catch {}
return;
}
if (!chats.length) chats.push((await msg.getChat()).id._serialized);
const date = args.join(" ");
if (
Expand Down

0 comments on commit ee0e406

Please sign in to comment.