mirror of
https://github.com/uditkarode/bing-chat-telegram.git
synced 2025-02-22 17:22:13 +00:00
Merge pull request #3 from JeelPatel231/dot-patch
add a "." check for considering prompts
This commit is contained in:
commit
5aa21432ed
@ -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) {
|
if ("text" in reply && "text" in message && message.text.startsWith('.')) {
|
||||||
ai(ctx, message.text);
|
ai(ctx, message.text.splice(1).trim());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user