该命令处于活动状态并且其他用户加入!join时,它将添加到列表中,然后当6个人加入时将其随机分为2组,每组3个
import discord
from discord import Game
from discord.ext.commands import Bot
import unicodedata
import sys
import time
BOT_PREFIX = ("!")
TOKEN = "token"
client = Bot(command_prefix=BOT_PREFIX)
@client.event
async def on_ready():
print("Logged in as " + client.user.name)
await client.change_presence(game=discord.Game(name="Making a bot"))
client.loop.create_task(list_servers())
client.run(TOKEN)