mayudev / revcord

A bridge for Discord and Revolt with easy setup through commands
MIT License
64 stars 9 forks source link

Uncaught SyntaxError: Unexpected identifier #8

Closed rain23764 closed 1 year ago

rain23764 commented 1 year ago

hi i just installed Node.js v18.15.0, later i open and try to paste on it it shows

Welcome to Node.js v18.15.0. Type ".help" for more information.

git clone https://github.com/mayudev/revcord git clone https://github.com/mayudev/revcord ^^^^^

Uncaught SyntaxError: Unexpected identifier

something is wrong? node_rRe2oE5Ucv

mayudev commented 1 year ago

You're supposed to type those commands in cmd/powershell. Also install git for windows.

rain23764 commented 1 year ago

https://git-scm.com/ is this git for windows?

mayudev commented 1 year ago

yes

rain23764 commented 1 year ago

Place the relevant tokens in environment variables. The easiest way is to create a .env file (yes, a file called .env): now i can i make .env file?

raluvy95 commented 1 year ago

You can create new file in the folder you cloned called ".env" and then open it with Notepad (right click on newly created file) and then append the following code:

REVOLT_TOKEN="..."
DISCORD_TOKEN="..."

Replace the dots with your revolt bot token as well as your discord bot token.

After that, open new command prompt, then go to the folder you cloned (usually called "revcord") and type npm i, then npm run start

Sorry for late reply, but I just saw your issue.