2 Commits
0.8 ... 0.9

Author SHA1 Message Date
d23e31c0e0 Bump version 2021-06-04 10:42:26 +09:30
9cb79a846e Umm, how did this ever work? 😫 2021-06-04 10:41:23 +09:30
2 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ var Config struct {
Exclude string
}
const CurrentVersion string = "0.8"
const CurrentVersion string = "0.9"
// Load the current config or initialise with defaults
func LoadOrInit() {

10
dau.go
View File

@@ -78,10 +78,10 @@ func checkPath(path string) bool {
func checkUpdates() {
type GithubRelease struct {
HTMLURL string
TagName string
Name string
Body string
HTMLURL string `json:"html_url"`
TagName string `json:"tag_name"`
Name string `json:"name"`
Body string `json:"body"`
}
daulog.SendLog("checking for new version", daulog.LogTypeInfo)
@@ -111,7 +111,7 @@ func checkUpdates() {
fmt.Println(latest.Body)
fmt.Println("------------------------------------")
fmt.Println("Upgrade at https://github.com/tardisx/discord-auto-upload/releases/latest")
daulog.SendLog(fmt.Sprintf("New version available: %s - download at https://github.com/tardisx/discord-auto-upload/releases/latest"), daulog.LogTypeInfo)
daulog.SendLog(fmt.Sprintf("New version available: %s - download at https://github.com/tardisx/discord-auto-upload/releases/latest", latest.TagName), daulog.LogTypeInfo)
}
}