Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Feature/clear on empty #589

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open

Feature/clear on empty #589

wants to merge 8 commits into from

Conversation

Nanabell
Copy link
Collaborator

Allows to configure the player to clear all songs if everyone leaves instead of just pausing it.

Depends on FredBoat/Backend#17

@freyacodes
Copy link
Owner

Please post screenshots showing how the user would experience this feature.

@@ -58,6 +58,7 @@ class ConfigCommand(name: String, vararg aliases: String) : Command(name, *alias
.append(context.i18nFormat("configNoArgs", context.guild.name)).append("\n")
.append("track_announce = ${gc.isTrackAnnounce}\n")
.append("auto_resume = ${gc.isAutoResume}\n")
.append("clear_on_empty = ${gc.isClearOnEmpty}")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a \n for good measure

FredBoat/src/main/java/fredboat/event/AudioEventHandler.kt Outdated Show resolved Hide resolved
FredBoat/src/main/resources/lang/en_US.properties Outdated Show resolved Hide resolved
@Nanabell
Copy link
Collaborator Author

Nanabell commented Sep 7, 2019

Usage:
image

Config:
image

If disabled will show the normal "all users have left, the player has been paused"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants