public async Task FakeVerify(IGuildUser bot, IGuildUser fake) { var a = _botVer.CreateNewVerification(bot.Id, fake.Id); if (a == null) { return; } await ReplyAsync(a); }
public async Task DebugCmd(IGuildUser bot) { if (!bot.IsBot) { await ReplyAsync($"Very funny, {Context.User.Mention}. You can only verify bots."); return; } if (_botVer.IsVerified(bot.Id)) { await ReplyAsync($"{bot.Mention} is already verified."); return; } if (_botVer.BotVerificationExists(bot.Id, Context.User.Id)) { var verification = _botVer.SearchByPredicate(d => d.BotId == bot.Id && d.OwnerId == Context.User.Id && d.Verified == false).FirstOrDefault(); if (verification == null) { await ReplyAsync($"Something went wrong with your verification. Please contact <@!182941761801420802>."); return; } await ReplyAsync($@"[NOT-VALIDATION] {Context.User.Mention}, to verify your bot, make it send a message that **mentions you** and includes the **following code**: `{verification.VerificationString}` If you have a feature that would allow others to validate your bot instead of you, include [NOT-VALIDATION] in such message."); return; } var code = _botVer.CreateNewVerification(bot.Id, Context.User.Id); if (code == null) { await ReplyAsync($"Something went wrong with your verification. Please contact <@!182941761801420802>."); return; } await ReplyAsync($@"[NOT-VALIDATION] {Context.User.Mention}, to verify your bot, make it send a message that **mentions you** and includes the **following code**: `{code}` If you have a feature that would allow others to validate your bot instead of you, include [NOT-VALIDATION] in such message."); }