Skip to content

Commit

Permalink
Merge pull request #29 from swiftde/fix-xcode-typo-correction
Browse files Browse the repository at this point in the history
Update Xcode typo correction matcher
  • Loading branch information
kiliankoe authored Jul 4, 2023
2 parents fa30ab8 + 2a3674a commit 1d4ef60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftDEBot/Command/Message Commands/Xcode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ struct XcodeTypoCommand: MessageCommand {

func run(client: DiscordClient, message: Gateway.MessageCreate) async throws {
let content = message.content
guard content.contains(" XCode") || content.contains(" xCode"),
guard content.contains("XCode") || content.contains("xCode"),
let handle = message.author?.mentionHandle
else {
return
Expand Down

0 comments on commit 1d4ef60

Please sign in to comment.