diff --git a/app/dragon-bot.py b/app/dragon-bot.py index 581ab526..ac5783a9 100644 --- a/app/dragon-bot.py +++ b/app/dragon-bot.py @@ -341,11 +341,18 @@ async def on_message(message): actions = ['restart', 'status', 'logs'] await client.send_message( message.channel, - "\nSupported actions:\n{}".format(", ".join(actions)) + "\nSupported actions:```\n{}```".format(", ".join(actions)) ) else: docker_client = docker.from_env() - minecraft_container = docker_client.containers.get('beyondreality') + try: + minecraft_container = docker_client.containers.get('beyondreality') + except: + await client.send_message( + message.channel, + "The minecraft container is not running" + ) + return # Figure out what action they want to take action = message.content.split()[1]