From 4fb9554575ebb050d8bf9333c40e2f8425eead62 Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 15 Aug 2017 13:24:55 -0700 Subject: [PATCH] Set dragon bot's status to show the help command --- Dockerfile-test-env | 4 ++-- app/dragon-bot.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile-test-env b/Dockerfile-test-env index a05299ee..125406c1 100644 --- a/Dockerfile-test-env +++ b/Dockerfile-test-env @@ -1,6 +1,6 @@ FROM python:3.6.2-slim LABEL name="Dragon Bot Test environment" -RUN apt-get update && apt-get install curl -y &&\ +RUN apt-get update && apt-get install curl vim -y &&\ curl -Lks get.docker.com | bash RUN pip install requests discord.py docker pybooru pylint @@ -11,4 +11,4 @@ RUN echo "\nTesting your python code for errors\n" && \ RUN echo "\n#########################\nRun dragon bot by typing \npython dragon-bot.py\n#########################\n" -WORKDIR /app \ No newline at end of file +WORKDIR /app diff --git a/app/dragon-bot.py b/app/dragon-bot.py index 02564d1a..2ef6359f 100644 --- a/app/dragon-bot.py +++ b/app/dragon-bot.py @@ -25,6 +25,8 @@ async def on_ready(): print("\nDRAGON BOT RUNNING IN {} MODE".format(dragon_environment.upper())) print("\n********************************") + await client.change_presence(game=discord.Game(name='Type !help to see how to use me')) + if debug: print("\nPress control+c to exit the bot") print("Followed by control+d or by typing") @@ -120,7 +122,6 @@ async def on_message(message): 'my.mixtape.moe', 'i.imgur.com', 'i.redd.it', - 'imgur.com', ] response = requests.get( "https://reddit.com/r/{}.json?limit=500".format(random.choice(boards)),