1 # -*- coding: utf-8 -*-
2 """Get configuration."""
9 with open(Conf.PATH) as f:
10 self.conf = loads(f.read())
13 def getCoffeebotURL(self):
14 """Return URL of Slack Coffeebot."""
15 return self.conf["coffeebot"]["url"]
17 def getCoffeeDbPath(self):
18 """Return the path to database with coffees."""
19 return self.conf["coffeedb"]["path"]