feat: database and config support for playback mode.

This commit is contained in:
Terry Geng
2020-02-26 22:56:07 +08:00
parent 6a1320f8f9
commit b85956ef2f
5 changed files with 43 additions and 15 deletions

View File

@ -8,6 +8,7 @@
# ========================================================
# [server] section tells the bot how to connect to your murmur server.
# This section will be overridden by command line arguments.
[server]
host = 127.0.0.1
port = 64738
@ -24,14 +25,26 @@ port = 64738
#comment = Hi, I'm here to play radio, local music or youtube/soundcloud music. Have fun!
# 'volume' is default volume from 0 to 1.
# This option will be overridden by value in the database.
#volume = 0.1
# 'playback_mode' defined the playback mode of the bot.
# it should be one of "one-shot" (play the playlist once), "loop" (looping through the playlist),
# or "random" (randomize the playlist).
# This option will be overridden by value in the database.
#playback_mode = one-shot
# 'admin': Users allowed to kill the bot, or ban URLs. Separated by ';'
#admin = User1;User2;
# 'music_folder': Folder that stores your local songs.
#music_folder = music_folder/
# 'database_path': The path of the database. The database will store things like your volume
# set by command !volume, your playback mode and your playlist, etc.
# This option will be overridden by command line arguments.
#database_path = database.db
# 'tmp_folder': Folder that stores the downloaded music.
# 'tmp_folder_max_size': in MB, 0 for no cache, -1 for unlimited size
# 'ignored_folders', 'ignored_files': files and folders that would be ignored during scanning.