added `?worksplit` command (#247)

fixes #233
This commit is contained in:
classabbyamp 2020-09-27 16:07:21 -04:00 committed by GitHub
parent b462527211
commit 756a15c4c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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/"),
)

View File

@ -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"""

BIN
resources/img/worksplit.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB