|
|
@ -61,7 +61,7 @@ namespace Kehyeedra3 |
|
|
|
|
|
|
|
|
|
|
|
if (message.Content.ToLowerInvariant().Contains("jojo")) |
|
|
|
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?"); |
|
|
|
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; |
|
|
|
if (perms.Value.SendMessages == PermValue.Deny) return; |
|
|
|
} |
|
|
|
} |
|
|
|
var botGuild = _bot.GetGuild(chan.GuildId).GetUser(_bot.CurrentUser.Id); |
|
|
|
var botGuild = _bot.GetGuild(chan.GuildId).GetUser(_bot.CurrentUser.Id); |
|
|
|
bool exit = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
botGuild.Roles.OrderByDescending(x => x.Position).ToList().ForEach(x => |
|
|
|
if (!botGuild.GetPermissions(chan).SendMessages) return; |
|
|
|
{ |
|
|
|
|
|
|
|
perms = chan.GetPermissionOverwrite(x); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (perms.HasValue) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (perms.Value.SendMessages == PermValue.Deny) { exit = true; return; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (exit) return; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!(message.HasStringPrefix(Configuration.Load().Prefix, ref argPos))) return; |
|
|
|
if (!(message.HasStringPrefix(Configuration.Load().Prefix, ref argPos))) return; |
|
|
|