Skip to content

Commit c4eab05

Browse files
authored
Merge branch 'main' into dependabot/nuget/DotNetTwitchBot/Microsoft.VisualStudio.Azure.Containers.Tools.Targets-1.23.0
2 parents 5dcb2de + 2364ec8 commit c4eab05

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

DotNetTwitchBot/Bot/Ai/StarCitizenAI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public async Task<string> GetResponseFromPrompt(string userId, string prompt)
2626
AllowedDomains = [
2727
"starcitizen.tools",
2828
"finder.cstone.space",
29-
"sc-trade.tools",
29+
"uexcorp.space",
3030
"robertsspaceindustries.com",
3131
"status.robertsspaceindustries.com"
3232
]

DotNetTwitchBot/Bot/Commands/Music/YtPlayer.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,24 @@ public override async Task OnCommand(object? sender, CommandEventArgs e)
392392
await VoteSkipSong(e);
393393
break;
394394
case "veto":
395+
try
396+
{
397+
await _semaphoreSlim.WaitAsync();
398+
if (CurrentSong != null)
399+
{
400+
// Keep track of songs vetoed to see if any songs want to be removed.
401+
await File.AppendAllTextAsync("vetoed.txt", $"{DateTime.Now:d} {DateTime.Now:t} - {CurrentSong.SongId} - {CurrentSong.Title}\n");
402+
}
403+
}
404+
catch (Exception ex)
405+
{
406+
_logger.LogError(ex, "Error vetoing song");
407+
}
408+
finally {
409+
_semaphoreSlim.Release();
410+
}
395411
await PlayNextSong();
412+
396413
break;
397414
case "pause":
398415
await Pause();

0 commit comments

Comments
 (0)