From 4ea998543bf34642efb51ba1e5ce48268b73cfc3 Mon Sep 17 00:00:00 2001 From: Jan-Stefan Janetzky Date: Fri, 17 Mar 2017 16:55:31 +0100 Subject: [PATCH] derps --- boot.sh | 2 +- chatCommands.js | 2 +- index.js | 3 +++ package.json | 7 ++++--- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/boot.sh b/boot.sh index 9ce8ac9..a00a004 100755 --- a/boot.sh +++ b/boot.sh @@ -2,7 +2,7 @@ export NVM_DIR="/home/gz/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm -nvm use node +nvm use default while true; do echo starting node... $(date) diff --git a/chatCommands.js b/chatCommands.js index 5178e6a..f13ab0d 100644 --- a/chatCommands.js +++ b/chatCommands.js @@ -158,7 +158,7 @@ p.run = function (o) { client.say(o.to, o.from + ": dein level: " + userLevelNames[level] + ", benötigtes level: voiced"); return true; }*/ - s.run(sbhead + o.args, function (out) { + s.run(sbhead + o.args + "+\"\"", function (out) { let con = out.console.length > 0 ? " and printed to console: " + out.console : ""; let text = (out.result + con).replace(/[\r\n\t]/g, " "); client.say(o.to, o.from + " it returned: " + (text.length > 400 ? "fuck you" : text)); diff --git a/index.js b/index.js index ef3a1a6..fe579f8 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,8 @@ "use strict"; +const Raven = require('raven'); +Raven.config('https://10749fc75fc14fc5aa6b6212adbfe9ec:c291a65aa6014bb781232e0995f7a81d@sentry.njgz.de/4').install(); + const Irc = require("irc"); const Mysql = require("mysql"); diff --git a/package.json b/package.json index 166c24d..3880c17 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,10 @@ "author": "gz", "license": "ISC", "dependencies": { - "google": "^2.0.0", - "irc": "^0.5.0", - "mysql": "^2.10.2", + "google": "^2.1.0", + "irc": "^0.5.2", + "mysql": "^2.13.0", + "raven": "^1.2.0", "sandbox": "^0.8.6" } }