1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 22:27:28 +00:00

Streamline blacklist entries

~ Combine blacklists and aliases into one object
~ Remove guild entry in favor of channel (guild to be added as separate entry)
This commit is contained in:
Dylan Dizon 2018-11-15 15:40:24 -05:00
parent 9a673d6233
commit d46b912ae8

View file

@ -39,9 +39,7 @@ class MsG:
# self.suggested = u.setdefault('cogs/suggested.pkl', {'last_update': 'test', 'tags': {}, 'total': 1}) # self.suggested = u.setdefault('cogs/suggested.pkl', {'last_update': 'test', 'tags': {}, 'total': 1})
print(self.suggested) print(self.suggested)
self.favorites = u.setdefault('cogs/favorites.pkl', {}) self.favorites = u.setdefault('cogs/favorites.pkl', {})
self.blacklists = u.setdefault( self.blacklists = u.setdefault('cogs/blacklists.pkl', {'global': {}, 'channel': {}, 'user': {}})
'cogs/blacklists.pkl', {'global_blacklist': set(), 'guild_blacklist': {}, 'user_blacklist': {}})
self.aliases = u.setdefault('cogs/aliases.pkl', {})
if not self.hearting: if not self.hearting:
self.hearting = True self.hearting = True