neuer name und so
This commit is contained in:
parent
13a16dc3cb
commit
cc6f5b9687
12
package.json
12
package.json
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "hubot-raumgirl-new",
|
"name": "hubot-edgar-snodon",
|
||||||
"description": "ctdo raumgirl",
|
"description": "ctdo raumbot",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"author": "henne@ctdo.de",
|
"author": "henne@ctdo.de",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
||||||
|
@ -9,11 +9,7 @@
|
||||||
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/hubot-scripts/hubot-raumgirl-new.git"
|
"url": "git@repos.ctdo.de:ctdo/edgar_snodon.git"
|
||||||
},
|
|
||||||
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/hubot-scripts/hubot-raumgirl-new/issues"
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -2,6 +2,7 @@ const net = require('net');
|
||||||
|
|
||||||
const myName = process.env['HUBOT_IRC_NICK'];
|
const myName = process.env['HUBOT_IRC_NICK'];
|
||||||
module.exports = function(robot) {
|
module.exports = function(robot) {
|
||||||
|
robot.brain.data.topics = {}
|
||||||
// old stuff
|
// old stuff
|
||||||
// lampel
|
// lampel
|
||||||
function setLampel(r,ge,gr) {
|
function setLampel(r,ge,gr) {
|
||||||
|
@ -43,9 +44,6 @@ module.exports = function(robot) {
|
||||||
});
|
});
|
||||||
// topic
|
// topic
|
||||||
robot.adapter.bot.addListener('topic', function(channel, 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
|
robot.brain.data.topics[channel] = topic
|
||||||
setTopic(topic);
|
setTopic(topic);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue