public Bot() { BasicConfigurator.Configure(); log.Info("Starting bot instance..."); db = new BotDataContext(new SQLiteConnection("DbLinqProvider=Sqlite;Data Source=Bot.db;")); userService = new UserService(db); }
public NowPlaying([Import("UserService")] UserService userService, [Import("CommandCompletedEventHandler")] CommandCompletedEventHandler onCommandCompleted) { this.userService = userService; this.CommandCompleted += onCommandCompleted; }
public AddUser([Import("UserService")] UserService userService) { this.userService = userService; }
public ListAuthenticatedUsers([Import("UserService")] UserService userService) { this.userService = userService; }
public AuthenticateUser([Import("UserService")] UserService userService) { this.userService = userService; }
public Set([Import("UserService")] UserService userService) { this.userService = userService; }
public IronPython([Import("Commands")] Dictionary<string, ICommand> commands, [Import("UserService")] UserService userService) { this.commands = commands; this.userService = userService; }
public Bot(string host, int port, bool useSsl, string[] channels) { userService = new UserService(db); server = new ServerDescriptor(host, port, useSsl, channels); }