Comments (9)
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.
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.
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.
@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.
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.
Where should I be entering the bot credentials during the setup process?
from schedulebot.
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.
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.
No worries, man! By the looks of it, you probably mistyped the token.
from schedulebot.
Related Issues (20)
- 'confirm no' no longer working HOT 1
- Suggestion: Let the bot read and store Dota MMR of linked players HOT 5
- Suggestion: remove pinned message after inhouse/event is over. HOT 3
- Bot will always think someone left the lobby and aborts the lobby autostart HOT 1
- Single version HOT 4
- "Confirm no" bug didn't get fixed on master branch
- Standard version is unmaintained for now
- heroku database login failure HOT 10
- get-lobby command error
- Keep getting Wrong options passed into the Clapp constructor
- []
- Can't turn off the No Fun / cant start games in the past.
- Can't recognize the master channel link, even when I added the bot to my server HOT 1
- BOT OFFLINE
- Installation/Setup missing cli-table2 for heroku deployment
- Not deploying from Heroku
- Cannot find module 'heroku-client' HOT 1
- Bug: confirm no doesn't work if an event is full
- Possible bug - invisible lobby HOT 4
- Kick command kicks the admin HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schedulebot.