Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "SUBLIME TEXT PRUEBA.py", line 8, in <module>
- client = command.Bot(command_prefix = '!')
- NameError: name 'command' is not defined
- Unclosed client session
- client_session: <aiohttp.client.ClientSession object at 0x0000017638A4F9E8>
- import discord
- from discord.ext.commands import Bot
- from discord.ext import commands
- import asyncio
- Client = discord.Client()
- client = command.Bot(command_prefix = '!')
- @client.event
- async def on_ready():
- print('bot is redey')
- @client.event
- async def on_message(message):
- if message.content == 'keke':
- await client.send_message(message.channel, 'KEKEKEKEKK')
Add Comment
Please, Sign In to add comment