Skip to content

Instantly share code, notes, and snippets.

@Gabriel-bits
Last active September 7, 2020 17:21
Show Gist options
  • Save Gabriel-bits/0af65caa874ccf4830e381acc067b636 to your computer and use it in GitHub Desktop.
Save Gabriel-bits/0af65caa874ccf4830e381acc067b636 to your computer and use it in GitHub Desktop.
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