Coder Social home page Coder Social logo

enplotz / mensa_ukon Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 224 KB

๐Ÿด Unofficial Telegram bot and library for Uni Konstanz canteen plan. ๐Ÿ›๐Ÿพ

Home Page: https://telegram.me/MensaUKONBot

Python 40.43% HTML 59.57%
bot python telegram-bot uni-konstanz utility

mensa_ukon's People

Contributors

enplotz avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

bfkss

mensa_ukon's Issues

More consistent logging

Ideally, we would like stdout to really just contain errors (or warnings?) and everything else go to the log file(s). pygogo seems like a nice to use library.

Maybe it's a good idea to divide the log into multiple files:

  • common.err.log <- all libraries except mensa and the bot
  • mensa.err.log <- mensa library errors (warnings?)
  • mensa.log <- mensa info (or debug)
  • bot.err.log <- bot errors
  • bot.log <- bot info (or debug)

Orderable meals

Order meals by custom order.

Options:

  • globally
  • per user account
  • per chat

Week Overview

Overview over the whole week for specific meals would be nice. For now we could just send the weekly plan as PDF. The plan for next week is also only available as PDF.

We could use something like:

bot.sendDocument(chat_id=chat_id, document=plan.pdf)

Subscriptions

Feature to subscribe to daily/weekly messages directly from the bot.

  • configurable interval
  • configurable message time (morning, right before lunch time)
  • per chat/user

Possible commands:

    /subscribe giessberg @daily 8:00
    /subscribe giessberg @weekly 8pm
    /unsubscribe

WebHook

Currently, the bot polls for new updates. I find this kinda stupid, as the bot framework offers a web hook API where the Telegram server pushes updates to. However until now I could not figure out how to make this work, as one needs to submit a certificate matching the hooks url (only HTTPS is allowed).

Privileged Bot Commands

The bot could use some administrative capabilities (like configure logging levels or reload the logging config). We could look into ownbot for that.

Settings

Persistent settings for

  • bot message locale (de, en)
  • canteen plan listings locale (de & en are available)
    (- daily canteen plan subscriptions)

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.