Better demo
This commit is contained in:
parent
a8c4c0e33f
commit
75798a1a63
@ -38,7 +38,7 @@ const question = new Question({
|
|||||||
answers: [['Hey'], ['Hello, Sir'], ['Yo bro']]
|
answers: [['Hey'], ['Hello, Sir'], ['Yo bro']]
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.get(/Hi|Hey|Yo/, message => {
|
bot.get(/Hi\sBot/, message => {
|
||||||
const id = message.chat.id;
|
const id = message.chat.id;
|
||||||
|
|
||||||
question.to(id).reply(message.message_id);
|
question.to(id).reply(message.message_id);
|
||||||
|
2
demo.js
2
demo.js
@ -22,7 +22,7 @@ const question = new Question({
|
|||||||
answers: [['Hey'], ['Hello, Sir'], ['Yo bro']]
|
answers: [['Hey'], ['Hello, Sir'], ['Yo bro']]
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.get(/Hi|Hey|Yo/, message => {
|
bot.get(/Hi\sBot/, message => {
|
||||||
const id = message.chat.id;
|
const id = message.chat.id;
|
||||||
|
|
||||||
question.to(id).reply(message.message_id);
|
question.to(id).reply(message.message_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user