2021-03-28 09:50:51 -04:00
|
|
|
"""
|
|
|
|
Contest Calendar extension for qrm
|
|
|
|
---
|
2021-03-28 13:57:03 -04:00
|
|
|
Copyright (C) 2021 classabbyamp, 0x5c
|
2021-03-28 09:50:51 -04:00
|
|
|
|
2021-06-26 20:23:55 -04:00
|
|
|
SPDX-License-Identifier: LiLiQ-Rplus-1.1
|
2021-03-28 09:50:51 -04:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
import discord.ext.commands as commands
|
|
|
|
|
|
|
|
import common as cmn
|
|
|
|
|
|
|
|
|
|
|
|
class ContestCalendarCog(commands.Cog):
|
|
|
|
@commands.command(name="contests", aliases=["cc", "tests"], category=cmn.Cats.LOOKUP)
|
|
|
|
async def _contests(self, ctx: commands.Context):
|
|
|
|
embed = cmn.embed_factory(ctx)
|
|
|
|
embed.title = "Contest Calendar"
|
|
|
|
embed.description = ("*We are currently rewriting the old, Chrome-based `contests` command. In the meantime, "
|
|
|
|
"use [the website](https://www.contestcalendar.com/weeklycont.php).*")
|
|
|
|
embed.colour = cmn.colours.good
|
|
|
|
await ctx.send(embed=embed)
|
|
|
|
|
|
|
|
|
|
|
|
def setup(bot: commands.Bot):
|
|
|
|
bot.add_cog(ContestCalendarCog(bot))
|