small fix
the shitty jojo reference and the umm command permission thing umm
This commit is contained in:
@@ -61,7 +61,7 @@ namespace Kehyeedra3
|
||||
|
||||
if (message.Content.ToLowerInvariant().Contains("jojo"))
|
||||
{
|
||||
var jojoke = WeebClient.DownloadString("https://api.skuldbot.uk/fun/jojoke/?raw");
|
||||
var jojoke = WeebClient.DownloadString("https://api.exsersewo.dev/jojoke/?raw");
|
||||
await Context.Channel.SendMessageAsync($"{Context.User.Mention} is that a fucksnifflerling {jojoke} reference?");
|
||||
}
|
||||
|
||||
@@ -73,19 +73,9 @@ namespace Kehyeedra3
|
||||
if (perms.Value.SendMessages == PermValue.Deny) return;
|
||||
}
|
||||
var botGuild = _bot.GetGuild(chan.GuildId).GetUser(_bot.CurrentUser.Id);
|
||||
bool exit = false;
|
||||
|
||||
botGuild.Roles.OrderByDescending(x => x.Position).ToList().ForEach(x =>
|
||||
{
|
||||
perms = chan.GetPermissionOverwrite(x);
|
||||
if (!botGuild.GetPermissions(chan).SendMessages) return;
|
||||
|
||||
if (perms.HasValue)
|
||||
{
|
||||
if (perms.Value.SendMessages == PermValue.Deny) { exit = true; return; }
|
||||
}
|
||||
});
|
||||
|
||||
if (exit) return;
|
||||
}
|
||||
|
||||
if (!(message.HasStringPrefix(Configuration.Load().Prefix, ref argPos))) return;
|
||||
|
||||
Reference in New Issue
Block a user