cheesits456 / discord-ssh-bot

A node.js Discord bot for using shell commands remotely through Discord
GNU General Public License v3.0
35 stars 9 forks source link

Error on running #8

Closed 14soldier88 closed 3 years ago

14soldier88 commented 3 years ago

user@cloudshell:~/discord-ssh-bot$ node index.js SyntaxError: Unexpected token , in JSON at position 87 at JSON.parse () at Object. (/home/user/discord-ssh-bot/script.js:6:22) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at Object. (/home/user/discord-ssh-bot/index.js:5:2) at Module._compile (internal/modules/cjs/loader.js:1063:30)

14soldier88 commented 3 years ago

Node version: v14.15.1

14soldier88 commented 3 years ago

Fixed it but now i'm having the same issue as here https://github.com/cheesits456/discord-ssh-bot/issues/7

cheesits456 commented 3 years ago

Did you put a valid user ID and a valid channel ID? The values have to be strings as well, not integers

cheesits456 commented 3 years ago

7 has been resolved, so I'm gonna close this issue now <3