var settings = {
channels : ["#channelname"],
server : "irc.twitch.tv",
port: 6667,
secure: false,
nick : "myBot",
password : "oauth:numbers"
}
var irc = require("irc");
var bot = new irc.Client(settings.server, settings.nick, {
channels: [settings.channels + " " + settings.password],
debug: false,
password: settings.password,
username: settings.nick
});
bot.say(settings.channels, "I'm here!");
console.log("Connected");
这昨天对我有用,但现在它没有显示机器人甚至在频道中。
在命令行中,我使用节点 scriptname.js 启动脚本,它显示“已连接”。
我的配置错了吗?
有时它连接,有时它不连接。以下是运行时的机器人值: