1 # -*- coding: utf-8 -*-
2 """Get configuration."""
4 from os.path import dirname, abspath
7 PATH = "{}/.cfg".format(dirname(abspath(__file__)))
10 with open(Conf.PATH) as f:
11 self.conf = loads(f.read())
14 def getCoffeebotURL(self):
15 """Return URL of Slack Coffeebot."""
16 return self.conf["coffeebot"]["url"]
18 def getCoffeeDbPath(self):
19 """Return the path to database with coffees."""
20 return self.conf["coffeedb"]["path"]