mirror of
https://github.com/azlux/botamusique
synced 2024-11-23 22:06:09 +00:00
Compare commits
No commits in common. "33a9e75ba9d0a382f7a76d23a0ceb626924a8b49" and "32191bfd9ad454cd3590422add335257cb8e1eba" have entirely different histories.
33a9e75ba9
...
32191bfd9a
@ -79,7 +79,7 @@ port = 64738
|
||||
# 'download_attempts': how many times the bot will try to download an item
|
||||
#download_attempts = 2
|
||||
|
||||
# 'auto_check_update': check for updates every time the bot starts, post the changelog after an update was applied
|
||||
# 'auto_check_update': check for updates every time the bot starts
|
||||
#auto_check_update = True
|
||||
#pip3_path = venv/bin/pip
|
||||
|
||||
|
@ -190,9 +190,8 @@ class MumbleBot:
|
||||
last_startup_version = var.db.get("bot", "version", fallback=None)
|
||||
if not last_startup_version or version.parse(last_startup_version) < version.parse(self.version):
|
||||
var.db.set("bot", "version", self.version)
|
||||
if var.config.getboolean("bot", "auto_check_update"):
|
||||
changelog = util.fetch_changelog()
|
||||
self.send_channel_msg(tr("update_successful", version=self.version, changelog=changelog))
|
||||
changelog = util.fetch_changelog()
|
||||
self.send_channel_msg(tr("update_successful", version=self.version, changelog=changelog))
|
||||
|
||||
# Set the CTRL+C shortcut
|
||||
def ctrl_caught(self, signal, frame):
|
||||
|
Loading…
Reference in New Issue
Block a user