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

crash #36

Closed
lorenzomonteiros opened this issue May 30, 2021 · 4 comments
Closed

crash #36

lorenzomonteiros opened this issue May 30, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@lorenzomonteiros
Copy link

lorenzomonteiros commented May 30, 2021

iris@3.0.14 start
node index.js

undefined:1

SyntaxError: Unexpected token in JSON at position 0
at JSON.parse ()
at Object. (C:\Users\Pichau\Downloads\iris-main\config.js:94:23)
at Module._compile (node:internal/modules/cjs/loader:1109:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
at Module.load (node:internal/modules/cjs/loader:989:32)
at Function.Module._load (node:internal/modules/cjs/loader:829:14)
at Module.require (node:internal/modules/cjs/loader:1013:19)
at require (node:internal/modules/cjs/helpers:93:18)
at Object. (C:\Users\Pichau\Downloads\iris-main\index.js:3:17)
at Module._compile (node:internal/modules/cjs/loader:1109:14)

já baixei, ja desinstalei, ja troquei arquivo, ja tentei executar seu bot por git clone, e nada funciona, tudo que tentei fica dando esse crash (isso aí é de npm start, com node index.js ele dá mais erros)

@KillovSky
Copy link
Owner

A linha 94 faz referência ao arquivo msgcount.json, responsável por contar mensagens, acredito que este arquivo possa estar corrompido por um desligamento inesperado da BOT, use um dos backups automáticos para tentar iniciar, aguardo por notícias.

@KillovSky KillovSky added the bug Something isn't working label May 30, 2021
@lorenzomonteiros
Copy link
Author

como eu faço um backup? ou uso eles? só renomear o arquivo?

@lorenzomonteiros
Copy link
Author

já consegui fazer, e funcionou, valeu de verdade irmão, isso aconteceu pq eu reiniciei meu pc com o bot aberto kkkk, nao sabia dessa de fechar inesperadamente, mas agora vou fechar o bot antes de desligar meu pc irmão, valeu

@KillovSky
Copy link
Owner

KillovSky commented May 30, 2021

Que ótimo que funcionou, sinta-se a vontade para abrir outra issue quando quiser e bom uso da Íris!

Edit*: Desculpe não ter visto sua mensagem prévia, os backups são automáticos e só precisa remover o -[número] da frente do nome do arquivo, como por exemplo, msgcount-2.json, remova o "-2" e o arquivo ficará como msgcount.json, insira ele na pasta de configurações em Iris/lib/config/Bot e voilà!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants