norrisbot icon indicating copy to clipboard operation
norrisbot copied to clipboard

Unexpected identifier with db

Open huasmc opened this issue 6 years ago • 4 comments

I've been trying to run the bot, I've followed the tutorial on Scotch.io, I tried copying the '.db' file in my '/data/' folder but also using the generator but I keep getting 'unexpected identifier:

/Users/huascar/Projects/cabify/slack_bot_practice/chuck_norris_bot/data/norrisbot.db:1
(function (exports, require, module, __filename, __dirname) { SQLite format 3
                                                                     ^^^^^^

SyntaxError: Unexpected identifier
    at new Script (vm.js:51:7)
    at createScript (vm.js:136:10)
    at Object.runInThisContext (vm.js:197:10)
    at Module._compile (module.js:613:28)
    at Object.Module._extensions..js (module.js:660:10)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:501:12)
    at Function.Module._load (module.js:493:3)
    at Module.require (module.js:593:17)
    at require (internal/module.js:11:18)

huasmc avatar Mar 13 '18 18:03 huasmc

Hello @HuascarMC, thanks for checking out this project! Can you please tell me the exact command you are running?

lmammino avatar Mar 13 '18 19:03 lmammino

No problem, the tutorial is very well instructed. The command I'm running is: BOT_API_KEY=your_api_key node bin/bot.js

huasmc avatar Mar 13 '18 22:03 huasmc

was this figured out ? Im going crazy with the exact same error

devin5 avatar Nov 25 '19 16:11 devin5

Is the isseue fixed? I have the same error.

TheDaekLord1989 avatar Dec 04 '20 22:12 TheDaekLord1989