0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-22 19:25:16 +00:00

Remove the "Console log:" from discord logs

This commit is contained in:
Sanae 2022-06-20 12:53:30 -06:00
parent 5d78814620
commit 60249feef8

View file

@ -37,7 +37,7 @@ public class DiscordBot {
try { try {
if (DiscordClient != null && LogChannel != null) { if (DiscordClient != null && LogChannel != null) {
await DiscordClient.SendMessageAsync(LogChannel, await DiscordClient.SendMessageAsync(LogChannel,
$"Console log:```{Logger.PrefixNewLines(text, $"{level} [{source}]")}```"); $"```{Logger.PrefixNewLines(text, $"{level} [{source}]")}```");
} }
} catch (Exception e) { } catch (Exception e) {
// don't log again, it'll just stack overflow the server! // don't log again, it'll just stack overflow the server!