-
Notifications
You must be signed in to change notification settings - Fork 49
Error #68
Comments
I read through one of the other issues and noticed that using the master branch was a bad idea, so I grabbed the latest tagged release. I still get various errors when trying to add music. When I try to add a youtube video (via /add youtubelink) I get this error:
Note: I upgraded my kernel between now and when I opened the issue, so I'm aware of the 4.5.1 kernel here but 4.0 posted in the OP. |
The kernel and the linux shouldn't make any difference. Sorry for the inconvenience, DiscordDJ is still WIP and not released yet. It's highly recommended to only use it for testing. |
I didn't think changing the kernel would change anything, I was just clarifying because in my OP I had kernel 4.0, but the error output showed kernel 4.5.1. I was just trying to prevent a nitpick before it happened (I've dealt with some really lame people I guess). So I tried 0.0.4, and I get this instead:
I'm aware this is still a WIP, but I'm super excited to try it out! I'll go grab all the other tagged releases and see if maybe I get lucky! |
So Discord has updated several times since 0.0.4 and 0.0.5, both of them are broken now. |
If you'd like to point me in a direction of how to help, I'd be glad to, but I'd want some sort of primer on how everything worked first (if you'd be so kind) |
The first thing that needs to be done is to implement the authentication. I would like to implement support for both user and bot accounts I was planning on a "library handler", where I could use DiscordDJ on top of other libraries (discordie, discord.io and discord.js). But the plan now is to make it work with pure Discord API. I know some libraries are catching up on the new API, and I'll probably use them for reference and examples. |
Oh wow, that authentication stuff looks pretty cool, actually (separating out bots from normal accounts). Warning: The page makes it clear that user accounts should not be used as bots, or they'll be suspended and forced to be changed to bot accounts. The Oauth part of all this I assume will be the easiest. Also - bots apparently don't have the same limitations that user accounts have (not limited to 100 guilds, for example). You might be able to run a website where people can request the bot be placed in their server, rather than just find a server to run this little bot package on. |
Yes, but the problem is that the majority of people try to run this bot in a regular user account just for one guild. I don't want to force anyone to create a bot account. My plan, in the future, is to host the bot and make it similar to Airhorn Bot, but I still have to look into server costs and performance |
Is there a way to specify a bot account in the config? I'm totally game to try that and see if that would fix this problem. The setup script didn't mention any sort of key/token for the bot, but I remember an issue in here about soundcloud needing an API key and it can be hardcoded somewhere. Either way - I'll happily keep a heads up on the repo and I am more than glad to test things for you! If by chance I can get around to it before you, I'll see if I can't get some discord authentication proof of concept coded up and sent via PR. |
In the current version, you can only specify an user account. Here's how the config file had for authentication: {
"email": "",
"password": "",
"token": "",
"keys": {
"youtube": "",
"soundcloud": ""
}
} |
Ah, wow. I actually looked at config.json before and remember a lot of it now that you broke it up. My bad! |
I think the self hosting aspect works well, no need to worry about anything extra and it seems to work well for other bots that have self hosting as either a main or secondary option |
@RandomMan25XX but having to download youtube/soundcloud/spotify/etc content, convert it to PCM to convert it to libopus packets and then send them to a Discord voice server is quite performance-heavy happening at the same time for 50 guilds. I've already heard a lot of problems with other audio-based bots :/ |
what about each user of the bot hosting their own iterations of the bot using their own computers, would that still be performance heavy as someone who locally hosts multiple iterations on one pc or would said self hosting still cause issues? |
@RandomMan25XX Sorry, I didn't fully understand. Do you mean people hosting the bot for their own guilds in their own computers/servers? |
yeah, from what i've seen using nadekobot, which has a function like that seems to work quite well |
DiscordDJ Crash Log
This happens when I add a song to the queue.
Specs:
Ubuntu 14.04
Kernel 4.0
Nodejs v5.10.1
The text was updated successfully, but these errors were encountered: