bottype cleanup
This commit is contained in:
parent
78b3183036
commit
13d7eef4d8
5 changed files with 13 additions and 16 deletions
|
|
@ -11,7 +11,7 @@ namespace BetterSecondBotShared.bottypes
|
||||||
{
|
{
|
||||||
public abstract class BasicBot
|
public abstract class BasicBot
|
||||||
{
|
{
|
||||||
public BasicBot()
|
protected BasicBot()
|
||||||
{
|
{
|
||||||
LastStatusMessage = "No status";
|
LastStatusMessage = "No status";
|
||||||
}
|
}
|
||||||
|
|
@ -39,9 +39,6 @@ namespace BetterSecondBotShared.bottypes
|
||||||
|
|
||||||
protected GridClient Client;
|
protected GridClient Client;
|
||||||
public GridClient GetClient { get { return Client; } }
|
public GridClient GetClient { get { return Client; } }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public virtual void KillMePlease()
|
public virtual void KillMePlease()
|
||||||
{
|
{
|
||||||
killMe = true;
|
killMe = true;
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ namespace BSB.bottypes
|
||||||
{
|
{
|
||||||
public abstract class DialogsBot : DiscordBot
|
public abstract class DialogsBot : DiscordBot
|
||||||
{
|
{
|
||||||
protected bool TrackDialogs = false;
|
protected bool TrackDialogs;
|
||||||
protected int RelayDialogsToChannel = 0;
|
protected int RelayDialogsToChannel;
|
||||||
protected UUID RelayDialogsToAvatar = UUID.Zero;
|
protected UUID RelayDialogsToAvatar = UUID.Zero;
|
||||||
protected string RelayDialogsToHttp = "";
|
protected string RelayDialogsToHttp = "";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ namespace BSB.bottypes
|
||||||
{
|
{
|
||||||
public abstract class VoidEventBot : AnimationsBot
|
public abstract class VoidEventBot : AnimationsBot
|
||||||
{
|
{
|
||||||
protected long delay_appearence_update = 0;
|
protected long delay_appearence_update;
|
||||||
|
|
||||||
public override string GetStatus()
|
public override string GetStatus()
|
||||||
{
|
{
|
||||||
|
|
@ -65,8 +65,8 @@ namespace BSB.bottypes
|
||||||
public class EventsBot : VoidEventBot
|
public class EventsBot : VoidEventBot
|
||||||
{
|
{
|
||||||
protected List<string> accept_animation_request_from_users = new List<string>();
|
protected List<string> accept_animation_request_from_users = new List<string>();
|
||||||
protected bool login_auto_logout = false;
|
protected bool login_auto_logout;
|
||||||
protected long delay_group_fetch = 0;
|
protected long delay_group_fetch;
|
||||||
protected Dictionary<UUID, KeyValuePair<long, List<UUID>>> group_members_storage = new Dictionary<UUID, KeyValuePair<long, List<UUID>>>();
|
protected Dictionary<UUID, KeyValuePair<long, List<UUID>>> group_members_storage = new Dictionary<UUID, KeyValuePair<long, List<UUID>>>();
|
||||||
protected virtual void GroupMembersReplyHandler(object sender, GroupMembersReplyEventArgs e)
|
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<string, Dictionary<string, KeyValuePair<CoreCommand, string[]>>> await_events = new Dictionary<string, Dictionary<string, KeyValuePair<CoreCommand, string[]>>>();
|
protected Dictionary<string, Dictionary<string, KeyValuePair<CoreCommand, string[]>>> await_events = new Dictionary<string, Dictionary<string, KeyValuePair<CoreCommand, string[]>>>();
|
||||||
protected Dictionary<string, long> await_event_ages = new Dictionary<string, long>();
|
protected Dictionary<string, long> await_event_ages = new Dictionary<string, long>();
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ namespace BSB.bottypes
|
||||||
public abstract class RLVbot : RLVbotHelper
|
public abstract class RLVbot : RLVbotHelper
|
||||||
{
|
{
|
||||||
// normal bot stuff
|
// normal bot stuff
|
||||||
protected bool allow_RLV = false;
|
protected bool allow_RLV;
|
||||||
protected RLV.RLVcontrol RLVinterface = null;
|
protected RLV.RLVcontrol RLVinterface;
|
||||||
public RLV.RLVcontrol GetRLVinterface { get { return RLVinterface; } }
|
public RLV.RLVcontrol GetRLVinterface { get { return RLVinterface; } }
|
||||||
|
|
||||||
public override void Setup(JsonConfig config, string Version)
|
public override void Setup(JsonConfig config, string Version)
|
||||||
|
|
@ -232,9 +232,9 @@ namespace BSB.bottypes
|
||||||
#region Flags
|
#region Flags
|
||||||
// Flags
|
// Flags
|
||||||
protected bool recvchat_channel_zero_lock = true;
|
protected bool recvchat_channel_zero_lock = true;
|
||||||
protected bool sendchannel_lock = false;
|
protected bool sendchannel_lock;
|
||||||
protected bool recvemote_lock = false;
|
protected bool recvemote_lock;
|
||||||
protected bool sendim_lock = false;
|
protected bool sendim_lock;
|
||||||
public void SetLock(string name, bool status)
|
public void SetLock(string name, bool status)
|
||||||
{
|
{
|
||||||
if (name == "sendim_lock") { sendim_lock = status; }
|
if (name == "sendim_lock") { sendim_lock = status; }
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ namespace BSB.bottypes
|
||||||
protected Dictionary<string, long> avoid_sims = new Dictionary<string, long>();
|
protected Dictionary<string, long> avoid_sims = new Dictionary<string, long>();
|
||||||
protected bool SimShutdownAvoid;
|
protected bool SimShutdownAvoid;
|
||||||
protected bool auto_logout_login_recover;
|
protected bool auto_logout_login_recover;
|
||||||
protected bool AfterLoginSitDown = false;
|
protected bool AfterLoginSitDown;
|
||||||
|
|
||||||
protected void ChangeSim(object sender,SimChangedEventArgs e)
|
protected void ChangeSim(object sender,SimChangedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue