1475963 / EmailBot

Jeopardy bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EmailBot

Jeopardy bot
You can play jeopardy by email, just send one that follows the use cases bellow at the address: bob.sanders.belair@gmail.com
You might even learn new chuck norris jokes !

Host your own server

{
    "name": "xxx",
    "email": "xxx@gmail.com",
    "username": "xxx@gmail.com",
    "password": "yyy",
    "imap": {
        "host": "imap.gmail.com",
        "port": 993,
        "secure": true
    },
    "smtp": {
        "host": "smtp.gmail.com",
        "ssl": true
    }
}
  • Retrieve & update the project dependencies: "npm install"
  • Run ! "npm start"

Use cases

  • Say something, whatever -> The bot reminds you that its purpose is to play Jeopardy and tells you a joke !
  • Ask for a question, Subject: Question, Body: whatever -> The bot sends you one of his 200k+ questions from any category.
  • Answer to a question, Subject: Response - #ID, #ID being an id (between 0 and 200k+) sent in the subject of the bot's previous mail, Body: Your answer to the bot's previous question.
  • Surrender a question, Subject: Surrender - #ID, #ID being an id (between 0 and 200k+) sent in the subject of the bot's previous mail, Body: the answer to the question refered by the #ID.

Future work & improvements

  • Handle multi-client and session save with MongoDB.
  • Score memory, still need a database such as MongoDB.

About

Jeopardy bot


Languages

Language:JavaScript 100.0%