Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
added announcement command
Browse files Browse the repository at this point in the history
  • Loading branch information
joseywoermann committed May 20, 2021
1 parent 0cb3c38 commit faad900
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tools/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,17 @@ async def make(self, ctx, title, description, author, thumbnail, image):
finally:
return embed


@commands.command()
@commands.guild_only()
@commands.is_owner()
async def announcement(self, ctx, *, text):

repeat_embed = discord.Embed(description=str(text), color=discord.Color.gold())
repeat_embed.set_author(name=str(ctx.author), icon_url=ctx.author.avatar_url)

await ctx.channel.purge(limit = 1)
await ctx.send(content=None, embed=repeat_embed)

def setup(client):
client.add_cog(Embed(client))

0 comments on commit faad900

Please sign in to comment.