lunarflu HF staff commited on
Commit
051c32f
·
verified ·
1 Parent(s): 8001649

add looping by default for /lofi (more lofi = good)

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -241,6 +241,7 @@ async def on_ready():
241
  async def lofi(interaction: discord.Interaction):
242
  async def play_lofi(ctx, interaction: discord.Interaction):
243
  await music_bot.join_voice(ctx)
 
244
  music_bot.current_song = QueueItem(
245
  url=config.song_path, title="Lofi Music", file_path=config.song_path
246
  )
 
241
  async def lofi(interaction: discord.Interaction):
242
  async def play_lofi(ctx, interaction: discord.Interaction):
243
  await music_bot.join_voice(ctx)
244
+ music_bot.loop_mode = LoopMode.SINGLE
245
  music_bot.current_song = QueueItem(
246
  url=config.song_path, title="Lofi Music", file_path=config.song_path
247
  )