mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
going to delete db as well
This commit is contained in:
parent
23564fc735
commit
dfbc80cac7
@ -15,7 +15,7 @@ class BotUsers():
|
|||||||
self.online = []
|
self.online = []
|
||||||
self.offline = []
|
self.offline = []
|
||||||
for user_id in self.all.keys():
|
for user_id in self.all.keys():
|
||||||
self.offline.append(user_id)
|
self.offline.append(int(user_id))
|
||||||
self.current = {}
|
self.current = {}
|
||||||
|
|
||||||
def whois(self, nick):
|
def whois(self, nick):
|
||||||
@ -27,7 +27,7 @@ class BotUsers():
|
|||||||
def whois_id(self, nick):
|
def whois_id(self, nick):
|
||||||
nick = Identifier(nick)
|
nick = Identifier(nick)
|
||||||
nick_id = botdb.db.get_nick_id(nick, create=True)
|
nick_id = botdb.db.get_nick_id(nick, create=True)
|
||||||
return nick_id
|
return int(nick_id)
|
||||||
|
|
||||||
def save_user_db(self):
|
def save_user_db(self):
|
||||||
botdb.set_bot_value('users', self.all)
|
botdb.set_bot_value('users', self.all)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user