mirror of
https://github.com/miaowware/qrm2.git
synced 2025-09-02 21:27:47 -04:00
add temporary cc command
This commit is contained in:
parent
05bf1513a3
commit
6cbf975593
12
exts/ham.py
12
exts/ham.py
@ -102,6 +102,18 @@ class HamCog(commands.Cog):
|
|||||||
|
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
|
@commands.command(name="contests", aliases=["cc", "tests"], category=cmn.cat.ref)
|
||||||
|
async def _contests(self, ctx: commands.Context):
|
||||||
|
embed = discord.Embed(title="Contest Calendar",
|
||||||
|
timestamp=datetime.utcnow(),
|
||||||
|
colour=cmn.colours.good)
|
||||||
|
embed.set_footer(text=ctx.author.name,
|
||||||
|
icon_url=str(ctx.author.avatar_url))
|
||||||
|
|
||||||
|
embed.description = ("*We are currently rewriting the old, Chrome-based `contests` command. In the meantime, "
|
||||||
|
"use [the website](https://www.contestcalendar.com/weeklycont.php).*")
|
||||||
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
|
|
||||||
def setup(bot: commands.Bot):
|
def setup(bot: commands.Bot):
|
||||||
bot.add_cog(HamCog(bot))
|
bot.add_cog(HamCog(bot))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user