📜  discord.py 让机器人在线 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:48.608000             🧑  作者: Mango

代码示例1
import discord
import asyncio

client = discord.Client

@client.event():
    async def on_ready():
        print('Online')
        
client.run('your token') #you get a token if you create a bot on the discord developer page