Giter VIP home page Giter VIP logo

timebotgolang's Introduction

TimeBot Golang

Description

TimeBot is a Telegram bot that allows you to get the notifications in some cities in advance.
It makes requests to the certain site, which has structure similar to the one below:

Month Column1 Column2 Column3
1 (пн) 05:30 08:00 12:00
2 (вт) 06:15 08:30 11:45
3 (ср) 06:00 08:15 12:30
4 (чт) 06:20 08:40 12:10
5 (пт) 06:35 08:50 12:25
6 (сб) 06:10 08:25 12:20
7 (вс) 06:25 08:45 12:15
8 (пн) 06:05 08:35 12:05
9 (вт) 06:30 08:55 12:35
10 (ср) 06:50 08:20 12:50
11 (чт) 06:40 08:10 12:30

Features:

  • Users' whitelist by telegram ID.
  • Using the Admin's telegram ID for administration commands.
  • In bot config editor (For admin).
  • Time reminder a certain number of minutes before.
  • Daily updating of timetable for current day.

Used dependencies

Internal

  • net/http for requests with http.Client
  • encoding/json for working with config.json
  • slices
  • strconv, strings
  • log
  • os
  • fmt
  • time

External

  • Telebot - golang framework for telegram bots development.
  • Telebot-FSM - finite state machine for Telebot. Used for step-by-step dialogs realization.
  • Gocron - package for jobs scheduling. Used for sending reminding messages in advance by cron.
  • Goquery - provides parsing tools. Used for getting useful information from http response.

timebotgolang's People

Contributors

psevdocoder avatar

Watchers

 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.