switching to python

This commit is contained in:
alwayscompiling
2022-06-22 21:07:32 -04:00
parent c7961b7504
commit 1015b0f557
+24
View File
@@ -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"])