mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-20 00:43:36 +03:00
Merge branch 'master' into random
This commit is contained in:
commit
d26e6c1161
1 changed files with 17 additions and 16 deletions
|
@ -8,22 +8,22 @@ namespace Octobot.Services.Update;
|
||||||
|
|
||||||
public sealed class SongUpdateService : BackgroundService
|
public sealed class SongUpdateService : BackgroundService
|
||||||
{
|
{
|
||||||
private static readonly (string Name, TimeSpan Duration)[] SongList =
|
private static readonly (string Author, string Name, TimeSpan Duration)[] SongList =
|
||||||
{
|
{
|
||||||
("Yoko & the Gold Bazookas - Rockagilly Blues", new TimeSpan(0, 3, 37)),
|
("Yoko & the Gold Bazookas", "Rockagilly Blues", new TimeSpan(0, 3, 37)),
|
||||||
("Splatoon 3 - Seep and Destroy", new TimeSpan(0, 2, 42)),
|
("Splatoon 3", "Seep and Destroy", new TimeSpan(0, 2, 42)),
|
||||||
("Deep Cut - Big Betrayal", new TimeSpan(0, 1, 42)),
|
("Deep Cut", "Big Betrayal", new TimeSpan(0, 1, 42)),
|
||||||
("Squid Sisters - Tomorrow's Nostalgia Today", new TimeSpan(0, 2, 8)),
|
("Squid Sisters", "Tomorrow's Nostalgia Today", new TimeSpan(0, 2, 8)),
|
||||||
("Deep Cut - Anarchy Rainbow", new TimeSpan(0, 1, 51)),
|
("Deep Cut", "Anarchy Rainbow", new TimeSpan(0, 1, 51)),
|
||||||
("Squid Sisters feat. Ian BGM - Liquid Sunshine", new TimeSpan(0, 1, 32)),
|
("Squid Sisters feat. Ian BGM", "Liquid Sunshine", new TimeSpan(0, 1, 32)),
|
||||||
("Damp Socks feat. Off the Hook - Candy-Coated Rocks", new TimeSpan(0, 1, 11)),
|
("Damp Socks feat. Off the Hook", "Candy-Coated Rocks", new TimeSpan(0, 1, 11)),
|
||||||
("H2Whoa - Aquasonic", new TimeSpan(0, 1, 1)),
|
("H2Whoa", "Aquasonic", new TimeSpan(0, 1, 1)),
|
||||||
("Yoko & the Gold Bazookas - Ska-Blam!", new TimeSpan(0, 4, 4)),
|
("Yoko & the Gold Bazookas", "Ska-BLAM", new TimeSpan(0, 4, 4)),
|
||||||
("Off the Hook - Muck Warfare", new TimeSpan(0, 3, 39)),
|
("Off the Hook", "Muck Warfare", new TimeSpan(0, 3, 39)),
|
||||||
("Off the Hook - Acid Hues", new TimeSpan(0, 3, 39)),
|
("Off the Hook", "Acid Hues", new TimeSpan(0, 3, 39)),
|
||||||
("Off the Hook - Shark Bytes", new TimeSpan(0, 3, 48)),
|
("Off the Hook", "Shark Bytes", new TimeSpan(0, 3, 48)),
|
||||||
("DJ Octavio feat. Squid Sisters & Deep Cut - Calamari Inkantation", new TimeSpan(0, 7, 9)),
|
("DJ Octavio feat. Squid Sisters & Deep Cut", "Calamari Inkantation 3MIX", new TimeSpan(0, 7, 9)),
|
||||||
("Splatoon - Ink Me Up", new TimeSpan(0, 2, 13))
|
("Squid Sisters", "Ink Me Up", new TimeSpan(0, 2, 13))
|
||||||
};
|
};
|
||||||
|
|
||||||
private readonly List<Activity> _activityList = new(1)
|
private readonly List<Activity> _activityList = new(1)
|
||||||
|
@ -52,7 +52,8 @@ public sealed class SongUpdateService : BackgroundService
|
||||||
while (!ct.IsCancellationRequested)
|
while (!ct.IsCancellationRequested)
|
||||||
{
|
{
|
||||||
var nextSong = SongList[_nextSongIndex];
|
var nextSong = SongList[_nextSongIndex];
|
||||||
_activityList[0] = new Activity(nextSong.Name, ActivityType.Listening);
|
_activityList[0] = new Activity($"{nextSong.Name} / {nextSong.Author}",
|
||||||
|
ActivityType.Listening);
|
||||||
_client.SubmitCommand(
|
_client.SubmitCommand(
|
||||||
new UpdatePresence(
|
new UpdatePresence(
|
||||||
UserStatus.Online, false, DateTimeOffset.UtcNow, _activityList));
|
UserStatus.Online, false, DateTimeOffset.UtcNow, _activityList));
|
||||||
|
|
Loading…
Add table
Reference in a new issue