Fiddlekins / podbot

A Discord bot designed to record voice chat audio, aimed at recording a specific podcast
82 stars 16 forks source link

Podbot not receiving 'ready' event #6

Closed ttt733 closed 7 years ago

ttt733 commented 7 years ago

I got the bot working earlier and was able to hear the recorded audio in Audacity; worked fine. However, when I tried to run it again (after updating to the latest release of Node.js so that processFragments would work) I found that the bot would not respond to commands. It shows as online in the server's user list, so I assume it's not a token authentication issue. I added console logging into the Podbot constructor method, and it gets through that fine, but it's apparently not receiving the discord.js 'ready' event, as it's not printing "Ready!" into the console. Any idea what might be causing this? Apologies if this has nothing to do with this bot; the discord.js server was less than receptive to my asking for help, and the official documentation didn't do much to explain what all needs to happen for the 'ready' event to fire.

Side note, in package.json, I think "uws" should be changed to "^0.14.1", as trying to install with it as it is ("^0.12.0") was giving errors.

ttt733 commented 7 years ago

Issue was resolved by executing npm rebuild.

Fiddlekins commented 7 years ago

I've actually been meaning to remove the uws package from deps at some point, it's slated to be removed from discord.js due to being incapable of handling connection loss properly.