From 8e6a639e576763d231005dc1299be2ba09be18f9 Mon Sep 17 00:00:00 2001 From: Terry Geng Date: Fri, 6 Mar 2020 17:13:45 +0800 Subject: [PATCH] chore: config file. --- configuration.default.ini | 5 +++-- configuration.example.ini | 9 ++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/configuration.default.ini b/configuration.default.ini index f642005..1d102ec 100644 --- a/configuration.default.ini +++ b/configuration.default.ini @@ -31,7 +31,7 @@ username = botamusique comment = Hi, I'm here to play radio, local music or youtube/soundcloud music. Have fun! # default volume from 0 to 1. volume = 0.1 -# playback mode should be one of "one-shot", "loop", "random" +# playback mode should be one of "one-shot", "loop", "random", "autoplay" playback_mode = one-shot # target version, stable or testing (testing need to bot installed with git) @@ -227,7 +227,8 @@ help =

Commands

  • !last - jump to the last song
  • !volume {volume} - get or change the volume (from 0 to 100)
  • !mode [{mode}] - get or set the playback mode, {mode} should be one of one-shot (remove - item once played), repeat (looping through the playlist), random (randomize the playlist)
  • + item once played), repeat (looping through the playlist), random (randomize the playlist), + autoplay (randomly grab something from the music library).
  • !duck on/off - enable or disable ducking function
  • !duckv - set the volume of the bot when ducking is activated
  • !duckthres - set the threshold of volume to activate ducking (3000 by default)
  • diff --git a/configuration.example.ini b/configuration.example.ini index 608ce2b..edccee7 100644 --- a/configuration.example.ini +++ b/configuration.example.ini @@ -30,7 +30,7 @@ port = 64738 # 'playback_mode' defined the playback mode of the bot. # it should be one of "one-shot" (remove item once played), "repeat" (looping through the playlist), -# or "random" (randomize the playlist). +# or "random" (randomize the playlist), "autoplay" (randomly grab something from the music library). # This option will be overridden by value in the database. #playback_mode = one-shot @@ -71,8 +71,11 @@ port = 64738 #allow_other_channel_message = False #allow_private_message = True -# 'save_playlist': If save_playlist is set True, the bot will save current -# playlist before quitting and reload it the next time it start. +# 'save_music_library': If this is set True, the bot will save the metadata of music into the database. +#save_music_library = True + +# 'save_playlist': If save_playlist is set True, the bot will save current playlist before quitting +# and reload it the next time it start. It requires save_music_library to be True to function. #save_playlist = True # 'max_track_playlist': Maximum track played when a playlist is added.