gg2001 / EmailBot

Discord bot for verifying the email domain of server members
https://github.com/gg2001/EmailBot
GNU General Public License v3.0
46 stars 33 forks source link

why does the bot keep resetting itself? #3

Open s-p-l-o-d-e opened 2 years ago

s-p-l-o-d-e commented 2 years ago

After I setup the bot, go through

.enableonjoin .domainadd [the domain I want to use].org for some reason it doesn't seem to work if I put the @ in the domain .rolechange Verified

And for a short period of time, maybe a few hours, it works. But after a few hours, the bot resets itself for .enableonjoin and .domainadd, although it does keep the proper Verified role (or maybe it resets to the default) Why does it do this? Is there any way to keep the configuration persistent?

humaneBicycle commented 2 years ago

did you ever find a solution?

s-p-l-o-d-e commented 2 years ago

No, I just wrote an autohotkey script that would input each command to reconfigure the bot But even that has to be done every few hours

if you figure out anythjng, that would be much appreciated

On Thu, Dec 16, 2021, 16:02 abhayasood1793 @.***> wrote:

did you ever find a solution?

— Reply to this email directly, view it on GitHub https://github.com/gg2001/EmailBot/issues/3#issuecomment-996191519, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWEYHVQTCTKKVGACG2UZRXTURJHYBANCNFSM5GM4PMQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

DE0CH commented 2 years ago

Maybe it’s a problem with your database not persisting. Watch bot.db. The “Verified” role is managed by Discord so the problem with this bot won’t affect that.

s-p-l-o-d-e commented 2 years ago

That would make sense, the database not persisting. But I'm not using my own self-hosted database, I just added the standard bot from the invite link in the main github page. Is there a separate database I should be hosting elsewhere? As is, it seems to work okay for at least a few hours, and whenever a new user tries to get verified, I just run my AHK script to reset the bot.

DE0CH commented 2 years ago

In that case, I don't really know, but it seems to be a problem with the people who host the bot. As far as I can tell from the source code, you don't need to host a separate database. If you want to go the extra mile, you can host the bot yourself. The code seems to work out of the box, but remember to use python 3.7. The newer versions don't seem to work for me.

s-p-l-o-d-e commented 2 years ago

Yeah I'm not sure either, but thanks for the python 3.7 tip

lawrenceadams commented 2 years ago

Having this issue too, not self-hosting. 🤔