public TT2BotClient() { _client = new BotClient(MapDependencies); _client.InstallHandlers(Assembly.GetExecutingAssembly()); _client.CommandService.Install(_client.DefaultCommands); _client.CommandService.Install(Assembly.GetExecutingAssembly()); RegisterTextResources(_client.TextResourceManager); RegisterSettings(_client.SettingsManager); RegisterTypeReaders(_client.TypeReaders, _client.DependencyFactory); _client.Database.Delete <Error>(e => true); _client.Database.Delete <CommandRecord>(c => true); TitanLordTickCallback.Database = _client.Database; _client.SettingsManager.Migrate(new Dictionary <string, Type> { { "TitanBot.Settings.GeneralSettings", typeof(GeneralGuildSetting) }, { typeof(TitanLordSettings).ToString(), typeof(TitanLordSettings) }, { typeof(RegistrationSettings).ToString(), typeof(RegistrationSettings) } }); }