Skip to content

Commit

Permalink
Merge pull request #43 from infoforcefeed/8ball
Browse files Browse the repository at this point in the history
UNTESTED
  • Loading branch information
lykkin authored Sep 27, 2023
2 parents 3cf9fb7 + 85f2b97 commit 150da19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,12 @@ bot.onText(/.*market.*/gi, function onEditableText(msg) {
}
});

bot.onText(/.*#8ball*/gi, function onEditableText(msg) {
const answers = ["It is certain.", "It is decidedly so.", "Without a doubt.", "Yes, definitely.", "You may rely on it.", "As I see it, yes.", "Most likely.", "Outlook good.", "Yes.", "Signs point to yes.", "Reply hazy, try again.", "Ask again later.", "Better not tell you now.", "Cannot predict now.", "Concentrate and ask again.", "Don't count on it.", "My reply is no.", "My sources say no.", "Outlook not so good.", "Very doubtful."];
const answer = answers[Math.floor(Math.random() * answers.length)];
bot.sendMessage(msg.chat.id, answer);
});

bot.onText(/.*(authoritarian|libertarian).*/gi, function onEditableText(msg) {
const m = Math.floor(Math.random() * 3);
if (m <= 1) {
Expand Down

0 comments on commit 150da19

Please # to comment.