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

Not running under Windows10 #1

Closed
nate2014jatc opened this issue Dec 12, 2017 · 15 comments
Closed

Not running under Windows10 #1

nate2014jatc opened this issue Dec 12, 2017 · 15 comments

Comments

@nate2014jatc
Copy link

Hi, I'm trying to get this up and running,
I'm on Windows 10 with Python 2.7.14, Node.js LTS, and the Latest FFMPEG

I've made the token, and put it into the config, and I get the following error on launch;

Disconnected.
(node:5840) UnhandledPromiseRejectionRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Incorrect login details were provided.
(node:5840) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

What advice do you have?

@Malexion
Copy link
Owner

Sounds a bit like the login is being rejected, you don't have the "<" or ">" around the token right?

And the token came from https://discordapp.com/developers where you register an "app" under "my apps" on the left and find the token correct?
image

@Malexion
Copy link
Owner

Also just pushed an update for logging of errors, so it should create a file in the base directory called "rhythm-bot-log.log" to sort of assist with future errors.

@nate2014jatc
Copy link
Author

nate2014jatc commented Dec 14, 2017

The ">" and "<" characters are not present in my app token.
The token came from the correct place, as you've shown.
rhythm-bot-log.log

config.example.txt

@nate2014jatc
Copy link
Author

Can this be run safely under Linux, or is it bound to Windows?

@Malexion
Copy link
Owner

I think FFMPEG works better on Linux, but I'm not entirely sure I haven't test it on Linux.

And did you modify config.js?

@nate2014jatc
Copy link
Author

nate2014jatc commented Dec 14, 2017 via email

@Malexion
Copy link
Owner

config.js holds the default config settings any modifications you want to make to the config should be passed through main.js in that object that's inserted into the class.

It recursively updates the underlying config so you only have to define the properties you want to update.

@nate2014jatc
Copy link
Author

nate2014jatc commented Dec 14, 2017 via email

@Malexion
Copy link
Owner

You'd pretty much want to leave config.js untouched unless your adding features of your own and make config adjustments in main.js like show with the commented out properties.

image

@Malexion
Copy link
Owner

The config is smart enough to only update properties listed. so auto.deafen would be updated if un-commented but the other properties in the auto category would be left alone.

@nate2014jatc
Copy link
Author

nate2014jatc commented Dec 14, 2017 via email

@nate2014jatc
Copy link
Author

I'm going to try running this under Ubuntu 17.04 and see what happens.

This time, I'll put the token in the right spot XP

Out of curiosity, is this the source for THE Rhythm Bot?

@nate2014jatc
Copy link
Author

well, it worked. Kinda.

nate@Nate-WarRig:/media/nate/Bulk SSD/bin/Rhythm-Bot$ node main.js
Disconnected.
Error: Incorrect login details were provided.
    at WebSocketManager.client.ws.once.event (/media/nate/Bulk SSD/bin/Rhythm-Bot/node_modules/discord.js/src/client/ClientManager.js:36:41)
    at WebSocketManager.g (events.js:292:16)
    at emitOne (events.js:96:13)
    at WebSocketManager.emit (events.js:188:7)
    at WebSocketManager.eventClose (/media/nate/Bulk SSD/bin/Rhythm-Bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:195:10)
    at WebSocket.ws.onclose (/media/nate/Bulk SSD/bin/Rhythm-Bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:82:35)
    at WebSocket.onClose (/media/nate/Bulk SSD/bin/Rhythm-Bot/node_modules/ws/lib/WebSocket.js:446:14)
    at emitTwo (events.js:106:13)
    at WebSocket.emit (events.js:191:7)
    at WebSocket.cleanupWebsocketResources (/media/nate/Bulk SSD/bin/Rhythm-Bot/node_modules/ws/lib/WebSocket.js:950:8)

@nate2014jatc
Copy link
Author

Scratch the last comment, I was being an idiot and I pasted a web address into the token field.

Perhaps I should get some sleep XP

@Malexion
Copy link
Owner

Hmm still seems to be related to the login process, hard to say what it is.

Oh I had to google to figure out what you meant by "THE Rhythm Bot" wow I never knew that existed, I just made this clunky thing about a year ago since I couldn't find any operational music bots at the time.

But it looks like https://rythmbot.co/ is just my bot on steroids with sharding to allow easy creation, you could probably rework mine to be just like that if you wanted though it'd take some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants