Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
import discord
def read_token():
with open ("token.txt", "r") as file:
lines = file.readlines()
return lines[0].strip()
token = read_token()
client = discord.Client()
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content != 'hello':
await message.channel.send('Sorry I do not understand. Can you repeat please.')
else:
await message.add_reaction('\U0001F60E')
await message.channel.send("Hi, I am a Movie Chat bot. It is very nice to see you!")
@client.event
async def on_ready():
print("Bot is online!")
client.run(token)