From d905fe7af476eeb3a17d26b62742d04598f0698c Mon Sep 17 00:00:00 2001 From: Benjamin Hoffmeyer Date: Fri, 11 Aug 2017 19:48:02 -0400 Subject: [PATCH] 0.0.4 (#94) * Stop the muppets spamming !stats Its really annoying me, can't stand it anymore. * Remove comment for uneeded code If for some weird reason it turns out we need this, this commit can always be reverted. * Open DM's correctly for !stats I made a newb mistake, man its been a bit since I've made anything for MB, * Delete !stats command message [MUST MINIMIZE SPAM] In yet another line of mistakes I didn't consider deleting the command after it was sent like a fucking idiot. * Update package version and info's inside it. * Delete the !stats command message the proper way The former way is for bulk delete, which needs more than one message to delete. --- Commands/Commands/utils.js | 2 +- package.json | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Commands/Commands/utils.js b/Commands/Commands/utils.js index d5a1a1c..7bba966 100644 --- a/Commands/Commands/utils.js +++ b/Commands/Commands/utils.js @@ -87,7 +87,7 @@ commands.stats = { }, fields: field }).catch(bugsnag.notify) // Send Message to DM error - }).catch(bugsnag.notify) // Error opening DM channel + }).then(msg.delete()).catch(bugsnag.notify) // Error opening DM channel }).catch(e => { msg.reply('an unexpected error occured while getting your stats, try again later.') console.error(e) diff --git a/package.json b/package.json index 41eb622..018a0f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord-feedback", - "version": "0.0.3", + "version": "0.0.4", "description": "Bot for the Discord Feedback server", "main": "index.js", "scripts": { @@ -15,7 +15,9 @@ }, "maintainers": [ { - "name": "Benjamin Hoffmeyer (TheDoctorsLife)" + "name": "Benjamin Hoffmeyer (TheDoctorsLife)", + "email": "admin@doc.tors.life", + "url": "https://doc.tors.life" } ], "author": "Remco Jongschaap ",