Skip to content

Commit cc9185d

Browse files
authored
Merge pull request #24 from 1Prototype1/update_support
Fixed & Updated support command
2 parents 8c9527a + 0ab8050 commit cc9185d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

cogs/misc.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,20 @@ async def ping(self, ctx):
6464
@commands.command(name='owner', aliases=['support', 'contact'])
6565
async def support(self, ctx, *, msg: str = ""):
6666
"""Contact bot owner"""
67-
if msg == "":
68-
return await ctx.send("Please enter a message to send towards Bot Owner", delete_after=5.0)
67+
if not msg:
68+
return await ctx.send("Join support server at _https://hexbot.ml/support_ for quick and easy support.")
6969

7070
embed = discord.Embed(colour=discord.Colour(0x5dadec), description=msg)
7171
embed.set_author(name=ctx.author, icon_url=ctx.author.avatar_url)
72-
embed.set_footer(text=f"{ctx.guild} : {ctx.guild.id}", icon_url=ctx.guild.icon_url)
72+
if ctx.guild.icon:
73+
embed.set_footer(
74+
text=f"{ctx.guild} : {ctx.guild.id}", icon_url=ctx.guild.icon.url)
75+
else:
76+
embed.set_footer(text=f"{ctx.guild} : {ctx.guild.id}")
7377

7478
info = await self.bot.application_info()
7579
await info.owner.send(embed=embed)
76-
await ctx.send("Bot owner notified!")
80+
await ctx.send("Bot owner notified!\nYou can also join support server at _https://hexbot.ml/support_ for quick and easy support.")
7781

7882
@commands.command(name='tts')
7983
async def _tts(self, ctx, *, text=''):

0 commit comments

Comments
 (0)