当管理员执行命令!start时,有没有办法在3.6中制作一个不和谐的python机器人?

时间:2019-05-21 02:31:34

标签: python-3.6 discord.py

该命令处于活动状态并且其他用户加入!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)

0 个答案:

没有答案