【发布时间】:2018-12-20 18:58:46
【问题描述】:
我的代码出现了一些错误:
import discord
from discord.ext.commands import Bot
from discord.ext import commands
import asyncio
client = commands.Bot(command_prefix = "!")
@client.event
async def on_ready():
print("Bot is online")
@client.command()
async def raid(ctx):
while True:
await ctx.send("""@Raider come show some support and join the raid!
Meet: (link1)
Target: (link2)
Raid Call: """)
await asyncio.sleep(5)
client.run("token")
当我运行代码时,我得到:
【问题讨论】:
-
请在问题中包含您的代码和错误。另外,请保持问题简单明了,并且只提供与您的问题相关的内容。
-
缩进
while True:之后的内容 -
已修复,感谢您的帮助。