Enhance dashboard login with UUID return and enable bot self-chat in history with {BOT} tagging
This commit is contained in:
parent
5627b66229
commit
414ac7751b
2 changed files with 9 additions and 4 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
|
|
@ -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}";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue