Skip to content

Commit

Permalink
I haven't done anything productive in awhile
Browse files Browse the repository at this point in the history
Missed ` in i18n
Changes show config on launch:
only show timeout's if enabled.
Add search list.
  • Loading branch information
BabyBoySnow committed Jan 23, 2024
1 parent 8d8148f commit 5810590
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"cmd-restart-uppip": "{emoji} Will try to upgrade required pip packages and restart the bot...",
"cmd-restart-upgit": "{emoji} Will try to update bot code with git and restart the bot...",
"cmd-restart-upgrade": "{emoji} Will try to upgrade everything and restart the bot...",
"cmd-disconnect-success": "Disconnected from `{0.name}",
"cmd-disconnect-success": "Disconnected from `{0.name}`",
"cmd-disconnect-no-voice": "Not currently connected to `{0.name}`",
"playlists-noperms": "You are not allowed to request playlists",
"playlists-big": "Playlist has too many entries ({0} > {1})",
Expand Down
11 changes: 7 additions & 4 deletions musicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1463,24 +1463,27 @@ async def on_ready(self):
" Leave inactive VC: "
+ ["Disabled", "Enabled"][self.config.leave_inactive_channel]
)
log.info(
f" Timeout: {self.config.leave_inactive_channel_timeout} seconds"
)
if self.config.leave_inactive_channel:
log.info(
f" Timeout: {self.config.leave_inactive_channel_timeout} seconds"
)
log.info(
" Leave at song end/empty queue: "
+ ["Disabled", "Enabled"][self.config.leave_after_queue_empty]
)
log.info(
f" Leave when player idles: {'Disabled' if self.config.leave_player_inactive_for == 0 else 'Enabled'}"
)
log.info(f" Timeout: {self.config.leave_player_inactive_for} seconds")
if self.config.leave_player_inactive_for:
log.info(f" Timeout: {self.config.leave_player_inactive_for} seconds")
log.info(
" Self Deafen: " + ["Disabled", "Enabled"][self.config.self_deafen]
)
log.info(
" Per-server command prefix: "
+ ["Disabled", "Enabled"][self.config.enable_options_per_guild]
)
log.info(" Search List: " + ["Disabled", "Enabled"][self.config.searchlist])

print(flush=True)

Expand Down

0 comments on commit 5810590

Please sign in to comment.