add GetDisplayName as a command
This commit is contained in:
parent
851328c74e
commit
51f85df0ea
1 changed files with 16 additions and 0 deletions
|
|
@ -165,6 +165,22 @@ namespace SecondBotEvents.Commands
|
||||||
return BasicReply(reply.Value.AboutText.ToString());
|
return BasicReply(reply.Value.AboutText.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[About("Requests the given avatars display name")]
|
||||||
|
[ReturnHints("display name if set or ?")]
|
||||||
|
[ReturnHintsFailure("Invaild avatar uuid")]
|
||||||
|
[ReturnHints("Requesting avatar details [Retry later]")]
|
||||||
|
[ArgHints("avatar", "Who are we getting the profile about of", "AVATAR")]
|
||||||
|
[CmdTypeGet()]
|
||||||
|
public object GetDisplayName(string avatar)
|
||||||
|
{
|
||||||
|
ProcessAvatar(avatar);
|
||||||
|
if (avataruuid == UUID.Zero)
|
||||||
|
{
|
||||||
|
return Failure("Invaild avatar uuid", [avatar]);
|
||||||
|
}
|
||||||
|
return BasicReply(master.DataStoreService.GetDisplayName(avataruuid));
|
||||||
|
}
|
||||||
|
|
||||||
[About("Requests the bot updates its about me")]
|
[About("Requests the bot updates its about me")]
|
||||||
[ReturnHints("ok")]
|
[ReturnHints("ok")]
|
||||||
[ReturnHints("Requesting avatar details [Retry later]")]
|
[ReturnHints("Requesting avatar details [Retry later]")]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue