Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected identifier with db #18

Open
huasmc opened this issue Mar 13, 2018 · 4 comments
Open

Unexpected identifier with db #18

huasmc opened this issue Mar 13, 2018 · 4 comments

Comments

@huasmc
Copy link

huasmc commented Mar 13, 2018

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)
@lmammino
Copy link
Owner

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

@huasmc
Copy link
Author

huasmc commented Mar 13, 2018

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

@devin5
Copy link

devin5 commented Nov 25, 2019

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

@TheDaekLord1989
Copy link

Is the isseue fixed? I have the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants