1 # -*- coding: utf-8 -*-
2 """Get data from database and publish them."""
4 from requests import post
5 from cbconf import Conf
9 """This class connects configuration, database access and publishing."""
12 self.db = Db(self.cfg.getCoffeeDbPath())
20 def sendMsgToSlack(self):
21 """Send message to Slack Bot."""
22 return post(self.cfg.getCoffeebotURL(), dumps({"text": self.msg}))