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 discord | |
import asyncio | |
import random | |
client = discord.Client() | |
@client.event | |
async def on_ready(): | |
print('BOT ONLINE - OLÁ MUNDO') | |
print(client.user.name) |
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 discord | |
import secreto | |
import asyncio | |
client = discord.Client() | |
COR =0x690FC3 | |
token = secreto.seu_token() | |
msg_id = None | |
msg_user = None |
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
@client.event | |
async def on_member_join(member): | |
canal = client.get_channel("423328604911304708") | |
regras = client.get_channel("420612829838573588") | |
msg = "Bem Vindo {}\n leia as {}".format(member.mention, regras.mention) | |
await client.send_message(canal, msg) #substitua canal por member para enviar a msg no DM do membro | |
@client.event | |
async def on_member_remove(member): | |
canal = client.get_channel("423328604911304708") |
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 discord | |
import requests | |
from io import BytesIO | |
from PIL import Image, ImageDraw, ImageFont, ImageOps | |
client = discord.Client() | |
# BY PR#3367 | |
@client.event | |
async def on_ready(): |
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 discord | |
#VOCÊ PRECISA DO YOUTUBE-DL INSTALADO, PARA ISSO DIGITE "pip install youtube_dl" NO CMD! | |
client = discord.Client() | |
players = {} | |
COR = 0xF7FE2E | |
@client.event | |
async def on_ready(): | |
print(client.user.name) |
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
const Discord = require("discord.js"); //baixar a lib | |
const client = new Discord.Client(); | |
const config = require("./config.json"); | |
client.on("ready", () => { | |
console.log(`Bot foi iniciado, com ${client.users.size} usuários, em ${client.channels.size} canais, em ${client.guilds.size} servidores.`); | |
client.user.setPresence({ game: { name: 'comando', type: 1, url: 'https://www.twitch.tv/pedroricardo'} }); | |
//0 = Jogando | |
// 1 = Transmitindo |
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
const Discord = require("discord.js") | |
const jimp =require("jimp") | |
const client = new Discord.Client() | |
const config = require("./config.json") | |
client.on("ready", () => { | |
console.log(`Bot foi iniciado, com ${client.users.size} usuários, em ${client.channels.size} canais, em ${client.guilds.size} servidores.`); | |
}); |
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
const Discord = require("discord.js") | |
const client = new Discord.Client() | |
const toApng = require('gif-to-apng') | |
const download = require('download-file') | |
const config = require("./config.json") | |
// instalar as dependencias: download-file, gif-to-apng, uuid | |
client.on("ready", () => { | |
console.log("O Bot foi iniciado"); |
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
const Discord = require("discord.js"); //baixar a lib discord.js | |
const client = new Discord.Client(); | |
const config = require("./config.json"); | |
const low = require('lowdb') //banco de dados | |
const FileSync = require('lowdb/adapters/FileSync') | |
const adapter = new FileSync('banco.json') | |
const db = low(adapter) | |
client.on("ready", () => { |
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
const Discord = require("discord.js"); //baixar a lib | |
const client = new Discord.Client(); | |
const config = require("./config.json"); | |
client.on("ready", () => { | |
console.log('Olá mundo') | |
}) | |
client.on('raw', async dados => { |
OlderNewer