diff --git a/CHANGELOG.md b/CHANGELOG.md index d663d0f..6141b9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] ### Added - Canadian prefix info to the `?prefixes` command. +- `?worksplit` command. ## [2.3.2] - 2020-07-22 diff --git a/common.py b/common.py index 7d25d27..858e25a 100644 --- a/common.py +++ b/common.py @@ -63,6 +63,7 @@ emojis = SimpleNamespace( paths = SimpleNamespace( data=Path("./data/"), resources=Path("./resources/"), + img=Path("./resources/img/"), bandcharts=Path("./resources/img/bandcharts/"), maps=Path("./resources/img/maps/"), ) diff --git a/exts/fun.py b/exts/fun.py index beea3be..93ef379 100644 --- a/exts/fun.py +++ b/exts/fun.py @@ -10,6 +10,7 @@ the GNU General Public License, version 2. import random +import discord import discord.ext.commands as commands import common as cmn @@ -36,6 +37,16 @@ class FunCog(commands.Cog): """Returns xkcd: Standards.""" await ctx.send("http://xkcd.com/927") + @commands.command(name="worksplit", aliases=["split", "ft8"], category=cmn.cat.fun) + async def _worksplit(self, ctx: commands.Context): + """Posts "Work split you lids".""" + fn = "worksplit.jpg" + embed = cmn.embed_factory(ctx) + embed.title = "Work Split, You Lids!" + embed.set_image(url="attachment://" + fn) + img = discord.File(cmn.paths.img / fn, filename=fn) + await ctx.send(embed=embed, file=img) + @commands.command(name="xd", hidden=True, category=cmn.cat.fun) async def _xd(self, ctx: commands.Context): """ecks dee""" diff --git a/resources/img/worksplit.jpg b/resources/img/worksplit.jpg new file mode 100644 index 0000000..7714d5d Binary files /dev/null and b/resources/img/worksplit.jpg differ