jam134 commited on
Commit
3bed839
·
verified ·
1 Parent(s): a60c6ae

Update bots/maniac.py

Browse files
Files changed (1) hide show
  1. bots/maniac.py +4 -8
bots/maniac.py CHANGED
@@ -124,18 +124,14 @@ def setup_bot(client):
124
  # 音樂已經在播放,將歌曲添加到隊列中
125
  queues[ctx.guild.id]['songs'].append(link)
126
  await ctx.send(f"已將 **{title}** by {uploader} 添加到播放清單中。")
127
-
128
- except Exception as e:
129
- print(f"Playback error: {e}")
130
- await ctx.send(f"播放錯誤: {e}")
131
 
132
- # 播放歌曲
133
  voice_clients[ctx.guild.id].play(player, after=lambda e: asyncio.run_coroutine_threadsafe(play_next(ctx), client.loop))
134
 
135
 
136
- except Exception as e:
137
- print(f"Playback error: {e}")
138
- await ctx.send(f"播放錯誤: {e}")
139
 
140
  @client.command(name="clear_queue")
141
  async def clear_queue(ctx):
 
124
  # 音樂已經在播放,將歌曲添加到隊列中
125
  queues[ctx.guild.id]['songs'].append(link)
126
  await ctx.send(f"已將 **{title}** by {uploader} 添加到播放清單中。")
 
 
 
 
127
 
128
+ # 播放歌曲
129
  voice_clients[ctx.guild.id].play(player, after=lambda e: asyncio.run_coroutine_threadsafe(play_next(ctx), client.loop))
130
 
131
 
132
+ except Exception as e:
133
+ print(f"Playback error: {e}")
134
+ await ctx.send(f"播放錯誤: {e}")
135
 
136
  @client.command(name="clear_queue")
137
  async def clear_queue(ctx):