Home » Science & Technology » CREAR BOT DE DISCORD EN 1 MINUTO(LINKS EN LA DESCRIPCIÓN)

CREAR BOT DE DISCORD EN 1 MINUTO(LINKS EN LA DESCRIPCIÓN)

Written By Jayson B on Thursday, Mar 11, 2021 | 02:19 PM

 
CREAR BOT DE DISCORD EN 1 MINUTO LINKS :(en ambos crear o usar una cuenta) https://discord.com/developers/applications https://repl.it/ (aqui seleccionas "new repl", luego phyton, y aceptar) FUENTE: https://www.freecodecamp.org/news/create-a-discord-bot-with-python/ https://discordpy.readthedocs.io/en/latest/quickstart.html#a-minimal-bot CODIGO: import discord import os client = discord.Client() @client.event async def on_ready(): print('We have logged in as {0.user}'.format(client)) @client.event async def on_message(message): if message.author == client.user: return if message.content.startswith('$hello'): await message.channel.send('Hello!') client.run(os.getenv('TOKEN'))