Giter VIP home page Giter VIP logo

Comments (9)

MeLlamoPablo avatar MeLlamoPablo commented on May 24, 2024

That seems odd. Can you copy and paste the full log that starts with [INFO] Loading ScheduleBot... Please wait, with their corresponding time? Also, are you using Steam Guard?

from schedulebot.

mcarmody avatar mcarmody commented on May 24, 2024

I'm not running with Steam Guard, but here's the whole log:

2017-01-03T00:44:56.743749+00:00 app[bot.1]: [INFO] Loading ScheduleBot... Please wait
2017-01-03T00:44:56.935283+00:00 app[bot.1]: [STEAM] Sentry file doesn't exist in database, searching it in the local machine.
2017-01-03T00:44:56.936643+00:00 app[bot.1]: [STEAM] Sentry file doesn't exist in the local machine.
2017-01-03T00:44:59.014178+00:00 app[bot.1]: [STEAM] Connected to Steam
2017-01-03T00:44:59.336871+00:00 app[bot.1]: [STEAM] Successfully logged in!
2017-01-03T00:45:05.699511+00:00 app[bot.1]: [DOTA] Running!
2017-01-03T00:45:05.849796+00:00 app[bot.1]: Error: Incorrect login details were provided.
2017-01-03T00:45:05.849799+00:00 app[bot.1]: at WebSocketManager.client.ws.once.event (/app/node_modules/discord.js/src/client/ClientManager.js:36:41)
2017-01-03T00:45:05.849800+00:00 app[bot.1]: at WebSocketManager.g (events.js:286:16)
2017-01-03T00:45:05.849800+00:00 app[bot.1]: at emitOne (events.js:96:13)
2017-01-03T00:45:05.849801+00:00 app[bot.1]: at WebSocketManager.emit (events.js:188:7)
2017-01-03T00:45:05.849802+00:00 app[bot.1]: at WebSocketManager.eventClose (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:195:10)
2017-01-03T00:45:05.849803+00:00 app[bot.1]: at WebSocket.ws.onclose (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:82:35)
2017-01-03T00:45:05.849806+00:00 app[bot.1]: at WebSocket.onClose (/app/node_modules/ws/lib/WebSocket.js:446:14)
2017-01-03T00:45:05.849806+00:00 app[bot.1]: at emitTwo (events.js:106:13)
2017-01-03T00:45:05.849807+00:00 app[bot.1]: at WebSocket.emit (events.js:191:7)
2017-01-03T00:45:05.849808+00:00 app[bot.1]: at WebSocket.cleanupWebsocketResources (/app/node_modules/ws/lib/WebSocket.js:950:8)
2017-01-03T00:45:05.849809+00:00 app[bot.1]: at emitNone (events.js:91:20)
2017-01-03T00:45:05.849810+00:00 app[bot.1]: at TLSSocket.emit (events.js:185:7)
2017-01-03T00:45:05.849811+00:00 app[bot.1]: at endReadableNT (_stream_readable.js:975:12)
2017-01-03T00:45:05.849811+00:00 app[bot.1]: at _combinedTickCallback (internal/process/next_tick.js:74:11)
2017-01-03T00:45:05.849812+00:00 app[bot.1]: at process._tickCallback (internal/process/next_tick.js:98:9)

from schedulebot.

7596ff avatar 7596ff commented on May 24, 2024

You'll need to create an empty file called sentry in the directory the bot runs in. https://github.com/Arcana/node-dota2/blob/staging/examples/config.js.example

from schedulebot.

MeLlamoPablo avatar MeLlamoPablo commented on May 24, 2024

@bippum not really, it looks like the issue is being caused by Discord.js and not by node-dota2, as the bot is able to log in to Steam ([STEAM] Successfully logged in!, [DOTA] Running!).

@mcarmody I assume you have got your Discord Bot token and used the npm run setup script to send it to the database, right? If yes, please make sure twice that the token is correct.

from schedulebot.

mcarmody avatar mcarmody commented on May 24, 2024

Yep, let me go try and redo that whole process and see what I come up with. I wasn't sure what the failed login was for, so it helps to know that it's Discord related.

from schedulebot.

mcarmody avatar mcarmody commented on May 24, 2024

Where should I be entering the bot credentials during the setup process?

from schedulebot.

MeLlamoPablo avatar MeLlamoPablo commented on May 24, 2024

The setup process should look like this:

PS C:\Users\Pablo\NodeProjects\schedulebot> npm run setup

> [email protected] setup C:\Users\Pablo\NodeProjects\schedulebot
> node ./setup.js

Hello! Welcome to the ScheduleBot setup script.
This script will create your database structure to get ScheduleBot working.
First, let's connect to your postgres database. Enter your db info:

? Host localhost
? Database schedulebot
? User postgres
? Password ********
? Use SSL? No

Awesome! We can begin with the creation of the structure.

? Do you want to procceed? Yes

Alright, database schema created!
Now we just need your bot's token.
For security reasons, this is not stored on your config.js file; it's stored on the database.

You can get your bot's token at the following address:
https://discordapp.com/developers/applications/me

? Your bot's token YOUR BOT TOKEN GOES HERE

Just one more thing:
We need to set up the bot's admin. More people can be added later,
but we need at least one right now so the bot can be used.

Please, enter the admin's discord's user ID
To get that, go to Discord's user settings, then appearance, then check "Developer Mode".
After that, right click on your username, and click "Copy ID"

? Admin's discord user ID YOUR DISCORD USER ID GOES HERE
? Admin's discord user name (used to label the database entry) YOUR DISCORD USERNAME GOES HERE

That's it! We're done!
You can run ScheduleBot with npm run bot

Have fun!

This is from the "Local Installation", but the only difference from the Heroku Deployment is that you have to supply the database credentials that are provided by Heroku, and have to set Use SSL? to yes. Other than that, it should be the same.

from schedulebot.

mcarmody avatar mcarmody commented on May 24, 2024

Well I have no idea what I did differently, but I cleared the Heroku DB and re-ran all the setup commands and it's worked this time! Thanks for the help... I guess I must have typed something wrong, somewhere in the process.

from schedulebot.

MeLlamoPablo avatar MeLlamoPablo commented on May 24, 2024

No worries, man! By the looks of it, you probably mistyped the token.

from schedulebot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.