edit 修改總複習秒數為 1 秒
This commit is contained in:
parent
029fee16ea
commit
5734d7387d
|
|
@ -159,7 +159,7 @@ class Lottery(commands.Cog):
|
|||
|
||||
# --- 新增:動畫角色總複習 ---
|
||||
@app_commands.guilds(discord.Object(id=MY_GUILD_ID))
|
||||
@app_commands.command(name="動畫角色總複習", description="每 2 秒顯示一位動畫角色,直到結束")
|
||||
@app_commands.command(name="動畫角色總複習", description="每 1 秒顯示一位動畫角色,直到結束")
|
||||
async def check_all_ani(self, interaction: discord.Interaction):
|
||||
self.stop = False
|
||||
await interaction.response.send_message("動畫角色總複習開始,如需停止請輸入 /停止", ephemeral=True)
|
||||
|
|
@ -179,7 +179,7 @@ class Lottery(commands.Cog):
|
|||
embed.set_image(url=ani["url"])
|
||||
|
||||
await interaction.followup.send(embed=embed)
|
||||
await asyncio.sleep(2)
|
||||
await asyncio.sleep(1)
|
||||
|
||||
await interaction.followup.send("複習完畢!")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue