diff --git a/.gitignore b/.gitignore index c8f3b24..e664b77 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ obj/ /ChaosBot/bin/ /ChaosBot/obj/ .idea/ +/ChaosBot/appsettings.json \ No newline at end of file diff --git a/ChaosBot/Discord/Services/CommandHandler.cs b/ChaosBot/Discord/Services/CommandHandler.cs index 1a97231..7da71bf 100644 --- a/ChaosBot/Discord/Services/CommandHandler.cs +++ b/ChaosBot/Discord/Services/CommandHandler.cs @@ -85,7 +85,8 @@ namespace ChaosBot.Discord.Services return; } - await context.Channel.SendMessageAsync($"Sorry, {context.User.Username}... something went wrong -> [{result}]!"); + _logger.Warn($"{context.User.Username} attempted to access {command.Value.Name} and was denied -> [{result}]"); + await context.Channel.SendMessageAsync($"Sorry, {context.User.Username}, that command won't work for you.!"); } catch (Exception ex) { diff --git a/ChaosBot/appsettings.json b/ChaosBot/appsettings.json index a0bb373..614b027 100644 --- a/ChaosBot/appsettings.json +++ b/ChaosBot/appsettings.json @@ -4,10 +4,8 @@ "Version": "1.0" }, "Discord": { - "Secret": "TPtJeNzPXPM0vptm3igbh8_G3KEfbPdA", - "ClientID": "717523478890414090", - "Token": "NzE3NTIzNDc4ODkwNDE0MDkw.XtbkDw.RpsISqttv27m2Pknq3c5nEVvXWg", - "Prefix": "!" + "Token": "NzE3ODM3Njg5Mzk0ODIzMjYy.XtgIew.JWUjvMDSzQT_a36D98CTrtb5lfI", + "Prefix": "?" }, "NLog": { "extensions": {