Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- import asyncio
- import random
- client = discord.Client()
- @client.event
- async def on_ready():
- print('BOT ONLINE - OLÁ MUNDO')
- print(client.user.name)
- print(client.user.id)
- print('-----PR------')
- @client.event
- async def on_message(message):
- if message.content.lower().startswith('?test'):
- await client.send_message(message.channel, "Olá Mundo, estou vivo!")
- client.run('TOKEN')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement