Reformated messages

This commit is contained in:
Dusty.P 2018-05-09 20:49:10 -08:00
parent 73bebc8158
commit 0a5cb8a038

View File

@ -34,7 +34,8 @@ class Uploader:
'Please make sure the files have not been renamed.') 'Please make sure the files have not been renamed.')
else: else:
if official == 'unofficial' and game_ini == ConfigParser(): if official == 'unofficial' and game_ini == ConfigParser():
await msg.edit(content=f'{ctx.author.mention} Game.ini is missing or is not valid.\n' await msg.delete()
msg = await ctx.send(f'{ctx.author.mention} Game.ini is missing or is not valid.\n'
f'Select {self.bot.unicode_emojis["o"]} to process as Official\n' f'Select {self.bot.unicode_emojis["o"]} to process as Official\n'
f'Select {self.bot.unicode_emojis["y"]} if you would like to ' f'Select {self.bot.unicode_emojis["y"]} if you would like to '
f'provide Game.ini separately.\n' f'provide Game.ini separately.\n'
@ -98,7 +99,8 @@ class Uploader:
if official == 'official' and game_ini == ConfigParser(): if official == 'official' and game_ini == ConfigParser():
if not singleplayer: if not singleplayer:
await msg.edit(content=f'Is this from SinglePlayer or a server?\n' await msg.delete()
msg = await ctx.send(f'Is this from SinglePlayer or a server?\n'
f"select {self.bot.unicode_emojis['y']} for SP or " f"select {self.bot.unicode_emojis['y']} for SP or "
f"{self.bot.unicode_emojis['x']} for server.") f"{self.bot.unicode_emojis['x']} for server.")
@ -155,7 +157,9 @@ class Uploader:
await msg.edit(content='Processing... Committed... Pushing files to GitHub') await msg.edit(content='Processing... Committed... Pushing files to GitHub')
push_status = await utils.git_push(self.bot.loop, storage_dir) push_status = await utils.git_push(self.bot.loop, storage_dir)
if push_status == 'Completed': if push_status == 'Completed':
await msg.edit(content=f'{ctx.author.mention} Upload complete.') await msg.delete()
msg = await ctx.send(f'{ctx.author.mention} Upload complete.\n'
f'Uploaded {len(dinos_data)} dinos as {official}')
else: else:
await self.bot.get_user(owner_id).send(f'There was an error with git push' await self.bot.get_user(owner_id).send(f'There was an error with git push'
f'\n{push_status}') f'\n{push_status}')