feat: pat command
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user