vaido-world / Disboard-Auto-Bumper

🧦This a script to auto bump your discord server. A fork of Sympthey's project for Heroku.
https://github.com/Sympthey/Disboard-Auto-Bumper
0 stars 6 forks source link

The account goes offline #9

Open ghost opened 3 years ago

ghost commented 3 years ago

I know this is probably a feature but can I toggle if the account shows if its online/offline/dnd/idle

BoQsc commented 3 years ago

Update:

I think you have misunderstood how to configure this Discord Auto-Bumper.
Did you created a new Discord account and used its User Token. (Instead of a regular Discord Bot)

Are you sure that you added Credit Card to the Heroku account of yours and there is enough Heroku free dyno hours?

Old reply

The account goes offline

I can not reproduce this. I have an account online for weeks. It's always online.

image

I know this is probably a feature but can I toggle if the account shows if its online/offline/dnd/idle

Even if it would be possible, it is not necessary for a Disboard bumper.
There is no need to keep on changing the status, and you certainly can't if the account is completely down/offline.

image

ghost commented 2 years ago

I didn't add my credit card, and the bot works perfectly it just seems to be offline while it isn't the status goes offline that's all

ghost commented 2 years ago

I didn't add my credit card, and the bot works perfectly it just seems to be offline while it isn't the status goes offline that's all

I just noticed that this happens after a few minutes

BoQsc commented 2 years ago

I didn't add my credit card, and the bot works perfectly it just seems to be offline while it isn't the status goes offline that's all

I just noticed that this happens after a few minutes

That is probably how Heroku works. https://stackoverflow.com/questions/51483462/heroku-discord-bot-is-offline

Our bot preset is configured properly. (it is not a web dyno) https://github.com/vaido-world/Disboard-Auto-Bumper/blob/5a938673da7e29dddfcdde3752cddc71de487049/app.json#L9-L13

Still not sure about the cause, but if the bot is offline, you can't change a status at all.
To make the bot always online, maybe it is needed to upgrade your Heroku plan.
Anyways, it's not needed, as making the bot online all the time does not give any additional benefits.

Simulating the work

It might make the bot to stay online permanently by simulating a work every 4-6 minutes.
Downside: the free dyno hours of Heroku will run out way sooner and the bot might stop working.

https://github.com/vaido-world/Disboard-Auto-Bumper/blob/5a938673da7e29dddfcdde3752cddc71de487049/%F0%9F%8C%8Cbumper.py#L40-L43