REPL在运行discord.py cod时请求我的剪贴板

2024-09-29 23:16:01 发布

您现在位置:Python中文网/ 问答频道 /正文

每当我试图运行导入不一致的脚本时,我的REPL或任何其他解释器都会询问我在剪贴板上想要什么

这是我的密码:

import discord
from discord.ext import commands
from discord.ext.commands import Bot
import asyncio

Client = discord.Client()
bot = commands.Bot(command_prefix="cazo.")

@bot.event
async def on_ready():
        print(bot.user.name + " er klar til at bolle jer allesammen!")

@bot.command()
async def hello():
        await bot.say("Goddag, fede mongol.")

@bot.command(pass_context = True)
async def cazo(ctx):
        await bot.say("Cazo er jo den mægtigste person der findes.")



bot.run("TOKEN")

当我运行它时,REPL显示

What do you want on your clipboard? 

但是,每当我按enter键时,它就会继续运行,bot工作正常。我怎样才能让它停下来


Tags: fromimportclientasyncondefbotrepl

热门问题