Giter Site home page Giter Site logo

lifehack-chatbot's Introduction

Usage:

  1. Find the bot on Telegram.

    Bot handle: @zerowastesgbot

  2. Press /start.

    If the /start button is not available for you, you can use it as a command (sending it as a message).

  3. Enter a suitable interval.

    When prompted for an interval, enter a suitable number.

    For demonstration purposes, we recommended setting it a very small number like 0.001.

    interval-input

    Note: Interval here is in hours (0.001 hours = 0.001 * 3600 = 3.6 seconds).

  4. Confirm the suitable interval.

    The bot will allow you to modify your input in the event of a mistake.

    It will also check that your input is a valid input (valid number in this case).

    Once you are satisfied with your interval, press Confirm to proceed.

    input-confirmation

  5. Start the bot.

    You will be presented with a choice whether to start the bot or not.

    Press Yes to begin the reminders.

    start-bot

  6. Use /stop to stop the bot.

    stop-bot

  7. Use /start again if you wish to modify your interval.

    Note that this will stop the bot similar to /stop.

    bot-started


Installation:

  1. Dependencies:


    $ python -m pip install -r requirements.txt
    
    # or if pip is already in your PATH
    $ pip -r requirements.txt

    Additionally you can create a virtual environment for your project:

    $ python -m venv venv
    
    # Unix
    $ source venv/bin/activate
    # Same command as before
    
    # Windows
    $ .\venv\Scripts\activate.bat
  2. config.yaml:

    You will also need to supply a config.yaml file.
    The following values have be configured in the file:

    # ---------------------------------- RUNTIME --------------------------------- #
    RUNTIME:
    LIVE_MODE: false
    FRESH_START: false
    
    # -------------------------------- BOT CONFIG -------------------------------- #
    BOT_TOKENS:
    LIVE: ""
    TEST: ""
    
    BOT:
    REMOVE_INLINE_KEYBOARD_MARKUP: true
    
    # -------------------------------- LOG CONFIG -------------------------------- #
    LOG_USER_TO_APP_LOGS: false
  3. Create a Telegram bot with BotFather.

    After successfully creating your bot, copy the BOT TOKEN.

    Set config.yaml -> BOT_TOKENS -> LIVE/TEST to be the token.

  4. Run the bot.

    $ python main.py

    You may need to activate venv if you have set it up in the earlier steps.

lifehack-chatbot's People

Contributors

jweng88 avatar mfjkri avatar pughal77 avatar

Watchers

 avatar

Forkers

jweng88

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.