fix: typo

This commit is contained in:
Udit Karode 2023-04-15 22:15:56 +05:30
parent 5aa21432ed
commit e627039482
No known key found for this signature in database
GPG Key ID: 864BAA48465205F0

View File

@ -23,8 +23,8 @@ async function main() {
const reply = ctx.message.reply_to_message; const reply = ctx.message.reply_to_message;
const message = ctx.message; const message = ctx.message;
if ("text" in reply && "text" in message && message.text.startsWith('.')) { if ("text" in reply && "text" in message && message.text.startsWith(".")) {
ai(ctx, message.text.splice(1).trim()); ai(ctx, message.text.slice(1).trim());
} }
}); });