Git Product home page Git Product logo

inspector_habit_tamtam's Introduction

Inspector Habit โ€” ๐Ÿ† The Winner of TamTam bot developers contest

Inspector Habit is a TamTam bot which helps people to develop good habits and break bad ones. Users can also plan their day and create reminders via voice messages.

Getting Started

Inspector Habit bot requires Python 3.7 and packages specified in requirements.txt.

You can install them with

pip install -r requirements.txt

Before you start Inspector Habit it is necessary to create .env file:

touch .env

and fill in this file according to the example below:

DEBUG = True

TT_BOT_API_TOKEN = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ADMIN_ID = XXXXXXXXXXX

DATABASE_URL = postgres://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

DB_NAME = inspector_habit_db
DB_USER = user
DB_PASSWORD = XXXXXXXXXXX
DB_HOST = localhost

DEBUG should be False in prod

TT_BOT_API_TOKEN is the token got from PrimeBot

ADMIN_ID is the TamTam id of the admin

DATABASE_URL is used to access the database in prod

DB_NAME, DB_USER, DB_PASSWORD and DB_HOST are used to access the database in dev

Then you can start Inspector Habit with this command:

python main.py

Use case

There are three main functions in the menu: ๐Ÿ—“ Habits, ๐Ÿ“ Plans and ๐Ÿ”” Reminders.

1

๐Ÿ—“ Habits

2

Let's see current active habits.

3

And let's create a new one.

4

5

When check time is coming, we will get the following message from Inspector Habit.

6

Suppose we kept our promise and tap โœ… Yes.

7

๐Ÿ“ Plans

8

Let's create today plan.

9

Ok, plan is ready.

10

Now we can report.

11

Suppose that we have done README.

12

When report is ended we will see the following.

13

And can create tomorrow plan.

๐Ÿ”” Reminders

14

How to create reminders?

15

Ok, we don't have any reminders, so let's create the first one.

16

And we get a reminder in time.

17

inspector_habit_tamtam's People

Watchers

 avatar  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.