Files
agon/pvm_highscores.py
T
2022-06-22 21:07:32 -04:00

25 lines
490 B
Python

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