Esempio n. 1
0
        private void Client_OnConnected(object sender, OnConnectedArgs e)
        {
            Console.WriteLine("[Bot]: Connected successfully!");
            client.OnUserTimedout    += Client_OnUserTimedout;
            client.OnMessageReceived += Client_OnMessageReceived;
            points = new PointsTracker(client);
            follow = new Announcement(client, "Please remember to follow if you enjoy the stream!", TimeSpan.FromMinutes(40));
            multi  = new Announcement(client, "Watch both of us at the same time on multistrean https://multistre.am/hiimmike/realedgythehedgy/layout5/", TimeSpan.FromMinutes(15));

            var start    = TimeSpan.Zero;
            var announce = new System.Threading.Timer((evt) => {
                points.Save();
                usersManager.Save();
            }, null, start, TimeSpan.FromMinutes(5));

            command = new Command(client, points);
            debug   = new DebugTools(client, points, usersManager);
        }
Esempio n. 2
0
 public DebugTools(TwitchClient _client, PointsTracker _points, UsersManager _usersManager)
 {
     client       = _client;
     points       = _points;
     usersManager = _usersManager;
 }
Esempio n. 3
0
 public Command(TwitchClient _client, PointsTracker _points)
 {
     client = _client;
     points = _points;
 }