mirror of
https://github.com/uditkarode/bing-chat-telegram.git
synced 2025-02-22 01:02:13 +00:00
add a "." check for considering prompts
This commit is contained in:
parent
136b0fc5c9
commit
3fc3847149
@ -23,8 +23,8 @@ async function main() {
|
||||
|
||||
const reply = ctx.message.reply_to_message;
|
||||
const message = ctx.message;
|
||||
if ("text" in reply && "text" in message) {
|
||||
ai(ctx, message.text);
|
||||
if ("text" in reply && "text" in message && message.text.startsWith('.')) {
|
||||
ai(ctx, message.text.splice(1).trim());
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user