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; }
// <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); }
public Snowball(EventStorage _events) { events = _events; }