Tag: twitch

禁止词语filter(tmi.js)

所以我一直在努力做这个工作大概3个小时,而且我几乎放弃了。 我目前的代码是: var tmi = require('tmi.js'); var linksDisallowed = ["http://", "https://", ".dk"]; var options = { options: { debug: true }, connection: { cluster: "aws", reconnect: true }, identity: { username: "botstormen", password: "**CENSORED FOR SECURITY REASONS**" }, channels: ["dunkstormen"] }; var client = new tmi.client(options); client.connect(); client.on('connected', function(adress, port) { client.action("dunkstormen", "joinede chatten og […]

Nodejs jQuery需要jsdom

$.getJSON('https://api.twitch.tv/kraken/channels/' + SLoppierKitty7, function(channel) { if (channel["stream"] == null) { var live ="no" } else { var live ="yes" } 这是我的代码,但是当我运行它我得到以下错误 E:\ sloppers bot \ node_modules \ jQuery \ lib \ node -jquery.js:5 window = require('jsdom')。jsdom()。createWindow(); ^ TypeError:require(…)。jsdom(…)。createWindow不是E:\ create(E:\ Sloppers bot \ node_modules \ jQuery \ lib \ node-jquery.js:5:39) Sloppers bot \ node_modules \ jQuery […]