Spaces:
Runtime error
Runtime error
import os | |
# import pickle | |
import discord | |
intents = discord.Intents.default() | |
intents.message_content = True | |
client = discord.Client(intents=intents) | |
# model_pipe = pickle.load(open('pipe.pkl', 'rb')) | |
async def on_ready(): | |
print(f'We have logged in as {client.user}') | |
async def on_message(message): | |
if message.author == client.user: | |
return | |
if message.content.startswith('$hello'): | |
print(message.content) | |
# await message.channel.send(model_pipe.predict([message.content])) | |
await message.channel.send('Hello') | |
client.run("MTA3NjU3MDc3MDYzMDc5MTIxOA.GvxRm6.Lm7ZDPwrkmz0AqrUxkxTRXKcObCzswDMfNpCIc") |