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);
|
ProcessAvatar(avatar);
|
||||||
if (avataruuid == UUID.Zero) return Failure("Unknown avatar");
|
if (avataruuid == UUID.Zero) return Failure("Unknown avatar");
|
||||||
bool ok = master.DataStoreService.VerifyLoginToken(avataruuid, token);
|
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")]
|
[About("Fetchs the current region type the bot is in")]
|
||||||
|
|
|
||||||
|
|
@ -1316,16 +1316,20 @@ namespace SecondBotEvents.Services
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (e.SourceID == GetClient().Self.AgentID)
|
/* if (e.SourceID == GetClient().Self.AgentID)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
} */
|
||||||
if (string.IsNullOrWhiteSpace(e.Message))
|
if (string.IsNullOrWhiteSpace(e.Message))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
string source = "{Av}";
|
string source = "{Av}";
|
||||||
if (e.SourceType == ChatSourceType.Object)
|
if (e.SourceID == GetClient().Self.AgentID)
|
||||||
|
{
|
||||||
|
source = "{BOT}";
|
||||||
|
}
|
||||||
|
else if (e.SourceType == ChatSourceType.Object)
|
||||||
{
|
{
|
||||||
source = "{Obj}";
|
source = "{Obj}";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue