Skip to content

Commit

Permalink
Add option to hide name of requested songs
Browse files Browse the repository at this point in the history
  • Loading branch information
kinsi55 committed Jun 3, 2022
1 parent e63119c commit ba23b97
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion AppLogic/RequestManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ private void Twitch_OnTextMessageReceived(string sender, string message, object
));

if(queued) {
Msg($"@{sender} Queued {split[1]} - {theMappe.level.songName} ({(BeatmapDifficulty)diff})", channel);
if(Config.Instance.chat_request_show_name) {
Msg($"@{sender} Queued {split[1]} - {theMappe.level.songName} ({(BeatmapDifficulty)diff})", channel);
} else {
Msg($"@{sender} Queued {split[1]} ({(BeatmapDifficulty)diff})", channel);
}
} else {
Msg($"@{sender} Couldn't queue map (Unknown error)", channel);
}
Expand Down
1 change: 1 addition & 0 deletions Configuration/PluginConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ static List<DateTime> BuilDateTimeList() {


public virtual bool chat_request_enabled { get; set; } = true;
public virtual bool chat_request_show_name { get; set; } = true;
//public virtual bool chat_currentmap_enabled { get; set; } = false;
public virtual bool request_allowSpecificDiff { get; set; } = false;
public virtual bool request_allowSpecificTime { get; set; } = false;
Expand Down
1 change: 1 addition & 0 deletions MenuLogic/UI/Views/setup.bsml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<modifier-container child-expand-width='true' horizontal-fit='PreferredSize'>
<!--<toggle-setting value='chat_currentmap_enabled' text='Allow Getting current song (!chaoslink)' apply-on-change='true'/>-->
<toggle-setting value='chat_request_enabled' text='Allow Chat requests (!sr/!chaos [bsr code])' apply-on-change='true'/>
<toggle-setting value='chat_request_show_name' text='Show name of request song in Chat' apply-on-change='true'/>
<toggle-setting value='request_allowSpecificDiff' text='Allow a specific difficulty to be requested' apply-on-change='true'
hover-hint='Usage: !sr 25f Normal or !sr 25f ExpertPlus 4:20'
/>
Expand Down

0 comments on commit ba23b97

Please # to comment.