public override PreconditionResult CheckPermissions(OnMessageReceivedArgs e) { PreconditionResult res = new PreconditionResult(); if (e.ChatMessage.IsModerator || e.ChatMessage.IsBroadcaster) { res.Successfully(); } else { res.Unsuccessful("Нет доступа!"); } return(res); }
public override PreconditionResult CheckPermissions(OnMessageReceivedArgs e) { PreconditionResult res = new PreconditionResult(); if (e.ChatMessage.UserId == "420174531") { res.Successfully(); } else { res.Unsuccessful("Эта команда только для Sayary_NULL"); } return(res); }
public override PreconditionResult CheckPermissions(OnMessageReceivedArgs e) { PreconditionResult res = new PreconditionResult(); if (ConstVaribtls.IsDebuge) { res.Successfully(); return(res); } if (ConstVaribtls.StartBot) { res.Successfully(); } else { res.Unsuccessful("Бот выключен!"); } return(res); }