Fix 2 typos from the database restructure

This commit is contained in:
jesopo 2018-08-06 14:10:14 +01:00
parent ce05b98f61
commit 8aa0a59e01
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ class Bot(object):
return self.database.bot_settings.find_prefix( return self.database.bot_settings.find_prefix(
prefix, default) prefix, default)
def del_setting(self, setting): def del_setting(self, setting):
self.database.bot_setting.delete(setting) self.database.bot_settings.delete(setting)
def run(self): def run(self):
while self.running: while self.running:

View file

@ -20,7 +20,7 @@ class User(object):
def part_channel(self, channel): def part_channel(self, channel):
self.channels.remove(channel) self.channels.remove(channel)
def set_setting(self, setting, value): def set_setting(self, setting, value):
self.bot.database.user_settings.get(self.server.id, self.nickname, self.bot.database.user_settings.set(self.server.id, self.nickname,
setting, value) setting, value)
def get_setting(self, setting, default=None): def get_setting(self, setting, default=None):
return self.bot.database.user_settings.get(self.server.id, return self.bot.database.user_settings.get(self.server.id,