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
import webbrowser
import nltk
import random
from discord.ext import commands
import asyncio
TOKEN = 'NTA3NjMyNDUwMzkwODUxNTg1.Drzsew.lVbUm7WKIPrV56q_9LegdqZuXZo'
client = commands.Bot(command_prefix = '?')
@client.event
async def on_ready():
print('"BOT ON DUTY"')
@client.command
async def test(ctx):
await ctx.send('I heard you! {0}'.format(ctx.author))
@client.event
async def message(message):
if message.author.id == client.user.id:
return
if message.content.lower().startswith ('!math'):
client.run(TOKEN)