Giter VIP home page Giter VIP logo

menstruation-telegram's Introduction

Menstruation. Regel dein Essen.

Code Climate maintainability Codacy grade Bot

menstruation-telegram's People

Contributors

dargmuesli avatar kmein avatar qttylog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

menstruation-telegram's Issues

Feature-Request: Subscription with filters

Current behavior:
Currently you can only subscribe to the complete menu with /subscribe.

Requested behavior:
Subscription with filters
e.g. /subscribe ๐ŸŒฑ 3โ‚ฌ

Uncatched exception if someone paused the bot

If someone subscribes to the menu and then stops the bot, the following exception appears:

bot_1    | INFO:root:No date found in ''
bot_1    | INFO:root:{'allergen': ['23']}
bot_1    | INFO:root:Requesting http://api:8000/menu?XXXXXXXXXXXXXX
bot_1    | ERROR:JobQueue:An uncaught error was raised while executing job XXXXXXXXX
bot_1    | Traceback (most recent call last):
bot_1    |   File "/usr/local/lib/python3.7/site-packages/telegram/ext/jobqueue.py", line 245, in tick
bot_1    |     job.run(self.bot)
bot_1    |   File "/usr/local/lib/python3.7/site-packages/telegram/ext/jobqueue.py", line 372, in run
bot_1    |     self.callback(bot, self)
bot_1    |   File "bot.py", line 235, in <lambda>
bot_1    |     updater.bot, update.message.chat_id, Query.from_text(filter_text)
bot_1    |   File "bot.py", line 90, in send_menu
bot_1    |     bot.send_message(chat_id, emojize(reply), parse_mode=ParseMode.MARKDOWN)
bot_1    |   File "/usr/local/lib/python3.7/site-packages/telegram/bot.py", line 65, in decorator
bot_1    |     result = func(self, *args, **kwargs)
bot_1    |   File "/usr/local/lib/python3.7/site-packages/telegram/bot.py", line 90, in decorator
bot_1    |     result = self._request.post(url, data, timeout=kwargs.get('timeout'))
bot_1    |   File "/usr/local/lib/python3.7/site-packages/telegram/utils/request.py", line 309, in post
bot_1    |     headers={'Content-Type': 'application/json'})
bot_1    |   File "/usr/local/lib/python3.7/site-packages/telegram/utils/request.py", line 221, in _request_wrapper
bot_1    |     raise Unauthorized(message)
bot_1    | telegram.error.Unauthorized: Forbidden: bot was blocked by the user

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.