Giter VIP home page Giter VIP logo

dailybot's Introduction

Maintainability

Daily Bot

Deploy

This is a simple bot to remind Telegram groups about it's daily standup. It runs from monday to friday, but can run on different days too if you'd like.

Setting up

I'm assuming you already have Python 3.6 and a bot token (if you don't, here's a good link)

Firstly, you have to set the following variables to your environment:

  • NAME - the bot's name;
  • TOKEN - the bot's token;
  • CHAT_ID - the chat with which the bot will send the daily messages
  • HOUR - the hour that the bot will send the daily message
  • MINUTE - the minute of the hour mentioned above that the bot will send the daily message
  • PORT - only used if you're using ngrok or Heroku (and Heroku fills this variable automatically)

Now, you might be asking, how do I set variables? Well, it's a simple command (for linux, of course), see below for CHAT_ID.

export CHAT_ID=-98364829374

After you set all variables, create a virtual environment (or not) and install all dependencies with

pip install -r requirements.txt

And run the bot script

python dailybot.py

dailybot's People

Contributors

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