Set dragon bot's status to show the help command

This commit is contained in:
luke 2017-08-15 13:24:55 -07:00
parent b30a6e7f56
commit bb32a5769a
2 changed files with 4 additions and 3 deletions

View File

@ -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
WORKDIR /app

View File

@ -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)),