Ejemplo n.º 1
0
        internal Settings(LootsClient lootsClient) : base(lootsClient)
        {
            if (!File.Exists(SettingsFile))
            {
                LoadDefault();
            }

            Models.Settings settings = ReadConfig();
            lootsClient.Cache.Settings         = settings;
            lootsClient.Cache.ChannelOwnerOnly = (settings.UseChannelOwner == true && settings.UseModerators == false || settings.UseChannelOwner == false && settings.UseModerators == false);
        }
Ejemplo n.º 2
0
 internal Counter(LootsClient lootsClient) : base(lootsClient)
 {
     if (!File.Exists(LootsFile))
     {
         ResetCount();
     }
     else
     {
         Log.Info("Loots file found, Do you want to continue the current count ? [Y / N]");
         if (Log.AcceptOrDeny())
         {
             LoadFile();
         }
         else
         {
             Log.Info("Reset the loots count to 0");
             ResetCount();
             Log.Info($"The current loots count is: {LootsClient.Cache.LootsCount}");
         }
     }
 }
Ejemplo n.º 3
0
 protected LootsClientAccessor(LootsClient lootsClient)
 {
     LootsClient = lootsClient;
 }
Ejemplo n.º 4
0
 internal ChatBot(LootsClient lootsClient) : base(lootsClient)
 {
     Connect();
 }
Ejemplo n.º 5
0
 internal Commands(LootsClient lootsClient) : base(lootsClient)
 {
 }
Ejemplo n.º 6
0
 internal Cache(LootsClient lootsClient) : base(lootsClient)
 {
 }
Ejemplo n.º 7
0
 internal Message(LootsClient lootsClient) : base(lootsClient)
 {
     placeHolders.Add("[lootscount]", lootsClient.Counter.GetCount);
 }