디스코드 봇 만들기 - 시작하기

Welcome to discord.py

Creating a Bot Account

Discord Developer Portal - API Docs for Bots and Developers

코드 샘플

import discord

client = discord.Client()

@client.event
async def on_ready():
    print("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("안녕? 나 봇이야!")

client.run("토큰")

디스코드 봇 만들기 - 무료 호스팅 - SoftCode