fix: rename Mathsumoto to Zundamon
This commit is contained in:
@@ -21,9 +21,9 @@ struct MessageHandler {
|
|||||||
case "domath": try await Wolfram.handleMath(args, client: client, ctx: ctx)
|
case "domath": try await Wolfram.handleMath(args, client: client, ctx: ctx)
|
||||||
default: break
|
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
|
if ctx.content
|
||||||
.replacingOccurrences(of: "<@\(Mathsumoto.ownID!.rawValue)>", with: "")
|
.replacingOccurrences(of: "<@\(Zundamon.ownID!.rawValue)>", with: "")
|
||||||
.trimmingCharacters(in: .whitespacesAndNewlines)
|
.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||||
.count == 0,
|
.count == 0,
|
||||||
let zundaGif = MessageHandler.zundaGifData
|
let zundaGif = MessageHandler.zundaGifData
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import DiscordBM
|
|||||||
import SwiftDotenv
|
import SwiftDotenv
|
||||||
|
|
||||||
@main
|
@main
|
||||||
struct Mathsumoto {
|
struct Zundamon {
|
||||||
nonisolated(unsafe) static private(set) var ownID: UserSnowflake? = nil
|
nonisolated(unsafe) static private(set) var ownID: UserSnowflake? = nil
|
||||||
|
|
||||||
static func main() async throws {
|
static func main() async throws {
|
||||||
Reference in New Issue
Block a user