Skip to content

Commit

Permalink
Merge branch 'main' into fortune
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzdom authored Oct 29, 2024
2 parents 0d736ac + 14c8ed6 commit d765d08
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/extensions/gerry.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import arc
import hikari

gerry = arc.GatewayPlugin(name="gerry")

image = "https://i.redd.it/cu94ebjex3481.jpg"


@gerry.include
@arc.slash_command("gerry", "So tell me Frank!")
async def gerry_command(
ctx: arc.GatewayContext,
user: arc.Option[
hikari.User, arc.UserParams("The user to send a gerry to.")
] = None,
) -> None:
"""Send a gerry!"""
if user is not None:
description = f"So tell me {user.mention}!"
else:
description = "So tell me Frank!"
embed = hikari.Embed(
title="Gerry",
description=description,
colour=0x5865F2,
)
embed = embed.set_image(image)

await ctx.respond(embed)


@arc.loader
def loader(client: arc.GatewayClient) -> None:
client.add_plugin(gerry)

0 comments on commit d765d08

Please sign in to comment.