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"])