diff --git a/BSBshared/BotTypes/BasicBot.cs b/BSBshared/BotTypes/BasicBot.cs index 68661fb..300a64e 100644 --- a/BSBshared/BotTypes/BasicBot.cs +++ b/BSBshared/BotTypes/BasicBot.cs @@ -11,7 +11,7 @@ namespace BetterSecondBotShared.bottypes { public abstract class BasicBot { - public BasicBot() + protected BasicBot() { LastStatusMessage = "No status"; } @@ -39,9 +39,6 @@ namespace BetterSecondBotShared.bottypes protected GridClient Client; public GridClient GetClient { get { return Client; } } - - - public virtual void KillMePlease() { killMe = true; diff --git a/Core/bottypes/DialogsBot.cs b/Core/bottypes/DialogsBot.cs index 0a27419..4412326 100644 --- a/Core/bottypes/DialogsBot.cs +++ b/Core/bottypes/DialogsBot.cs @@ -14,8 +14,8 @@ namespace BSB.bottypes { public abstract class DialogsBot : DiscordBot { - protected bool TrackDialogs = false; - protected int RelayDialogsToChannel = 0; + protected bool TrackDialogs; + protected int RelayDialogsToChannel; protected UUID RelayDialogsToAvatar = UUID.Zero; protected string RelayDialogsToHttp = ""; diff --git a/Core/bottypes/EventsBot.cs b/Core/bottypes/EventsBot.cs index 8d636aa..97fab92 100644 --- a/Core/bottypes/EventsBot.cs +++ b/Core/bottypes/EventsBot.cs @@ -10,7 +10,7 @@ namespace BSB.bottypes { public abstract class VoidEventBot : AnimationsBot { - protected long delay_appearence_update = 0; + protected long delay_appearence_update; public override string GetStatus() { @@ -65,8 +65,8 @@ namespace BSB.bottypes public class EventsBot : VoidEventBot { protected List accept_animation_request_from_users = new List(); - protected bool login_auto_logout = false; - protected long delay_group_fetch = 0; + protected bool login_auto_logout; + protected long delay_group_fetch; protected Dictionary>> group_members_storage = new Dictionary>>(); protected virtual void GroupMembersReplyHandler(object sender, GroupMembersReplyEventArgs e) { @@ -284,7 +284,7 @@ namespace BSB.bottypes } } - protected long last_cleanup = 0; + protected long last_cleanup; protected Dictionary>> await_events = new Dictionary>>(); protected Dictionary await_event_ages = new Dictionary(); diff --git a/Core/bottypes/RLVbot.cs b/Core/bottypes/RLVbot.cs index e116aea..ead870e 100644 --- a/Core/bottypes/RLVbot.cs +++ b/Core/bottypes/RLVbot.cs @@ -10,8 +10,8 @@ namespace BSB.bottypes public abstract class RLVbot : RLVbotHelper { // normal bot stuff - protected bool allow_RLV = false; - protected RLV.RLVcontrol RLVinterface = null; + protected bool allow_RLV; + protected RLV.RLVcontrol RLVinterface; public RLV.RLVcontrol GetRLVinterface { get { return RLVinterface; } } public override void Setup(JsonConfig config, string Version) @@ -232,9 +232,9 @@ namespace BSB.bottypes #region Flags // Flags protected bool recvchat_channel_zero_lock = true; - protected bool sendchannel_lock = false; - protected bool recvemote_lock = false; - protected bool sendim_lock = false; + protected bool sendchannel_lock; + protected bool recvemote_lock; + protected bool sendim_lock; public void SetLock(string name, bool status) { if (name == "sendim_lock") { sendim_lock = status; } diff --git a/Core/bottypes/athome.cs b/Core/bottypes/athome.cs index 2034a27..8b1b3cc 100644 --- a/Core/bottypes/athome.cs +++ b/Core/bottypes/athome.cs @@ -142,7 +142,7 @@ namespace BSB.bottypes protected Dictionary avoid_sims = new Dictionary(); protected bool SimShutdownAvoid; protected bool auto_logout_login_recover; - protected bool AfterLoginSitDown = false; + protected bool AfterLoginSitDown; protected void ChangeSim(object sender,SimChangedEventArgs e) {