From 8101a64605013aafac3081512053567d2fb76bae Mon Sep 17 00:00:00 2001 From: denverquane Date: Thu, 26 Sep 2024 12:59:13 -0700 Subject: [PATCH] Hotfix raw github image URLs --- bot/command/help.go | 2 +- pkg/game/map.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/command/help.go b/bot/command/help.go index c742cee..6b6785c 100644 --- a/bot/command/help.go +++ b/bot/command/help.go @@ -116,7 +116,7 @@ func HelpEmbedResponse(commands []*discordgo.ApplicationCommand, sett *settings. Color: 15844367, // GOLD Image: nil, Thumbnail: &discordgo.MessageEmbedThumbnail{ - URL: "https://github.com/automuteus/automuteus/v7/blob/master/assets/BotProfilePicture.png?raw=true", + URL: "https://raw.githubusercontent.com/automuteus/automuteus/refs/heads/master/assets/BotProfilePicture.png", ProxyURL: "", Width: 0, Height: 0, diff --git a/pkg/game/map.go b/pkg/game/map.go index f0d6876..9da8a61 100644 --- a/pkg/game/map.go +++ b/pkg/game/map.go @@ -4,7 +4,7 @@ import "fmt" type PlayMap int -const DefaultMapsUrl = "https://github.com/automuteus/automuteus/blob/master/assets/maps/" +const DefaultMapsUrl = "https://raw.githubusercontent.com/automuteus/automuteus/refs/heads/master/assets/maps/" const ( SKELD PlayMap = iota @@ -55,7 +55,7 @@ func FormMapUrl(baseUrl string, mapType PlayMap, detailed bool) string { } // only have the simple variant of dleks if detailed && mapType != DLEKS { - return fmt.Sprintf("%s%s_detailed.png?raw=true", baseUrl, mapString) + return fmt.Sprintf("%s%s_detailed.png", baseUrl, mapString) } - return fmt.Sprintf("%s%s.png?raw=true", baseUrl, mapString) + return fmt.Sprintf("%s%s.png", baseUrl, mapString) }