mirror of
https://github.com/Jetsparrow/antiantiswearingbot.git
synced 2026-01-21 07:16:08 +03:00
12 lines
305 B
C#
12 lines
305 B
C#
namespace Jetsparrow.Aasb.Commands;
|
|
public class IdCommand : IChatCommand
|
|
{
|
|
public bool Authorize => true;
|
|
public string Execute(CommandContext cmd)
|
|
{
|
|
if (cmd.ChatId == cmd.SenderId)
|
|
return $"userid: `{cmd.SenderId}`";
|
|
return $"chatid: `{cmd.ChatId}`";
|
|
}
|
|
}
|