Skip to content

Commit

Permalink
Update Tools-Package
Browse files Browse the repository at this point in the history
🐛 Fixed a bug where version check would crash the bot
  • Loading branch information
AstroGD committed Nov 26, 2020
1 parent 8f82c09 commit 56d9c48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord-accept-rules-bot",
"version": "2.1.1",
"version": "2.1.2",
"description": "Let your Members accept the rules first and then give them a role",
"main": "main.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions tools/tools.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Tools js
* @version 2.0.1
* @version 2.0.2
* @author AstroGD - https://www.astrogd.eu
* @since 2018-07-15
*/
var scriptName = "tools.js",
version = "2.0.1",
version = "2.0.2",
mainframeMinVersion = "2.0.0";

module.exports = function (Discord, client, fs, dir, mainframeversion) {
Expand Down Expand Up @@ -205,7 +205,7 @@ module.exports = function (Discord, client, fs, dir, mainframeversion) {

function checkToolsVersion() {
if (isVersionLower(VERSIONINFO.packages.tools, version)) {
tools.log(scriptName, `Theres a new version available for Mainframe Tools (${version} --> ${VERSIONINFO.packages.tools})`, 2);
log(scriptName, `Theres a new version available for Mainframe Tools (${version} --> ${VERSIONINFO.packages.tools})`, 2);
return true;
}

Expand Down

0 comments on commit 56d9c48

Please sign in to comment.