Closed Owned67 closed 5 years ago
Hey, thanks for opening this issue. Can you give us more information on when you see this? What steps have you taken? Have you followed https://github.com/lbryio/lbry-wunderbot#installation ?
npm install --production
sleep@5.2.3 install C:\Users\Alpha\BotDiscord\nomades-bot\node_modules\sleep node-gyp rebuild
C:\Users\Alpha\BotDiscord\nomades-bot\node_modules\sleep>if not defined npm_config_node_gyp (node "C:\Users\Alpha\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\Alpha\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: D:\Python\Python36\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sleep@5.2.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sleep@5.2.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Alpha\AppData\Roaming\npm-cache_logs\2019-02-07T19_05_39_328Z-debug.log
and after: node bot/bot.js
Hi! Seems you are missing some build tools needed for sleep to build. Try installing https://www.npmjs.com/package/windows-build-tools
Thanks but i don't want python 2.x.... i have python 3.x... so close.
V3 is not supported, ok :( RIP
Its same...
Status from the installers: ---------- Visual Studio Build Tools ---------- Successfully installed Visual Studio Build Tools. ------------------- Python -------------------- Successfully installed Python 2.7
Now configuring the Visual Studio Build Tools and Python...
All done!
node bot/bot WARNING: No configurations found in configuration directory:C:\Users\Alpha\BotDiscord\nomades-bot\config WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment. C:\Users\Alpha\BotDiscord\nomades-bot\node_modules\config\lib\config.js:203 throw new Error('Configuration property "' + property + '" is not defined'); ^
Error: Configuration property "bot" is not defined
at Config.get (C:\Users\Alpha\BotDiscord\nomades-bot\node_modules\config\lib\config.js:203:11)
at Object.
Ok rename config file to default.json and after node bot/bot:
No aliases defined
Logged in! Serving in 1 servers
{ ConfigurationError: Missing configuration field discordToken
at Bot.REQUIRED_FIELDS.forEach.field (C:\Users\Alpha\BotDiscord\nomades-bot\node_modules\discord-irc\dist\bot.js:45:15)
at Array.forEach (
TypeError: Cannot read property 'send' of undefined
at Object.init (C:\Users\Alpha\BotDiscord\nomades-bot\bot\modules\claimbot.js:22:39)
at Client.
Please ensure that all fields in the default.json are filled, including the Discord Bot Token (Required). Modules like claimbot, etc. require configuration values as well, so if you don't plan on using them, be sure to remove those functions from bot.js (Just look for the initialization code). If you can't find it, let me know and I'll help you find what I'm talking about!
Ive disabled claimbot but { ConfigurationError: Missing configuration field discordToken
at Bot.REQUIRED_FIELDS.forEach.field (C:\Users\Alpha\BotDiscord\nomades-bot\node_modules\discord-irc\dist\bot.js:45:15)
at Array.forEach (
check C:\Users\Alpha\BotDiscord\nomades-bot\bot\modules\ircbridge.js
at line 7,
it's looking for that token.
Thanks
npm -v 6.7.0 node -v v8.9.4
nomades-bot\node_modules\config\lib\config.js:203 throw new Error('Configuration property "' + property + '" is not defined'); Error: Configuration property "bot" is not defined at Config.get (C:\Users\Alpha\BotDiscord\nomades-bot\node_modules\config\lib\config.js:203:11) at Object.<anonymous> (C:\Users\Alpha\BotDiscord\nomades-bot\bot\bot.js:7:17) at Module._compile (module.js:643:30) at Object.Module._extensions..js (module.js:654:10) at Module.load (module.js:556:32) at tryModuleLoad (module.js:499:12) at Function.Module._load (module.js:491:3) at Function.Module.runMain (module.js:684:10) at startup (bootstrap_node.js:187:16) at bootstrap_node.js:608:3