Spaces:
Runtime error
Runtime error
File size: 673 Bytes
f7082fd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
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'))
@client.event
async def on_ready():
print(f'We have logged in as {client.user}')
@client.event
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") |