Names of the people who dm the bot now properly show up when .fwmsgs is enabled

This commit is contained in:
Kwoth 2016-11-06 20:46:17 +01:00
parent bffb991264
commit 2248298bc9
3 changed files with 2 additions and 4 deletions

View File

@ -80,7 +80,7 @@ namespace NadekoBot.Modules.Administration
{
var firstOwnerChannel = ownerChannels.First();
if (firstOwnerChannel.Recipient.Id != msg.Author.Id)
try { await firstOwnerChannel.SendMessageAsync(msg.Content).ConfigureAwait(false); } catch { }
try { await firstOwnerChannel.SendMessageAsync(toSend).ConfigureAwait(false); } catch { }
}
}
}

View File

@ -169,8 +169,6 @@ namespace NadekoBot.Modules.Utility
{
var matches = emojiFinder.Matches(emojis);
var result = string.Join("\n", matches.Cast<Match>()
.Select(m => $"`Name:` {m.Groups["name"]} `Link:` http://discordapp.com/api/emojis/{m.Groups["id"]}.png"));

View File

@ -7,7 +7,7 @@
"emitEntryPoint": true,
"allowUnsafe": true,
"compile": {
"exclude": [ "data" ]
"exclude": [ "data", "credentials.json", "credentials_example.json" ]
},
"copyToOutput": {
"include": [ "data" ],