Last active
September 7, 2020 17:21
-
-
Save Gabriel-bits/0af65caa874ccf4830e381acc067b636 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import asyncpg | |
import discord | |
import json | |
import logging | |
from discord.ext import commands | |
from math import floor | |
import random | |
client = discord.Client() | |
@client.event | |
async def on_ready(): | |
print("Bot on - óla mundo") | |
print(client.user.name) | |
print(client.user.id) | |
@client.event | |
async def on_message(message): | |
if message.content.startswith('?test'): | |
await message.channel.send('Hello World!') | |
if message.content.startswith('?coisn'): | |
await message.on_reaction_add('😀', 748971729920983141) | |
client.run('NzQ1MDMwNzUxNjM2MDI5NTMw.Xzr19Q.trxFWBC6TVi5UHAMyGIIRhSHHzI') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment