moonstar-x / discord-music-24-7

A 24/7 music bot for Discord that pauses when nobody is listening.
MIT License
151 stars 115 forks source link

Add a Keep-Alive functionality for Repl.it and Heroku #70

Open thenewgessiko opened 2 years ago

thenewgessiko commented 2 years ago

Hi, bro i wanted to ask if your code "discord-music-24/7" if you can make it compatible on replit in 24/7 like tts bot ...

And if you can put the ability to play youtube playlists??

moonstar-x commented 2 years ago

Hey, for the YouTube Playlist support, it is planned and there already is an issue realted to it: #36.

Once I update this to the latest discord.js 13 I will add the keep alive utiliy for Replit and Heroku just like the TTS bot has.

thenewgessiko commented 2 years ago

ok keep me updated

Il Gio 17 Feb 2022, 16:47 moonstar-x @.***> ha scritto:

Hey, for the YouTube Playlist support, it is planned and there already is an issue realted to it: #36 https://github.com/moonstar-x/discord-music-24-7/issues/36.

Once I update this to the latest discord.js 13 I will add the keep alive utiliy for Replit and Heroku just like the TTS bot has.

— Reply to this email directly, view it on GitHub https://github.com/moonstar-x/discord-music-24-7/issues/70#issuecomment-1043098180, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS7R35X7CRGPCUV2L6DOIRTU3UKBBANCNFSM5OSNLPBQ . You are receiving this because you authored the thread.Message ID: @.***>

thenewgessiko commented 2 years ago

Hi Sorry if I disturb you but discord music bot 24/7 project is it possible to make it compatible with heroku if you can?

Il Ven 18 Feb 2022, 06:34 TheNewGessiko @.***> ha scritto:

ok keep me updated

Il Gio 17 Feb 2022, 16:47 moonstar-x @.***> ha scritto:

Hey, for the YouTube Playlist support, it is planned and there already is an issue realted to it: #36 https://github.com/moonstar-x/discord-music-24-7/issues/36.

Once I update this to the latest discord.js 13 I will add the keep alive utiliy for Replit and Heroku just like the TTS bot has.

— Reply to this email directly, view it on GitHub https://github.com/moonstar-x/discord-music-24-7/issues/70#issuecomment-1043098180, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS7R35X7CRGPCUV2L6DOIRTU3UKBBANCNFSM5OSNLPBQ . You are receiving this because you authored the thread.Message ID: @.***>

moonstar-x commented 2 years ago

I will add the keep alive functionality once I get enough time to work on this.

As for Heroku, it won't be possible to add a "Deploy on Heroku" button because you technically need to add the music files or edit the queue file yourself. Which means that for this you would need to clone the repo, add the music yourself and then deploy your own clone of the repo into Heroku.

thenewgessiko commented 2 years ago

on heroku I did it with the project with the local-music folder with the .mp3 inserted right? and as soon as I start it with the npm start commands on heroku it does not start the bot because I do not know where to enter the secret key or the token, owner id and the channel id type like on the tts bot that on heroku makes me enter in the appropriate key values ​​.. . even if in the config.json file there is already the token the channel id and the rest configured but on heroku that file and as if he does not care to read it in key because on replit it goes but even if I have inserted the keep alive as you explained to me time ago to stay 24/7 it is but it doesn't really last 24/7 being that on replit I don't have the hacker plan active ... would you be able to give me a hand if I send you the error log on heroku maybe it is something easy to explain ?

Il Lun 14 Mar 2022, 14:57 moonstar-x @.***> ha scritto:

I will add the keep alive functionality once I get enough time to work on this.

As for Heroku, it won't be possible to add a "Deploy on Heroku" button because you technically need to add the music files or edit the queue file yourself. Which means that for this you would need to clone the repo, add the music yourself and then deploy your own clone of the repo into Heroku.

— Reply to this email directly, view it on GitHub https://github.com/moonstar-x/discord-music-24-7/issues/70#issuecomment-1066825269, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS7R35UAHGTINKV34LVN6NLU75AS7ANCNFSM5OSNLPBQ . You are receiving this because you authored the thread.Message ID: @.***>

moonstar-x commented 2 years ago

You should use the environment variables.

Inside the heroku dyno configuration, there's an option that says 'Reveal config vars', you should insert the environment variables that show up in tue README.

thenewgessiko commented 2 years ago

I added the keep alive on discord bot music 24/7 replit it recognizes the keep alive and even if I enter the site on uptimerobot the bot after a while turns off and I reopen replit gives me "Repl Waking Up ..." why..?

Il Mar 15 Mar 2022, 16:09 moonstar-x @.***> ha scritto:

You should use the environment variables.

Inside the heroku dyno configuration, there's an option that says 'Reveal config vars', you should insert the environment variables that show up in tue README.

— Reply to this email directly, view it on GitHub https://github.com/moonstar-x/discord-music-24-7/issues/70#issuecomment-1068099265, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS7R35WVXH3IKV4Q2E3XC7TVACR3LANCNFSM5OSNLPBQ . You are receiving this because you authored the thread.Message ID: @.***>

moonstar-x commented 2 years ago

Are you sure you're monitoring the right URL? Did you set up your monitor every 5 minutes?

thenewgessiko commented 2 years ago

Yes every 5 minutes why?

Il Ven 18 Mar 2022, 21:16 moonstar-x @.***> ha scritto:

Are you sure you're monitoring the right URL? Did you set up your monitor every 5 minutes?

— Reply to this email directly, view it on GitHub https://github.com/moonstar-x/discord-music-24-7/issues/70#issuecomment-1072766506, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS7R35XYWBDYBESNRNNFDVDVATQAFANCNFSM5OSNLPBQ . You are receiving this because you authored the thread.Message ID: @.***>

thenewgessiko commented 2 years ago

???

Il Ven 18 Mar 2022, 21:21 TheNewGessiko @.***> ha scritto:

Yes every 5 minutes why?

Il Ven 18 Mar 2022, 21:16 moonstar-x @.***> ha scritto:

Are you sure you're monitoring the right URL? Did you set up your monitor every 5 minutes?

— Reply to this email directly, view it on GitHub https://github.com/moonstar-x/discord-music-24-7/issues/70#issuecomment-1072766506, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS7R35XYWBDYBESNRNNFDVDVATQAFANCNFSM5OSNLPBQ . You are receiving this because you authored the thread.Message ID: @.***>

moonstar-x commented 2 years ago

Bacause 5 minutes is the least amount of time you can use for free.

Normally it should work, unless your keep alive doesn't work properly or you're not monitoring the correct URL.