📜  正常的 discord.py 代码 - Python 代码示例

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

代码示例1
import os
import discord
import json
from discord import message
from discord.ext import commands
client.Bot(command_prefix=('^'))

from discord import client

@client.event
async def on_ready(message):
    print('Bot is ready.')
client.run('TOKEN')