egebilecen / PZServerDiscordBot

A Project Zomboid Discord Bot written in C# using Discord.NET to manage and execute commands on Project Zomboid Server.
GNU General Public License v3.0
70 stars 15 forks source link

the bot is deconfigured for some reason #79

Closed PentSec closed 1 year ago

PentSec commented 1 year ago

Hello, after working for several hours with the bot configured, suddenly and without warning it gets disconfigured and the command channel id is set to 0. thus having to reconfigure the bot to make it work. any solution? as a small note I leave, that I do not edit the channels or delete them or anything since this is happening to me.

{ "GuildId": 639228542076321812, "CommandChannelId": 0, "LogChannelId": 1102723611929882654, "PublicChannelId": 1102723611929882654, "ServerLogParserSettings": { "PerkParserCacheDuration": 10 }, "ServerScheduleSettings": { "ServerRestartSchedule": 21600000, "WorkshopItemUpdateSchedule": 600000, "WorkshopItemUpdateRestartTimer": 900000 }, "BotFeatureSettings": { "AutoServerStart": false, "NonPublicModLogging": false }, "LocalizationInfo": null }

egebilecen commented 1 year ago

Hey. Maybe a crash or sudden restart happened in your machine thus changes did not save? It could be due to some Discord related error as well. Some servers are actively running this bot and has no issue so could be only on your end.

PentSec commented 1 year ago

I set up the bot and start using the commands and suddenly without warning I put a command and it tells me that the bot is not configured I go to the folder and check and the channel ID has been set to 0. but it is always that channel the command channel. maybe I should try another channel. or delete that one and create another one.