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
from discord.ext.commands import Bot
from discord.ext import commands
import asyncio
import time
GREETING_KEYWORDS = ("hello", "hi", "greetings", "sup", "what's up",)
GREETING_RESPONSES = ["'sup bro", "hey", "", "hello"]
Client = discord.Client() #Initialise Client
client = commands.Bot(command_prefix = "?") #Initialise client bot
@client.event
async def on_ready():
print("Bot is online and connected to Discord") #This will be called when the bot connects to the server
@client.event
async def on_message(message):
if message.content == "crying":
await client.send_message(message.channel, ":joy:")
if message.content == "cool":
await client.send_message(message.channel, ":sunglasses:")
if message.content == "ok":
await client.send_message(message.channel, ":ok_hand:")
if message.content == "USA":
await client.send_message(message.channel, ":flag_um:")
if message.content == "UK":
await client.send_message(message.channel, ":flag_gb:")
if message.content == "really bad":
await client.send_message(message.channel, ":poop:")
if message.content == "lithuania":
await client.send_message(message.channel, ":flag_lt:")
if message.content == "kiss":
await client.send_message(message.channel, ":kissig_heart:")
if message.content == "happy":
await client.send_message(message.channel, ":smiley:")
if message.content == "angry":
await client.send_message(message.channel, ":imp:")
if message.content == "cookie":
await client.send_message(message.channel, ":cookie:")
client.run("NTA1NzU1NzMzODA4MzgxOTUy.DrYOGA.akSGcQz4rwNowBWK6isC3s5nNVU")