Skip to content
Permalink
b01d467824
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
34 lines (24 sloc) 1005 Bytes
import discord
from discord.ext.commands import bot
from discord.ext import commands
import asyncio
import time
Client = discord.Client()
client = commands.Bot(command_prefix="!")
@client.event
async def on_ready():
print("Hello Dave")
@client.event
async def on_message(message):
if message.content == "cookie":
await client.send_message(message.channel, ":cookie:", tts=True)
elif message.content == "100":
await client.send_message(message.channel, ":100:", tts=True)
elif message.content == "hello":
await client.send_message(message.channel, "Welcome!", tts=True)
elif message.content == "god save the queen":
await client.send_message(message.channel, ":flag_gb: :flag_gb: :flag_gb:")
elif message.content.startswith("Hello Bot"):
userID = message.author.id
await client.send_message(message.channel, "<@%s> Hello Human" % (userID), tts=True)
client.run("NTAzNjU2MTc3NjgzMzk4Njc1.Dq5txg.WDWMGBovm-6VOTP86Nipck5YOcw")