From 32a6e97342acc3b35e6f9e7b4dd169e21d888770 Mon Sep 17 00:00:00 2001 From: alyssa Date: Fri, 13 Sep 2024 12:48:23 +0900 Subject: [PATCH] feat(bot): custom status --- Myriad/Types/Activity.cs | 1 + PluralKit.Bot/Bot.cs | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Myriad/Types/Activity.cs b/Myriad/Types/Activity.cs index ce91c688..34a2e5e2 100644 --- a/Myriad/Types/Activity.cs +++ b/Myriad/Types/Activity.cs @@ -3,6 +3,7 @@ namespace Myriad.Types; public record Activity { public string Name { get; init; } + public string State { get; init; } public ActivityType Type { get; init; } public string? Url { get; init; } } diff --git a/PluralKit.Bot/Bot.cs b/PluralKit.Bot/Bot.cs index 4b329f64..506382ef 100644 --- a/PluralKit.Bot/Bot.cs +++ b/PluralKit.Bot/Bot.cs @@ -67,8 +67,9 @@ public class Bot { new Activity { - Type = ActivityType.Game, - Name = BotStatus + Type = ActivityType.Custom, + Name = BotStatus, + State = BotStatus } } }; @@ -141,7 +142,8 @@ public class Bot new Activity { Name = "Restarting... (please wait)", - Type = ActivityType.Game + State = "Restarting... (please wait)", + Type = ActivityType.Custom } }, Status = GatewayStatusUpdate.UserStatus.Idle @@ -276,7 +278,8 @@ public class Bot new Activity { Name = BotStatus, - Type = ActivityType.Game + State = BotStatus, + Type = ActivityType.Custom, } }, Status = GatewayStatusUpdate.UserStatus.Online