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.")
- if message.content.lower().startswith('?coin'):
- if message.author.id == "id":
- choice = random.randint(1, 2)
- if choice == 1:
- await client.add_reaction(message, '😀')
- if choice == 2:
- await client.add_reaction(message, '👑')
- else:
- await client.send_message(message.channel, "Você não tem permissão para usar este comando!")
- client.run('TOKEN')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement