finish(launcher): finish all launcher features

This commit is contained in:
Romain J 2019-09-10 23:48:50 +02:00
parent 537a905f85
commit 7e5f6e6dbf
3 changed files with 4 additions and 4 deletions

View file

@ -6,13 +6,13 @@
- [ ] Alias system for commands (e.g. `.alias .ci show .cs`) - [ ] Alias system for commands (e.g. `.alias .ci show .cs`)
- [ ] Migrate MySQL to postgresql - [ ] Migrate MySQL to postgresql
- [ ] Prepare bot for python 3.8 and discord.py 1.3.0 - [ ] Prepare bot for python 3.8 and discord.py 1.3.0
- [ ] Create launcher - [x] Create launcher
## Launcher requirements : ## Launcher requirements :
- [x] Can install the bot - [x] Can install the bot
- [x] Can launch the bot - [x] Can launch the bot
- [ ] Can propose updates - [x] Can propose updates
## New commands : ## New commands :

2
bot.py
View file

@ -49,7 +49,7 @@ class TuxBot(commands.AutoShardedBot):
self.prefixes = Config('prefixes.json') self.prefixes = Config('prefixes.json')
self.blacklist = Config('blacklist.json') self.blacklist = Config('blacklist.json')
self.version = Version(10, 0, 0, pre_release='a18', build=git.Repo(search_parent_directories=True).head.object.hexsha) self.version = Version(10, 0, 0, pre_release='a20', build=git.Repo(search_parent_directories=True).head.object.hexsha)
for extension in l_extensions: for extension in l_extensions:
if extension not in unload: if extension not in unload:

View file

@ -82,7 +82,7 @@ def _update():
local = git.Repo(search_parent_directories=True) local = git.Repo(search_parent_directories=True)
current = local.head.object.hexsha current = local.head.object.hexsha
origin = requests.get('https://git.gnous.eu/api/v1/repos/gnouseu/tuxbot-bot/branches/master') origin = requests.get('https://git.gnous.eu/api/v1/repos/gnouseu/tuxbot-bot/branches/rewrite')
last = origin.json().get('commit').get('id') last = origin.json().get('commit').get('id')
if current != last: if current != last: