Skip to content
Permalink
1acaab8cea
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
19 lines (15 sloc) 442 Bytes
import discord
from discord.ext.command import Bot
from discord.ext import commands
import asyncio
import time
Client = discord.Client()
client = command.Bot(command_prefix = "!")
@client.event
async def on_ready():
print("We have logged in")
@client.event
async def on_message(message):
if message.content == "cookie":
await client.send_message(message.channel, ":cookie:")
client.run("2QZgvTyxIq8WyjgPRZMHhZJgiLd3A93T")