From ce73aa8099ab37c45ed6c5d7271bbcbf53c1c1c5 Mon Sep 17 00:00:00 2001 From: Andrew Glaze Date: Sat, 28 Feb 2026 13:06:25 -0500 Subject: [PATCH] fix: rename Mathsumoto to Zundamon --- Sources/zundamon/MessageHandler.swift | 4 ++-- Sources/zundamon/{Mathsumoto.swift => Zundamon.swift} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename Sources/zundamon/{Mathsumoto.swift => Zundamon.swift} (98%) diff --git a/Sources/zundamon/MessageHandler.swift b/Sources/zundamon/MessageHandler.swift index 138f576..12fe6d9 100644 --- a/Sources/zundamon/MessageHandler.swift +++ b/Sources/zundamon/MessageHandler.swift @@ -21,9 +21,9 @@ struct MessageHandler { case "domath": try await Wolfram.handleMath(args, client: client, ctx: ctx) default: break } - } else if ctx.mentions.contains(where: { $0.id == Mathsumoto.ownID }) { + } else if ctx.mentions.contains(where: { $0.id == Zundamon.ownID }) { if ctx.content - .replacingOccurrences(of: "<@\(Mathsumoto.ownID!.rawValue)>", with: "") + .replacingOccurrences(of: "<@\(Zundamon.ownID!.rawValue)>", with: "") .trimmingCharacters(in: .whitespacesAndNewlines) .count == 0, let zundaGif = MessageHandler.zundaGifData diff --git a/Sources/zundamon/Mathsumoto.swift b/Sources/zundamon/Zundamon.swift similarity index 98% rename from Sources/zundamon/Mathsumoto.swift rename to Sources/zundamon/Zundamon.swift index 9f01b3f..2a23d59 100644 --- a/Sources/zundamon/Mathsumoto.swift +++ b/Sources/zundamon/Zundamon.swift @@ -3,7 +3,7 @@ import DiscordBM import SwiftDotenv @main -struct Mathsumoto { +struct Zundamon { nonisolated(unsafe) static private(set) var ownID: UserSnowflake? = nil static func main() async throws {