mirror of
https://github.com/myned/modufur.git
synced 2024-12-25 14:47:29 +00:00
80 character per line compliance
This commit is contained in:
parent
814d8eaf25
commit
c129f00ff3
1 changed files with 6 additions and 3 deletions
|
@ -1404,7 +1404,8 @@ class MsG:
|
||||||
|
|
||||||
await dest.trigger_typing()
|
await dest.trigger_typing()
|
||||||
|
|
||||||
self.blacklists['user_blacklist'].setdefault(ctx.author.id, set()).update(tags)
|
self.blacklists['user_blacklist'].setdefault(
|
||||||
|
ctx.author.id, set()).update(tags)
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
alias_request = await u.fetch('https://e621.net/tag_alias/index.json', params={'aliased_to': tag, 'approved': 'true'}, json=True)
|
alias_request = await u.fetch('https://e621.net/tag_alias/index.json', params={'aliased_to': tag, 'approved': 'true'}, json=True)
|
||||||
if alias_request:
|
if alias_request:
|
||||||
|
@ -1457,7 +1458,8 @@ class MsG:
|
||||||
|
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
try:
|
try:
|
||||||
self.blacklists['guild_blacklist'][guild.id][ctx.channel.id].remove(tag)
|
self.blacklists['guild_blacklist'][guild.id][ctx.channel.id].remove(
|
||||||
|
tag)
|
||||||
|
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise exc.TagError(tag)
|
raise exc.TagError(tag)
|
||||||
|
@ -1478,7 +1480,8 @@ class MsG:
|
||||||
|
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
try:
|
try:
|
||||||
self.blacklists['user_blacklist'][ctx.author.id].remove(tag)
|
self.blacklists['user_blacklist'][ctx.author.id].remove(
|
||||||
|
tag)
|
||||||
|
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise exc.TagError(tag)
|
raise exc.TagError(tag)
|
||||||
|
|
Loading…
Reference in a new issue