From 414ac7751be6b8ae952b3f3e0e4d7921f16cd3ef Mon Sep 17 00:00:00 2001 From: RebeccaNod1 Date: Fri, 8 May 2026 14:37:09 -0600 Subject: [PATCH] Enhance dashboard login with UUID return and enable bot self-chat in history with {BOT} tagging --- SecondBotEvents/Commands/Info.cs | 3 ++- SecondBotEvents/Services/DataStoreService.cs | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/SecondBotEvents/Commands/Info.cs b/SecondBotEvents/Commands/Info.cs index 0ac1620..f0e1c2f 100644 --- a/SecondBotEvents/Commands/Info.cs +++ b/SecondBotEvents/Commands/Info.cs @@ -33,7 +33,8 @@ namespace SecondBotEvents.Commands ProcessAvatar(avatar); if (avataruuid == UUID.Zero) return Failure("Unknown avatar"); bool ok = master.DataStoreService.VerifyLoginToken(avataruuid, token); - return BasicReply(ok.ToString()); + if (ok) return BasicReply(avataruuid.ToString()); + return BasicReply("False"); } [About("Fetchs the current region type the bot is in")] diff --git a/SecondBotEvents/Services/DataStoreService.cs b/SecondBotEvents/Services/DataStoreService.cs index 977a4be..d5ea58f 100644 --- a/SecondBotEvents/Services/DataStoreService.cs +++ b/SecondBotEvents/Services/DataStoreService.cs @@ -1316,16 +1316,20 @@ namespace SecondBotEvents.Services { break; } - if (e.SourceID == GetClient().Self.AgentID) + /* if (e.SourceID == GetClient().Self.AgentID) { break; - } + } */ if (string.IsNullOrWhiteSpace(e.Message)) { break; } string source = "{Av}"; - if (e.SourceType == ChatSourceType.Object) + if (e.SourceID == GetClient().Self.AgentID) + { + source = "{BOT}"; + } + else if (e.SourceType == ChatSourceType.Object) { source = "{Obj}"; }