2016-08-15 14:57:40 +00:00
|
|
|
|
using Discord;
|
|
|
|
|
using Discord.Commands;
|
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
2016-08-21 16:00:03 +00:00
|
|
|
|
using NadekoBot.Extensions;
|
2016-12-29 13:56:15 +00:00
|
|
|
|
using System.Threading;
|
2017-07-17 19:42:36 +00:00
|
|
|
|
using NadekoBot.Common;
|
|
|
|
|
using NadekoBot.Common.Attributes;
|
|
|
|
|
using NadekoBot.Common.Collections;
|
|
|
|
|
using NadekoBot.Modules.Searches.Common;
|
|
|
|
|
using NadekoBot.Modules.Searches.Services;
|
2017-07-21 01:04:44 +00:00
|
|
|
|
using NadekoBot.Modules.NSFW.Exceptions;
|
2017-10-09 00:52:46 +00:00
|
|
|
|
using NadekoBot.Modules.Searches.Exceptions;
|
2016-08-15 14:57:40 +00:00
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Modules.NSFW
|
|
|
|
|
{
|
2017-09-15 20:17:31 +00:00
|
|
|
|
// thanks to halitalf for adding autoboob and autobutt features :D
|
2017-07-15 16:34:34 +00:00
|
|
|
|
public class NSFW : NadekoTopLevelModule<SearchesService>
|
2016-08-15 14:57:40 +00:00
|
|
|
|
{
|
2017-02-24 16:10:44 +00:00
|
|
|
|
private static readonly ConcurrentHashSet<ulong> _hentaiBombBlacklist = new ConcurrentHashSet<ulong>();
|
2016-12-29 13:56:15 +00:00
|
|
|
|
|
2017-01-01 13:06:32 +00:00
|
|
|
|
private async Task InternalHentai(IMessageChannel channel, string tag, bool noError)
|
2016-08-15 14:57:40 +00:00
|
|
|
|
{
|
2016-11-05 23:59:21 +00:00
|
|
|
|
var rng = new NadekoRandom();
|
2017-06-29 15:58:16 +00:00
|
|
|
|
var arr = Enum.GetValues(typeof(DapiSearchType));
|
|
|
|
|
var type = (DapiSearchType)arr.GetValue(new NadekoRandom().Next(2, arr.Length));
|
2017-07-21 01:04:44 +00:00
|
|
|
|
ImageCacherObject img;
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
img = await _service.DapiSearch(tag, type, Context.Guild?.Id, true).ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
catch (TagBlacklistedException)
|
|
|
|
|
{
|
|
|
|
|
await ReplyErrorLocalized("blacklisted_tag").ConfigureAwait(false);
|
|
|
|
|
return;
|
|
|
|
|
}
|
2017-06-29 15:58:16 +00:00
|
|
|
|
|
|
|
|
|
if (img == null)
|
2017-01-03 15:10:46 +00:00
|
|
|
|
{
|
2017-01-08 13:53:14 +00:00
|
|
|
|
if (!noError)
|
2017-02-13 22:21:25 +00:00
|
|
|
|
await ReplyErrorLocalized("not_found").ConfigureAwait(false);
|
2017-01-03 15:10:46 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await channel.EmbedAsync(new EmbedBuilder().WithOkColor()
|
2017-06-29 15:58:16 +00:00
|
|
|
|
.WithImageUrl(img.FileUrl)
|
|
|
|
|
.WithDescription($"[{GetText("tag")}: {tag}]({img})"))
|
2017-01-15 12:45:14 +00:00
|
|
|
|
.ConfigureAwait(false);
|
2016-12-29 13:56:15 +00:00
|
|
|
|
}
|
2017-09-15 20:17:31 +00:00
|
|
|
|
private async Task InternalBoobs(IMessageChannel Channel)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
JToken obj;
|
|
|
|
|
obj = JArray.Parse(await _service.Http.GetStringAsync($"http://api.oboobs.ru/boobs/{new NadekoRandom().Next(0, 10330)}").ConfigureAwait(false))[0];
|
|
|
|
|
await Channel.SendMessageAsync($"http://media.oboobs.ru/{obj["preview"]}").ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
await Channel.SendErrorAsync(ex.Message).ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private async Task InternalButts(IMessageChannel Channel)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
JToken obj;
|
|
|
|
|
obj = JArray.Parse(await _service.Http.GetStringAsync($"http://api.obutts.ru/butts/{new NadekoRandom().Next(0, 4335)}").ConfigureAwait(false))[0];
|
|
|
|
|
await Channel.SendMessageAsync($"http://media.obutts.ru/{obj["preview"]}").ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
await Channel.SendErrorAsync(ex.Message).ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-29 13:56:15 +00:00
|
|
|
|
|
2017-02-11 23:33:13 +00:00
|
|
|
|
#if !GLOBAL_NADEKO
|
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
|
|
|
|
[RequireUserPermission(ChannelPermission.ManageMessages)]
|
|
|
|
|
public async Task AutoHentai(int interval = 0, string tags = null)
|
|
|
|
|
{
|
|
|
|
|
Timer t;
|
|
|
|
|
|
|
|
|
|
if (interval == 0)
|
|
|
|
|
{
|
2017-10-09 00:52:46 +00:00
|
|
|
|
if (!_service.AutoHentaiTimers.TryRemove(Context.Channel.Id, out t)) return;
|
2017-02-13 22:21:25 +00:00
|
|
|
|
|
|
|
|
|
t.Change(Timeout.Infinite, Timeout.Infinite); //proper way to disable the timer
|
2017-09-15 20:17:31 +00:00
|
|
|
|
await ReplyConfirmLocalized("stopped").ConfigureAwait(false);
|
2017-02-11 23:33:13 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (interval < 20)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
var tagsArr = tags?.Split('|');
|
|
|
|
|
|
|
|
|
|
t = new Timer(async (state) =>
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if (tagsArr == null || tagsArr.Length == 0)
|
|
|
|
|
await InternalHentai(Context.Channel, null, true).ConfigureAwait(false);
|
|
|
|
|
else
|
|
|
|
|
await InternalHentai(Context.Channel, tagsArr[new NadekoRandom().Next(0, tagsArr.Length)], true).ConfigureAwait(false);
|
|
|
|
|
}
|
2017-02-13 22:21:25 +00:00
|
|
|
|
catch
|
|
|
|
|
{
|
|
|
|
|
// ignored
|
|
|
|
|
}
|
2017-02-11 23:33:13 +00:00
|
|
|
|
}, null, interval * 1000, interval * 1000);
|
|
|
|
|
|
2017-10-09 00:52:46 +00:00
|
|
|
|
_service.AutoHentaiTimers.AddOrUpdate(Context.Channel.Id, t, (key, old) =>
|
2017-02-11 23:33:13 +00:00
|
|
|
|
{
|
|
|
|
|
old.Change(Timeout.Infinite, Timeout.Infinite);
|
|
|
|
|
return t;
|
|
|
|
|
});
|
|
|
|
|
|
2017-06-29 15:58:16 +00:00
|
|
|
|
await ReplyConfirmLocalized("autohentai_started",
|
|
|
|
|
interval,
|
2017-02-13 22:21:25 +00:00
|
|
|
|
string.Join(", ", tagsArr)).ConfigureAwait(false);
|
2017-02-11 23:33:13 +00:00
|
|
|
|
}
|
2017-09-15 20:17:31 +00:00
|
|
|
|
|
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
|
|
|
|
[RequireUserPermission(ChannelPermission.ManageMessages)]
|
|
|
|
|
public async Task AutoBoobs(int interval = 0)
|
|
|
|
|
{
|
|
|
|
|
Timer t;
|
|
|
|
|
|
|
|
|
|
if (interval == 0)
|
|
|
|
|
{
|
2017-10-09 00:52:46 +00:00
|
|
|
|
if (!_service.AutoBoobTimers.TryRemove(Context.Channel.Id, out t)) return;
|
2017-09-15 20:17:31 +00:00
|
|
|
|
|
|
|
|
|
t.Change(Timeout.Infinite, Timeout.Infinite); //proper way to disable the timer
|
|
|
|
|
await ReplyConfirmLocalized("stopped").ConfigureAwait(false);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (interval < 20)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
t = new Timer(async (state) =>
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
await InternalBoobs(Context.Channel).ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
catch
|
|
|
|
|
{
|
|
|
|
|
// ignored
|
|
|
|
|
}
|
|
|
|
|
}, null, interval * 1000, interval * 1000);
|
|
|
|
|
|
2017-10-09 00:52:46 +00:00
|
|
|
|
_service.AutoBoobTimers.AddOrUpdate(Context.Channel.Id, t, (key, old) =>
|
2017-09-15 20:17:31 +00:00
|
|
|
|
{
|
|
|
|
|
old.Change(Timeout.Infinite, Timeout.Infinite);
|
|
|
|
|
return t;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
await ReplyConfirmLocalized("started", interval).ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
|
|
|
|
[RequireUserPermission(ChannelPermission.ManageMessages)]
|
|
|
|
|
public async Task AutoButts(int interval = 0)
|
|
|
|
|
{
|
|
|
|
|
Timer t;
|
|
|
|
|
|
|
|
|
|
if (interval == 0)
|
|
|
|
|
{
|
2017-10-09 00:52:46 +00:00
|
|
|
|
if (!_service.AutoButtTimers.TryRemove(Context.Channel.Id, out t)) return;
|
2017-09-15 20:17:31 +00:00
|
|
|
|
|
|
|
|
|
t.Change(Timeout.Infinite, Timeout.Infinite); //proper way to disable the timer
|
|
|
|
|
await ReplyConfirmLocalized("stopped").ConfigureAwait(false);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (interval < 20)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
t = new Timer(async (state) =>
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
await InternalButts(Context.Channel).ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
catch
|
|
|
|
|
{
|
|
|
|
|
// ignored
|
|
|
|
|
}
|
|
|
|
|
}, null, interval * 1000, interval * 1000);
|
|
|
|
|
|
2017-10-09 00:52:46 +00:00
|
|
|
|
_service.AutoButtTimers.AddOrUpdate(Context.Channel.Id, t, (key, old) =>
|
2017-09-15 20:17:31 +00:00
|
|
|
|
{
|
|
|
|
|
old.Change(Timeout.Infinite, Timeout.Infinite);
|
|
|
|
|
return t;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
await ReplyConfirmLocalized("started", interval).ConfigureAwait(false);
|
|
|
|
|
}
|
2017-06-29 15:58:16 +00:00
|
|
|
|
#endif
|
2016-11-14 21:34:11 +00:00
|
|
|
|
|
2017-09-15 20:17:31 +00:00
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
|
|
|
|
public Task Hentai([Remainder] string tag = null) =>
|
|
|
|
|
InternalHentai(Context.Channel, tag, false);
|
|
|
|
|
|
2017-02-11 23:33:13 +00:00
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
|
|
|
|
public async Task HentaiBomb([Remainder] string tag = null)
|
|
|
|
|
{
|
2017-06-29 15:58:16 +00:00
|
|
|
|
if (!_hentaiBombBlacklist.Add(Context.Guild?.Id ?? Context.User.Id))
|
2017-02-11 23:33:13 +00:00
|
|
|
|
return;
|
|
|
|
|
try
|
|
|
|
|
{
|
2017-06-29 15:58:16 +00:00
|
|
|
|
var images = await Task.WhenAll(_service.DapiSearch(tag, DapiSearchType.Gelbooru, Context.Guild?.Id, true),
|
|
|
|
|
_service.DapiSearch(tag, DapiSearchType.Danbooru, Context.Guild?.Id, true),
|
|
|
|
|
_service.DapiSearch(tag, DapiSearchType.Konachan, Context.Guild?.Id, true),
|
|
|
|
|
_service.DapiSearch(tag, DapiSearchType.Yandere, Context.Guild?.Id, true)).ConfigureAwait(false);
|
2017-02-11 23:33:13 +00:00
|
|
|
|
|
2017-06-29 15:58:16 +00:00
|
|
|
|
var linksEnum = images?.Where(l => l != null).ToArray();
|
|
|
|
|
if (images == null || !linksEnum.Any())
|
2017-02-11 23:33:13 +00:00
|
|
|
|
{
|
2017-02-13 22:21:25 +00:00
|
|
|
|
await ReplyErrorLocalized("not_found").ConfigureAwait(false);
|
2017-02-11 23:33:13 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-29 15:58:16 +00:00
|
|
|
|
await Context.Channel.SendMessageAsync(string.Join("\n\n", linksEnum.Select(x => x.FileUrl))).ConfigureAwait(false);
|
2017-02-11 23:33:13 +00:00
|
|
|
|
}
|
|
|
|
|
finally
|
|
|
|
|
{
|
2017-06-29 15:58:16 +00:00
|
|
|
|
_hentaiBombBlacklist.TryRemove(Context.Guild?.Id ?? Context.User.Id);
|
2017-02-11 23:33:13 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2017-06-29 15:58:16 +00:00
|
|
|
|
|
2016-10-05 03:09:44 +00:00
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
2017-01-01 12:26:17 +00:00
|
|
|
|
public Task Yandere([Remainder] string tag = null)
|
2017-06-29 15:58:16 +00:00
|
|
|
|
=> InternalDapiCommand(tag, DapiSearchType.Yandere, false);
|
2016-08-15 14:57:40 +00:00
|
|
|
|
|
2016-12-25 15:26:13 +00:00
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
2017-01-01 12:26:17 +00:00
|
|
|
|
public Task Konachan([Remainder] string tag = null)
|
2017-06-29 15:58:16 +00:00
|
|
|
|
=> InternalDapiCommand(tag, DapiSearchType.Konachan, false);
|
2017-02-11 15:26:04 +00:00
|
|
|
|
|
2016-10-05 03:09:44 +00:00
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
2017-06-29 15:58:16 +00:00
|
|
|
|
public Task E621([Remainder] string tag = null)
|
|
|
|
|
=> InternalDapiCommand(tag, DapiSearchType.E621, false);
|
2017-02-06 06:53:27 +00:00
|
|
|
|
|
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
|
|
|
|
public Task Rule34([Remainder] string tag = null)
|
2017-06-29 15:58:16 +00:00
|
|
|
|
=> InternalDapiCommand(tag, DapiSearchType.Rule34, false);
|
2017-02-06 06:53:27 +00:00
|
|
|
|
|
2017-02-02 03:58:39 +00:00
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
2017-06-29 15:58:16 +00:00
|
|
|
|
public Task Danbooru([Remainder] string tag = null)
|
|
|
|
|
=> InternalDapiCommand(tag, DapiSearchType.Danbooru, false);
|
2017-02-02 04:02:37 +00:00
|
|
|
|
|
2017-02-02 03:58:39 +00:00
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
|
|
|
|
public Task Gelbooru([Remainder] string tag = null)
|
2017-06-29 15:58:16 +00:00
|
|
|
|
=> InternalDapiCommand(tag, DapiSearchType.Gelbooru, false);
|
2017-02-02 03:58:39 +00:00
|
|
|
|
|
2016-10-05 03:09:44 +00:00
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
2017-01-01 12:26:17 +00:00
|
|
|
|
public async Task Boobs()
|
2016-08-15 14:57:40 +00:00
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
JToken obj;
|
2017-09-10 21:44:24 +00:00
|
|
|
|
obj = JArray.Parse(await _service.Http.GetStringAsync($"http://api.oboobs.ru/boobs/{new NadekoRandom().Next(0, 10330)}").ConfigureAwait(false))[0];
|
2017-02-13 22:21:25 +00:00
|
|
|
|
await Context.Channel.SendMessageAsync($"http://media.oboobs.ru/{obj["preview"]}").ConfigureAwait(false);
|
2016-08-15 14:57:40 +00:00
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
2017-01-01 12:26:17 +00:00
|
|
|
|
await Context.Channel.SendErrorAsync(ex.Message).ConfigureAwait(false);
|
2016-08-15 14:57:40 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-05 03:09:44 +00:00
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
2017-01-01 12:26:17 +00:00
|
|
|
|
public async Task Butts()
|
2016-08-15 14:57:40 +00:00
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
JToken obj;
|
2017-09-10 21:44:24 +00:00
|
|
|
|
obj = JArray.Parse(await _service.Http.GetStringAsync($"http://api.obutts.ru/butts/{new NadekoRandom().Next(0, 4335)}").ConfigureAwait(false))[0];
|
2017-02-13 22:21:25 +00:00
|
|
|
|
await Context.Channel.SendMessageAsync($"http://media.obutts.ru/{obj["preview"]}").ConfigureAwait(false);
|
2016-08-15 14:57:40 +00:00
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
2017-01-01 12:26:17 +00:00
|
|
|
|
await Context.Channel.SendErrorAsync(ex.Message).ConfigureAwait(false);
|
2016-08-15 14:57:40 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-07-21 01:04:44 +00:00
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
|
|
|
|
[RequireContext(ContextType.Guild)]
|
|
|
|
|
public async Task NsfwTagBlacklist([Remainder] string tag = null)
|
|
|
|
|
{
|
|
|
|
|
if (string.IsNullOrWhiteSpace(tag))
|
|
|
|
|
{
|
|
|
|
|
var blTags = _service.GetBlacklistedTags(Context.Guild.Id);
|
|
|
|
|
await Context.Channel.SendConfirmAsync(GetText("blacklisted_tag_list"),
|
|
|
|
|
blTags.Any()
|
|
|
|
|
? string.Join(", ", blTags)
|
|
|
|
|
: "-").ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
tag = tag.Trim().ToLowerInvariant();
|
|
|
|
|
var added = _service.ToggleBlacklistedTag(Context.Guild.Id, tag);
|
|
|
|
|
|
2017-09-15 20:17:31 +00:00
|
|
|
|
if (added)
|
2017-07-21 01:04:44 +00:00
|
|
|
|
await ReplyConfirmLocalized("blacklisted_tag_add", tag).ConfigureAwait(false);
|
|
|
|
|
else
|
|
|
|
|
await ReplyConfirmLocalized("blacklisted_tag_remove", tag).ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-11 17:30:02 +00:00
|
|
|
|
[NadekoCommand, Usage, Description, Aliases]
|
|
|
|
|
[RequireContext(ContextType.Guild)]
|
|
|
|
|
[OwnerOnly]
|
|
|
|
|
public Task NsfwClearCache()
|
|
|
|
|
{
|
|
|
|
|
_service.ClearCache();
|
|
|
|
|
return Context.Channel.SendConfirmAsync("👌");
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-29 15:58:16 +00:00
|
|
|
|
public async Task InternalDapiCommand(string tag, DapiSearchType type, bool forceExplicit)
|
2016-08-15 14:57:40 +00:00
|
|
|
|
{
|
2017-07-21 01:04:44 +00:00
|
|
|
|
ImageCacherObject imgObj;
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
imgObj = await _service.DapiSearch(tag, type, Context.Guild?.Id, forceExplicit).ConfigureAwait(false);
|
|
|
|
|
}
|
|
|
|
|
catch (TagBlacklistedException)
|
|
|
|
|
{
|
|
|
|
|
await ReplyErrorLocalized("blacklisted_tag").ConfigureAwait(false);
|
|
|
|
|
return;
|
|
|
|
|
}
|
2017-02-24 16:10:44 +00:00
|
|
|
|
|
2017-06-29 15:58:16 +00:00
|
|
|
|
if (imgObj == null)
|
2017-03-03 02:59:12 +00:00
|
|
|
|
await ReplyErrorLocalized("not_found").ConfigureAwait(false);
|
2017-02-24 16:10:44 +00:00
|
|
|
|
else
|
2017-07-15 03:04:16 +00:00
|
|
|
|
{
|
|
|
|
|
var embed = new EmbedBuilder().WithOkColor()
|
2017-06-29 15:58:16 +00:00
|
|
|
|
.WithDescription($"{Context.User} [{tag ?? "url"}]({imgObj}) ")
|
2017-07-15 03:04:16 +00:00
|
|
|
|
.WithFooter(efb => efb.WithText(type.ToString()));
|
|
|
|
|
|
|
|
|
|
if (Uri.IsWellFormedUriString(imgObj.FileUrl, UriKind.Absolute))
|
|
|
|
|
embed.WithImageUrl(imgObj.FileUrl);
|
|
|
|
|
else
|
|
|
|
|
_log.Error($"Image link from {type} is not a proper Url: {imgObj.FileUrl}");
|
|
|
|
|
|
|
|
|
|
await Context.Channel.EmbedAsync(embed).ConfigureAwait(false);
|
|
|
|
|
}
|
2017-02-24 16:10:44 +00:00
|
|
|
|
}
|
2017-01-22 20:20:23 +00:00
|
|
|
|
}
|
2016-12-25 15:26:13 +00:00
|
|
|
|
}
|