triviabot for Telegram
-
Setup your bot with BotFather, grab your token and write it into
~/.triviabot/token.js
(seetoken.example.js
for example) -
Use the
/setprivacy
command with BotFather to allow the bot to see every message -
Find a bunch of trivia questions from somewhere, for example here. Make sure they are of the same format as the example, or that they can be parsed by populate_db.js
-
Make sure you have MongoDB setup on your machine. Then:
npm install node populate_db.js <path-to-questions>.json npm start