Skip to content

Commit

Permalink
Cleaned up the debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
MythicalCuddles committed Feb 17, 2019
1 parent b8eab58 commit c88fdb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions DiscordBot/Database/DatabaseActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ public static (MySqlDataReader,MySqlConnection) ExecuteReader(string query)
{
MySqlDataReader dr = cmd.ExecuteReader();

new LogMessage(LogSeverity.Info, "Database Command",
"Command: " + cmd.CommandText).PrintToConsole();
//new LogMessage(LogSeverity.Info, "Database Command", "Command: " + cmd.CommandText).PrintToConsole();

return (dr, conn);
}
Expand Down
4 changes: 0 additions & 4 deletions DiscordBot/DiscordBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,10 @@ private static async Task Disconnected(Exception exception)

private static async Task MessageReceived(SocketMessage messageParam)
{
Console.WriteLine("1");
if (!(messageParam is SocketUserMessage message)) return; // If the message is null, return.
Console.WriteLine("1.1");
if (message.Author.IsBot) return; // If the message was posted by a BOT account, return.
Console.WriteLine("1.2");
if (message.Author.IsUserIgnoredByBot() && message.Author.Id != Configuration.Load().Developer) { return; } // If the bot is ignoring the user AND the user NOT Melissa.

Console.WriteLine("2");
// If the message came from somewhere that is not a text channel -> Private Message
if (!(messageParam.Channel is ITextChannel))
{
Expand Down

0 comments on commit c88fdb0

Please sign in to comment.