Skip to content

Commit

Permalink
Merge pull request #24 from 1Prototype1/update_support
Browse files Browse the repository at this point in the history
Fixed & Updated support command
  • Loading branch information
1Prototype1 authored Oct 4, 2023
2 parents 8c9527a + 0ab8050 commit cc9185d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cogs/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,20 @@ async def ping(self, ctx):
@commands.command(name='owner', aliases=['support', 'contact'])
async def support(self, ctx, *, msg: str = ""):
"""Contact bot owner"""
if msg == "":
return await ctx.send("Please enter a message to send towards Bot Owner", delete_after=5.0)
if not msg:
return await ctx.send("Join support server at _https://hexbot.ml/support_ for quick and easy support.")

embed = discord.Embed(colour=discord.Colour(0x5dadec), description=msg)
embed.set_author(name=ctx.author, icon_url=ctx.author.avatar_url)
embed.set_footer(text=f"{ctx.guild} : {ctx.guild.id}", icon_url=ctx.guild.icon_url)
if ctx.guild.icon:
embed.set_footer(
text=f"{ctx.guild} : {ctx.guild.id}", icon_url=ctx.guild.icon.url)
else:
embed.set_footer(text=f"{ctx.guild} : {ctx.guild.id}")

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

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

0 comments on commit cc9185d

Please sign in to comment.