govisi's picture
add discord code
311f1d1
raw
history blame
731 Bytes
# 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 from hugging face')
# client.run("MTA3NjU3MDc3MDYzMDc5MTIxOA.GvxRm6.Lm7ZDPwrkmz0AqrUxkxTRXKcObCzswDMfNpCIc")