quick fixes
This commit is contained in:
parent
e85d13969b
commit
c675f1bad1
@ -97,7 +97,7 @@ class AnnounceDaily(Cog):
|
|||||||
if ctx.message.attachments:
|
if ctx.message.attachments:
|
||||||
att_ = ctx.message.attachments[0]
|
att_ = ctx.message.attachments[0]
|
||||||
try:
|
try:
|
||||||
h = att_.height
|
att_.height
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
await ctx.send("You must attach an image, no other file will be accepted")
|
await ctx.send("You must attach an image, no other file will be accepted")
|
||||||
return
|
return
|
||||||
|
@ -173,7 +173,7 @@ class Flag(Cog):
|
|||||||
async def _check_flags(self, guild: discord.Guild):
|
async def _check_flags(self, guild: discord.Guild):
|
||||||
"""Updates and removes expired flags"""
|
"""Updates and removes expired flags"""
|
||||||
flag_data = await self.config.guild(guild).flags()
|
flag_data = await self.config.guild(guild).flags()
|
||||||
flag_d = {}
|
# flag_d = {}
|
||||||
for memberid, flags in flag_data.items():
|
for memberid, flags in flag_data.items():
|
||||||
# for member in guild.members:
|
# for member in guild.members:
|
||||||
# flags = await self.config.guild(guild).flags.get_raw(str(member.id), default=[])
|
# flags = await self.config.guild(guild).flags.get_raw(str(member.id), default=[])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user