muesli / beehive

A flexible event/agent & automation system with lots of bees 🐝
GNU Affero General Public License v3.0
6.29k stars 320 forks source link

Discord bee status goes back to "with bees" by itself #359

Open LecygneNoir opened 3 years ago

LecygneNoir commented 3 years ago

Hello!

I have found something that is (I think) unintentional in the discord bee about the bot status.

In the code (see the review) the bot use a default status "with bees", and muesli suggested to add a function set_status

While Calmbit indeed added it (thanks 😍 ), it's somewhat buggued as when the bee is running, it seems to call very regularly the default status, so the status randomly goes back to "with bees".

eg, if you set the status to something else, it goes back to "with bees" between 1 minutes and 2 hours from my experience.

I am not sure this is the expected behavior?

As calmbit stated in the review the default status is decorative, perhaps it should be better to remove this default (thus the bot has no status at all) and doing so, when someone use set_status, the status stay the same until the user decides otherwise?

Or if I misunderstand the code, please correct me (I am very unfamiliar with go and discord API ^^")

Anyway, thank you for this amazing project!

Regards,