diff options
| author | 2018-09-24 15:13:27 +0100 | |
|---|---|---|
| committer | 2018-09-24 15:13:27 +0100 | |
| commit | ecb9d7cb3f4435457560e03201bbed57a469d548 (patch) | |
| tree | 5a010f97c209558cdd2d40327d41e6806aedde94 /Config.py | |
| parent | Remove empty spaces in coins.py (diff) | |
Move most code in root directory to src/
Diffstat (limited to 'Config.py')
| -rw-r--r-- | Config.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Config.py b/Config.py deleted file mode 100644 index 894c9eb0..00000000 --- a/Config.py +++ /dev/null @@ -1,17 +0,0 @@ -import configparser, os - -class Config(object): - def __init__(self, bot, location="bot.conf"): - self.bot = bot - self.location = location - self.full_location = os.path.join(bot.bot_directory, - self.location) - self.bot.config = {} - self.load_config() - - def load_config(self): - if os.path.isfile(self.full_location): - with open(self.full_location) as config_file: - parser = configparser.ConfigParser() - parser.read_string(config_file.read()) - return dict(parser["bot"].items()) |
