diff --git a/commands.md b/commands.md index e6558da..0f3d3dc 100644 --- a/commands.md +++ b/commands.md @@ -7,7 +7,7 @@ > Bot responds with "Hello!" >**!ping** -> Bot responds with "Pong!" and botlatency +> Bot responds with "Pong!" and botlatency + a gif from Ping Pong The Animation >**!github** > Flexes github link diff --git a/main.py b/main.py index f99adfb..bdaf20c 100644 --- a/main.py +++ b/main.py @@ -25,9 +25,10 @@ async def on_message(message): if message.content.lower().startswith('!hello'): await message.channel.send('Hello!') - # user sends "!ping", bot responds w/ "Pong" + bot latency + # user sends "!ping", bot responds w/ "Pong" + bot latency and a gif elif message.content.lower().startswith('!ping'): await message.channel.send(f'Pong :ping_pong: (Bot latency: **{round(client.latency * 1000)}ms**)') + await message.channel.send(file=discord.File('resources/pingpong.gif')) # user sends "!help", bot sends commands file elif message.content.lower().startswith("!help"): @@ -47,4 +48,4 @@ async def on_message(message): # run bot -client.run(my_secret) +client.run(my_secret) \ No newline at end of file diff --git a/resources/pingpong.gif b/resources/pingpong.gif new file mode 100644 index 0000000..42b8f12 Binary files /dev/null and b/resources/pingpong.gif differ