log command no longer mentions

This commit is contained in:
Master Kwoth 2016-05-19 19:51:33 +02:00
parent 60af7ba2dc
commit 4e249533b0
2 changed files with 6 additions and 4 deletions

View File

@ -303,5 +303,7 @@ namespace NadekoBot.Extensions
/// <returns>Merged bitmap</returns> /// <returns>Merged bitmap</returns>
public static async Task<Bitmap> MergeAsync(this IEnumerable<Image> images, int reverseScaleFactor = 1) => public static async Task<Bitmap> MergeAsync(this IEnumerable<Image> images, int reverseScaleFactor = 1) =>
await Task.Run(() => images.Merge(reverseScaleFactor)).ConfigureAwait(false); await Task.Run(() => images.Merge(reverseScaleFactor)).ConfigureAwait(false);
public static string Unmention(this string str) => str.Replace("@", "ම");
} }
} }

View File

@ -168,7 +168,7 @@ namespace NadekoBot.Modules.Administration.Commands
return; return;
await ch.SendMessage( await ch.SendMessage(
$@"🕔`{prettyCurrentTime}` **New Message** `#{e.Channel.Name}` $@"🕔`{prettyCurrentTime}` **New Message** `#{e.Channel.Name}`
👤`{e.User?.ToString() ?? ("NULL")}` {e.Message.Text}").ConfigureAwait(false); 👤`{e.User?.ToString() ?? ("NULL")}` {e.Message.Text.Unmention()}").ConfigureAwait(false);
} }
catch { } catch { }
} }
@ -183,7 +183,7 @@ $@"🕔`{prettyCurrentTime}` **New Message** `#{e.Channel.Name}`
return; return;
await ch.SendMessage( await ch.SendMessage(
$@"🕔`{prettyCurrentTime}` **Message** 🚮 `#{e.Channel.Name}` $@"🕔`{prettyCurrentTime}` **Message** 🚮 `#{e.Channel.Name}`
👤`{e.User?.ToString() ?? ("NULL")}` {e.Message.Text}").ConfigureAwait(false); 👤`{e.User?.ToString() ?? ("NULL")}` {e.Message.Text.Unmention()}").ConfigureAwait(false);
} }
catch { } catch { }
} }
@ -199,8 +199,8 @@ $@"🕔`{prettyCurrentTime}` **Message** 🚮 `#{e.Channel.Name}`
await ch.SendMessage( await ch.SendMessage(
$@"🕔`{prettyCurrentTime}` **Message** 📝 `#{e.Channel.Name}` $@"🕔`{prettyCurrentTime}` **Message** 📝 `#{e.Channel.Name}`
👤`{e.User?.ToString() ?? ("NULL")}` 👤`{e.User?.ToString() ?? ("NULL")}`
`Old:` {e.Before.Text} `Old:` {e.Before.Text.Unmention()}
`New:` {e.After.Text}").ConfigureAwait(false); `New:` {e.After.Text.Unmention()}").ConfigureAwait(false);
} }
catch { } catch { }
} }