From cc6f5b9687ee31b3492f66545b2f8f13cadb58e1 Mon Sep 17 00:00:00 2001 From: henne Date: Tue, 19 Jul 2016 11:33:57 +0200 Subject: [PATCH] neuer name und so --- package.json | 12 ++++-------- src/ctdo.js | 4 +--- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 8bbd3ab..a7076e2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "hubot-raumgirl-new", - "description": "ctdo raumgirl", - "version": "0.0.6", + "name": "hubot-edgar-snodon", + "description": "ctdo raumbot", + "version": "0.0.7", "author": "henne@ctdo.de", "license": "MIT", @@ -9,11 +9,7 @@ "repository": { "type": "git", - "url": "git://github.com/hubot-scripts/hubot-raumgirl-new.git" - }, - - "bugs": { - "url": "https://github.com/hubot-scripts/hubot-raumgirl-new/issues" + "url": "git@repos.ctdo.de:ctdo/edgar_snodon.git" }, "dependencies": { diff --git a/src/ctdo.js b/src/ctdo.js index 3a73e35..30b0027 100644 --- a/src/ctdo.js +++ b/src/ctdo.js @@ -2,6 +2,7 @@ const net = require('net'); const myName = process.env['HUBOT_IRC_NICK']; module.exports = function(robot) { + robot.brain.data.topics = {} // old stuff // lampel function setLampel(r,ge,gr) { @@ -43,9 +44,6 @@ module.exports = function(robot) { }); // topic robot.adapter.bot.addListener('topic', function(channel, topic) { - if(typeof(robot.brain.data.topics) !== 'Object') { - robot.brain.data.topics = {} - } robot.brain.data.topics[channel] = topic setTopic(topic); });