Пример #1
0
        public async Task CheckForUpdate()
        {
            var latest = await Github.CheckForUpdate("djdookie", "Advisor", Version);

            if (latest != null)
            {
                Advisor.Notify("Plugin update available", $"[DOWNLOAD]({latest.html_url}) Advisor {latest.tag_name}", 0,
                               "download", () => Process.Start(latest.html_url));
                Log.Info("Update available: " + latest.tag_name, "Advisor");
            }
        }
Пример #2
0
        public async Task CheckForUpdate()
        {
            var latest = await Github.CheckForUpdate("kimsey0", "Advisor", Version);

            if (latest != null)
            {
                Advisor.Notify("Plugin update available", $"[DOWNLOAD]({latest.HtmlUrl}) Advisor {latest.TagName}", 0,
                               "download", () => Process.Start(latest.HtmlUrl));
                Log.Info($"Update available: {latest.TagName}", "Advisor");
            }
        }