Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperManifolds committed Apr 2, 2023
1 parent c17abbd commit cdc42cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Sources/mechasqueak/Modules/AccountCommands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class AccountCommands: IRCBotModule {
"joined": joinedDate?.eliteFormattedString ?? "unknown",
"rats": associatedNickname.ratsBelongingTo(user: apiUser)
])) ?? ""
command.message.reply(message: output)
}

@BotCommand(
Expand Down
2 changes: 1 addition & 1 deletion Sources/mechasqueak/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class MechaSqueak {
}

let gitDir = configuration.sourcePath
let release = shell("/usr/bin/git", ["tag", "--points-at", "HEAD"], currentDirectory: gitDir)?.trimmingCharacters(in: .whitespacesAndNewlines)
let release = shell("/usr/bin/git", ["describe", "--tags", "--abbrev=0"], currentDirectory: gitDir)?.trimmingCharacters(in: .whitespacesAndNewlines)
if let releaseName = release, releaseName.count > 0 {
mecha.reportingChannel?.send(message: "Update complete. Go here to read the latest changes: https://github.com/FuelRats/SwiftSqueak/releases/tag/\(releaseName)")
}
Expand Down

0 comments on commit cdc42cf

Please sign in to comment.