Add "rimshot" reaction. Cleanup.
This commit is contained in:
parent
4dde8d94cb
commit
c9bae6a005
1 changed files with 12 additions and 6 deletions
|
@ -15,14 +15,20 @@ ATTACH_PATH = Path(config("ATTACH_PATH", default="./attachments/", cast=str))
|
||||||
class ReactionsModule(niobot.Module):
|
class ReactionsModule(niobot.Module):
|
||||||
"""Specifically for reactions/replies to certain comments/events."""
|
"""Specifically for reactions/replies to certain comments/events."""
|
||||||
|
|
||||||
@niobot.command()
|
|
||||||
async def weekend(self, ctx: niobot.Context):
|
|
||||||
"""Ladies and gentlemen--the weekend. . ."""
|
|
||||||
attachment = await niobot.VideoAttachment.from_file(ATTACH_PATH / "weekend.mp4")
|
|
||||||
await ctx.client.send_message(ctx.room, None, attachment)
|
|
||||||
|
|
||||||
@niobot.command()
|
@niobot.command()
|
||||||
async def panic(self, ctx: niobot.Context):
|
async def panic(self, ctx: niobot.Context):
|
||||||
"""AAAAAAHHHHHHHHHHHHHH!!!!!!!"""
|
"""AAAAAAHHHHHHHHHHHHHH!!!!!!!"""
|
||||||
attachment = await niobot.ImageAttachment.from_file(ATTACH_PATH / "panic.gif")
|
attachment = await niobot.ImageAttachment.from_file(ATTACH_PATH / "panic.gif")
|
||||||
await ctx.client.send_message(ctx.room, None, attachment)
|
await ctx.client.send_message(ctx.room, None, attachment)
|
||||||
|
|
||||||
|
@niobot.command()
|
||||||
|
async def rimshot(self, ctx: niobot.Context):
|
||||||
|
"""Ba-Dum-Tsssssssss. . ."""
|
||||||
|
attachment = await niobot.ImageAttachment.from_file(ATTACH_PATH / "rimshot.gif")
|
||||||
|
await ctx.client.send_message(ctx.room, None, attachment)
|
||||||
|
|
||||||
|
@niobot.command()
|
||||||
|
async def weekend(self, ctx: niobot.Context):
|
||||||
|
"""Ladies and gentlemen--the weekend. . ."""
|
||||||
|
attachment = await niobot.VideoAttachment.from_file(ATTACH_PATH / "weekend.mp4")
|
||||||
|
await ctx.client.send_message(ctx.room, None, attachment)
|
||||||
|
|
Loading…
Reference in a new issue