Coder Social home page Coder Social logo

odinbot's Introduction

OdinBot

A bot that helps you excel on your daily tasks.

Odin is a Telegram bot created through the Telegram API. It is designed to track and help with your daily sessions. It uses Node's Natural Language Processing to distinguish phrases and categorize them into specified intents, in order to provide a suitable response. It has built-in methods (such as "/pomodoro") that allow users to utilize their functions.

At a Glance

Demo #1 Demo #2
  • note "7 minutes done!" didn't take 7 minutes because of demo purposes.

Current Methods

1. The Pomodoro Technique

The Pomodoro Technique is a time management method developed by Francesco Cirillo in the late 1980s. The technique uses a timer to break down work into intervals traditionally 25 minutes in length, separated by short breaks. These intervals are known as "pomodori", from the Italian word pomodoro for "tomato". The method is based on the idea that frequent breaks can improve mental agility.

After you have entered "/pomodoro <session name>", <session name> executes.

  • Sending the text /pomodoro status will let you know how much time you have left in your current Pomodoro session or break.
  • Sending any other phrase will start a 25 minute pomodoro session. You'll be notified 25 minutes later via text to take a break. And then will be notified 7 minutes after that to get back to work (at which point you can send another phrase to start the Pomodoro session).
  • Sending the word /pomodoro clear will clear all sessions.

Example conversation:

  • /pomodoro status: "No pomodoro session is currently running."
  • /pomodoro Physics Lab: "Session "Physics Lab" started on 6/2/2019, 11:01:14 PM."
  • /pomodoro status: "Session "Physics Lab" is currently running. You have 25 minute(s) left."
  • Work for 25 minutes....
  • You'll get a text: ""25 minutes done! Take a break.""
  • /pomodoro status: "You're on break from "Physics Lab"! You have 7 minute(s) left before work."
  • Do something for 7 minutes to your heart's content...
  • You'll get a text: "7 minutes done. Back to work!"
  • /pomodoro status: "No pomodoro session is currently running."
  • And so on...

Get Started

Get your own Telegram token from BotFather. More on that here. Then, plug in the token at the top of index.js.

  1. Clone this reposity and run:
npm install
  1. Run the bot:
npm run bot

odinbot's People

Contributors

gazijarin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.