Skip to content

Commit

Permalink
Add commands for config and permission editing and reloading. (#2397)
Browse files Browse the repository at this point in the history
* Add commands for config and permission editing and reloading.
Refactors how options are registered, and adds a new dependency configupdater.

* Update example_options.ini

* Some fixes for setperms
  • Loading branch information
itsTheFae committed May 7, 2024
1 parent 2b2b88a commit 86e54e2
Show file tree
Hide file tree
Showing 8 changed files with 2,444 additions and 491 deletions.
41 changes: 37 additions & 4 deletions config/example_options.ini
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ UseAutoPlaylist = yes
# songs will be played in a sequential order instead.
AutoPlaylistRandom = yes

# Enable automatic skip of auto-playlist songs when a user plays a new song.
# This only applies to the current playing song if it was added by the auto-playlist.
AutoPlaylistAutoSkip = yes

# Remove songs from the auto-playlist if they are found in the song blocklist.
AutoPlaylistRemoveBlocked = yes

# Pause the music when nobody is in a voice channel, until someone joins again.
AutoPause = yes

Expand Down Expand Up @@ -190,8 +197,9 @@ LeaveInactiveVC = no
# Default value is 300 seconds.
LeaveInactiveVCTimeOut = 300

# Sets if if the bot should leave immediately once all songs have finished playing.
LeaveAfterSong = no
# If enabled, MusicBot will leave the channel immediately when the song queue is empty.
# Default is set to: no
LeaveAfterQueueEmpty = no

# Set a period of seconds that a player can be paused or not playing before it will disconnect.
# This setting is independent of LeaveAfterQueueEmpty.
Expand All @@ -203,14 +211,39 @@ LeavePlayerInactiveFor = 0
# When enabled the bot will automatically rotate between user requested songs.
RoundRobinQueue = no

# This setting allows you to quickly enable or disable use of User Blocklist.
# Enable the user block list feature, without emptying the block list.
# Default is set to: yes
EnableUserBlocklist = yes

# This setting allows you to quickly enable or disable the use of Song Blocklist.
EnableSongBlockList = no
# Default is set to: no
EnableSongBlocklist = no

# Allow MusicBot to use system ping command to detect network outage and availability.
# This is useful if you keep the bot joined to a channel or playing music 24/7.
# MusicBot must be restarted to enable network testing.
# By default this is disabled.
EnableNetworkChecker = no


[Files]
# Configure automatic log file rotation at restart, and limit the number of files kept.
# When disabled, only one log is kept and its contents are replaced each run.
# Default is 0, or disabled. Maximum allowed number is 100."
LogsMaxKept = 0

# Configure the log file date format used when LogsMaxKept is enabled.
# If left blank, a warning is logged and the default will be used instead.
# Learn more about time format codes from the tables and data here:
# https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior
# Default value is: ".ended-%Y-%j-%H%m%S"
LogsDateFormat = .ended-%Y-%j-%H%m%S

# An optional file path to an auto playlist text file.
# Each line of the file will be treated similarly to using the play command.
# Default value is: config/autoplaylist.txt
AutoPlaylistFile =

# Path to your i18n file. Do not set this if you do not know what it does.
i18nFile =

Expand Down
Loading

0 comments on commit 86e54e2

Please sign in to comment.