From 1015b0f557b779ac6f8550c10ab4bd5f36036e34 Mon Sep 17 00:00:00 2001 From: alwayscompiling Date: Wed, 22 Jun 2022 21:07:32 -0400 Subject: [PATCH] switching to python --- pvm_highscores.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pvm_highscores.py diff --git a/pvm_highscores.py b/pvm_highscores.py new file mode 100644 index 0000000..25b24d8 --- /dev/null +++ b/pvm_highscores.py @@ -0,0 +1,24 @@ +import json +import discord + +client = discord.Client() + +with open("config.json") as file: + config_data = json.load(file) + + +@client.event +async def on_ready(): + print('We have logged in as {0.user}'.format(client)) + + +@client.event +async def on_message(message): + print("message get") + if message.author == client.user: + return + + if message.content.startswith('reee'): + await message.channel.send('reee!') + +client.run(config_data["token"])