commit 178f5459c5aa3ff735d03b6d01d058970abadfb4
parent c1e94e8b56bcf2314060e9209b8751032eed8e70
Author: Marcel Radzio <marcel@radzio-sh.de>
Date: Sat, 12 Dec 2015 18:23:05 +0100
add License Info
Diffstat:
4 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/LICENSE.md b/LICENSE.md
@@ -0,0 +1,3 @@
+This Project is under the [DBAD PUBLIC LICENSE](https://github.com/philsturgeon/dbad/blob/master/LICENSE-en.md "DON'T BE A DICK PUBLIC LICENSE") and the [DBADJ PUBLIC LICENSE](https://github.com/philsturgeon/dbad/blob/master/LICENSE-en.md "Don't Be a Jerk: The Open Source Software License").
+
+Other §2 in this project than in the DBAD §2: "If you become rich through modifications, related works/services, or supporting the original work, share the love. Only a dick would make loads off this work and not buy the original work's creator(s) a Club Mate." :) (PIzza is also ok)
+\ No newline at end of file
diff --git a/handlers/irc.js b/handlers/irc.js
@@ -57,6 +57,10 @@ module.exports = {
// console.log(from + ' => ' + to + ': ' + message);
bot.say(from, "The Hackerpace of Norlab e.V. is usually opened every Monday at 6pm o'clock.");
}
+ if (message == "!source"){
+ // console.log(from + ' => ' + to + ': ' + message);
+ bot.say(from, "You can find the Source of this bot at https://github.com/MTRNord/nordlab-hackerspace-door");
+ }
if (message == "!klassiker"){
// console.log(from + ' => ' + to + ': ' + message);
bot.say(to, "Für mehr oder weniger hilfreiche Kommentare den klassiker fragen.");
@@ -65,6 +69,18 @@ module.exports = {
// console.log(from + ' => ' + to + ': ' + message);
bot.say(to, "REALLY??? DO IT ON YOUR OWN!! I am NOT your Maid!!");
}
+ if (message == "!stina"){
+ // console.log(from + ' => ' + to + ': ' + message);
+ bot.say(to, "Stina liebt unzielgerichteten Unsinn *lach*");
+ }
+ if (message == "!afk"){
+ // console.log(from + ' => ' + to + ': ' + message);
+ bot.say(to, from + " is now afk.");
+ }
+ if (message == "!alone"){
+ // console.log(from + ' => ' + to + ': ' + message);
+ bot.say(to, from + " is now alone.");
+ }
if (message == "!doorstatus"){
request.get('http://www.nordlab-ev.de/doorstate/status.txt', function (error, response, body) {
if (!error && response.statusCode == 200) {
diff --git a/main.js b/main.js
@@ -46,11 +46,11 @@ request.get('http://www.nordlab-ev.de/doorstate/status.txt', function (error, re
var rl = require("readline").createInterface({
input: process.stdin,
output: process.stdout
- });
+ }).setMaxListeners(0);
rl.on("SIGINT", function () {
process.emit("SIGINT");
- });
+ }).setMaxListeners(0);
}
process.on("SIGINT", function () {
diff --git a/package.json b/package.json
@@ -26,6 +26,6 @@
},
"preferGlobal": false,
"private": true,
- "license": "MIT"
+ "license": "SEE LICENSE IN LICENSE.md"
}
\ No newline at end of file