]> rtime.felk.cvut.cz Git - hubacji1/coffee-getter.git/blobdiff - cbconf.py
Merge branch 'refactor'
[hubacji1/coffee-getter.git] / cbconf.py
diff --git a/cbconf.py b/cbconf.py
deleted file mode 100644 (file)
index 7695cd4..0000000
--- a/cbconf.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- coding: utf-8 -*-
-"""Get configuration."""
-from json import loads
-from os.path import dirname, abspath
-
-class Conf:
-    PATH = "{}/.cfg".format(dirname(abspath(__file__)))
-
-    def __init__(self):
-        with open(Conf.PATH) as f:
-            self.conf = loads(f.read())
-        return None
-
-    def getCoffeebotURL(self):
-        """Return URL of Slack Coffeebot."""
-        return self.conf["coffeebot"]["url"]
-
-    def getCoffeeDbPath(self):
-        """Return the path to database with coffees."""
-        return self.conf["coffeedb"]["path"]