No good reason for this to be lower
This commit is contained in:
parent
4f6232fb7d
commit
5dcbf562d3
16
dad/dad.py
16
dad/dad.py
@ -42,7 +42,7 @@ class Dad(Cog):
|
|||||||
async with aiohttp.ClientSession(headers=headers) as session:
|
async with aiohttp.ClientSession(headers=headers) as session:
|
||||||
joke = await fetch_url(session, "https://icanhazdadjoke.com/")
|
joke = await fetch_url(session, "https://icanhazdadjoke.com/")
|
||||||
|
|
||||||
await ctx.maybe_send_embed(joke['joke'])
|
await ctx.maybe_send_embed(joke["joke"])
|
||||||
|
|
||||||
# print(joke)
|
# print(joke)
|
||||||
#
|
#
|
||||||
@ -93,21 +93,21 @@ class Dad(Cog):
|
|||||||
if self.cooldown[guild.id] > datetime.now():
|
if self.cooldown[guild.id] > datetime.now():
|
||||||
return
|
return
|
||||||
|
|
||||||
lower = message.clean_content.lower()
|
cleaned_content = message.clean_content
|
||||||
lower_split = lower.split()
|
content_split = cleaned_content.split()
|
||||||
if len(lower_split) == 0:
|
if len(content_split) == 0:
|
||||||
return
|
return
|
||||||
|
|
||||||
if lower_split[0] == "i'm" and len(lower_split) >= 2:
|
if content_split[0].lower() == "i'm" and len(content_split) >= 2:
|
||||||
if await guild_config.nickname():
|
if await guild_config.nickname():
|
||||||
try:
|
try:
|
||||||
await message.author.edit(nick=lower[4:])
|
await message.author.edit(nick=cleaned_content[4:])
|
||||||
except discord.Forbidden:
|
except discord.Forbidden:
|
||||||
out = lower[4:]
|
out = cleaned_content[4:]
|
||||||
else:
|
else:
|
||||||
out = message.author.mention
|
out = message.author.mention
|
||||||
else:
|
else:
|
||||||
out = lower[4:]
|
out = cleaned_content[4:]
|
||||||
try:
|
try:
|
||||||
await message.channel.send(f"Hi {out}, I'm {guild.me.display_name}!")
|
await message.channel.send(f"Hi {out}, I'm {guild.me.display_name}!")
|
||||||
except discord.HTTPException:
|
except discord.HTTPException:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user