feat: pat command

This commit is contained in:
Andrew Glaze
2026-03-01 14:32:18 -05:00
parent 251b3b8109
commit cc489fccb6
7 changed files with 69 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ struct MessageHandler {
let client: any DiscordClient
static let prefix = ":"
static let zundaGifData = try? Data(contentsOf: URL(filePath: "media/zundamone.gif"))
static let zundaGifData = try? Data(contentsOf: URL(filePath: "resources/media/zundamone.gif"))
func handle() async throws {
guard !(ctx.author?.bot ?? false) else { return }
@@ -20,6 +20,8 @@ struct MessageHandler {
case "wow": try await handleWow(args)
case "domath": try await Wolfram.handleMath(args, client: client, ctx: ctx)
case "hug": try await Actions.hug(args, client: client, ctx: ctx)
case "pat": try await Actions.pat(args, client: client, ctx: ctx)
case "pet": try await Actions.pat(args, client: client, ctx: ctx)
default: break
}
} else if ctx.mentions.contains(where: { $0.id == Zundamon.ownID }) {