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

The account goes offline #9

Open
ghost opened this issue Aug 18, 2021 · 4 comments
Open

The account goes offline #9

ghost opened this issue Aug 18, 2021 · 4 comments
Labels
question Further information is requested

Comments

@ghost
Copy link

ghost commented Aug 18, 2021

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

@BoQsc
Copy link

BoQsc commented Aug 19, 2021

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

@BoQsc BoQsc pinned this issue Aug 19, 2021
@BoQsc BoQsc added the question Further information is requested label Aug 19, 2021
@ghost
Copy link
Author

ghost commented Sep 1, 2021

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
Copy link
Author

ghost commented Sep 1, 2021

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
Copy link

BoQsc commented Sep 2, 2021

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)

"worker": {
"quantity": 1,
"size": "free",
"command": "python 🌌bumper.py"
}

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.

while True:
await channel.send("found channel")
await channel.send("!d bump")
time.sleep(8125) # 8125 seconds == 2 hours

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

No branches or pull requests

1 participant