SideProjectGuys / invite-manager-bot

A discord bot that tracks invites and much more
https://docs.invitemanager.co/
GNU General Public License v3.0
166 stars 136 forks source link

Invite names do not show after bot is restarted #145

Closed rjclarkewp007 closed 4 years ago

rjclarkewp007 commented 4 years ago

I created a new invite using: !createinvite Discord #welcome

Then i run !invitedetails and it will show: 1 from Discord (N55Ncxa) - created 2 hours ago

BUT then i restarted the bot and now when i run !invitedetails it does not show the name anymore: 1 from N55Ncxa - created 3 hours ago

I can see the name in the database so why is the bot not picking this up after a restart? image

Any help will be greatly appreciated!

rjclarkewp007 commented 4 years ago

Just as a side note here - I left the bot running throughout the night and this morning all the names are gone again :(

rjclarkewp007 commented 4 years ago

I also found now that actually all settings like !Config JoinMessage and !config JoinMessageChannel also gets reset after a restart or overnight. Am i missing something here?

Please can you guys be a bit more helpful when it comes to the self hosting of this bot? A more detailed guide of what needs to be entered where in the config would help as well. Why are there 2 databases that is setup, but it seems only one is used?

At the moment my config file looks like this: { "devToken": "MyBotTokenEnteredHere", "sentryDsn": "", "bot": { "type": "regular", "ids": { "regular": "", "pro": "" }, "links": { "add": "https://invitemanager.co/add-bot/", "support": "https://discord.gg/Am6p2Hs", "website": "https://andreasgassmann.github.io/discord-invite-manager/", "patreon": "https://www.patreon.com/invitemanager" }, "dm": { "guild": "", "channel": "" }, "apiAuth": { "username": "", "password": "" }, "dblToken": null, "music": { "pollyUrl": "" } }, "rabbitmq": { "hostname": "localhost", "username": "guest", "password": "guest", "prefix": "" }, "databases": [ { "host": "localhost", "port": 3306, "user": "root", "password": "MySecurePasswordIsHere", "range": { "from": 0, "to": 0 } }, { "host": "localhost", "port": 3306, "user": "root", "password": "MySecurePasswordIsHere", "range": { "from": 1, "to": 1 } } ] }

rjclarkewp007 commented 4 years ago

Problem was resolved. :)