Guest User

Untitled

a guest
Nov 14th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "SUBLIME TEXT PRUEBA.py", line 8, in <module>
  3. client = command.Bot(command_prefix = '!')
  4. NameError: name 'command' is not defined
  5. Unclosed client session
  6. client_session: <aiohttp.client.ClientSession object at 0x0000017638A4F9E8>
  7.  
  8. import discord
  9. from discord.ext.commands import Bot
  10. from discord.ext import commands
  11. import asyncio
  12.  
  13.  
  14. Client = discord.Client()
  15. client = command.Bot(command_prefix = '!')
  16.  
  17.  
  18. @client.event
  19. async def on_ready():
  20. print('bot is redey')
  21.  
  22. @client.event
  23. async def on_message(message):
  24. if message.content == 'keke':
  25. await client.send_message(message.channel, 'KEKEKEKEKK')
Add Comment
Please, Sign In to add comment