Example #1
0
 public Standard(RandomStrings _strings, EventStorage _events, CommandService _commands, IServiceProvider _services, Config _config, DiscordSocketClient _socketClient)
 {
     strings      = _strings;
     events       = _events;
     commands     = _commands;
     services     = _services;
     config       = _config;
     socketClient = _socketClient;
 }
Example #2
0
        // <Guild ID, <User ID, Time last used>>

        public static EventStorage Load()
        {
            if (File.Exists("events.json"))
            {
                var json = File.ReadAllText("events.json");
                return(JsonConvert.DeserializeObject <EventStorage>(json));
            }
            var events = new EventStorage();

            events.Save();

            return(events);
        }
Example #3
0
 public Snowball(EventStorage _events)
 {
     events = _events;
 }