TreZc0 / kiio-podcast

Podcast NodeCG Bundle with Discord Voice Overlay
Other
3 stars 3 forks source link

TypeError: Cannot read property 'token' of null #1

Open ryantheleach opened 5 years ago

ryantheleach commented 5 years ago

Trying this and nodecg for the first time, some usage instructions in the readme would be nice.

I'm guessing I need to configure a discord token somewhere.

info: [nodecg/lib/server] Starting NodeCG 1.3.0 (Running on Node.js v10.15.0)
warn: [nodecg/lib/server/extensions] Failed to mount kiio-podcast extension:
 TypeError: Cannot read property 'token' of null
    at Object.<anonymous> (C:\Users\ryant\nodecg\bundles\kiio-podcast\extension\discord.js:16:46)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at module.exports (C:\Users\ryant\nodecg\bundles\kiio-podcast\extension\index.js:12:2)
    at _loadExtension (C:\Users\ryant\nodecg\lib\server\extensions.js:102:37)
    at EventEmitter.module.exports.init (C:\Users\ryant\nodecg\lib\server\extensions.js:32:6)
    at EventEmitter.module.exports.start (C:\Users\ryant\nodecg\lib\server\index.js:290:19)
    at Object.<anonymous> (C:\Users\ryant\nodecg\index.js:57:8)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Command.program.command.description.action (C:\Users\ryant\AppData\Roaming\npm\node_modules\nodecg-cli\commands\start.js:12:5)
    at Command.listener (C:\Users\ryant\AppData\Roaming\npm\node_modules\nodecg-cli\node_modules\commander\index.js:315:8)
    at Command.emit (events.js:182:13)
    at Command.parseArgs (C:\Users\ryant\AppData\Roaming\npm\node_modules\nodecg-cli\node_modules\commander\index.js:654:12)
    at Command.parse (C:\Users\ryant\AppData\Roaming\npm\node_modules\nodecg-cli\node_modules\commander\index.js:474:21)
    at Object.<anonymous> (C:\Users\ryant\AppData\Roaming\npm\node_modules\nodecg-cli\index.js:43:9)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (C:\Users\ryant\AppData\Roaming\npm\node_modules\nodecg-cli\bin\nodecg:25:1)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
info: [nodecg/lib/server] NodeCG running on http://localhost:9090
ryantheleach commented 5 years ago

Worked out that I needed to configure a default config, but even the generated config wasn't fully fleshed out, I needed to read the config schema manually, do additional googling, then edit several JS files that had bot names hard coded.

But I've got it working now!

Thanks for sharing this, I've been looking for an alternative to streamkit, that I can use for DnD, Needed to be able to configure what the names were, looked like, and have additional character information.

Needed to install git, npm, python/windows build tools, ffmpeg (via chocolately), then type !bot join in the configured 'command channel'