Пример #1
0
        public Bot()
        {
            BasicConfigurator.Configure();
            log.Info("Starting bot instance...");

            db = new BotDataContext(new SQLiteConnection("DbLinqProvider=Sqlite;Data Source=Bot.db;"));
            userService = new UserService(db);
        }
Пример #2
0
 public NowPlaying([Import("UserService")] UserService userService, [Import("CommandCompletedEventHandler")] CommandCompletedEventHandler onCommandCompleted)
 {
     this.userService = userService;
     this.CommandCompleted += onCommandCompleted;
 }
Пример #3
0
 public AddUser([Import("UserService")] UserService userService)
 {
     this.userService = userService;
 }
Пример #4
0
 public ListAuthenticatedUsers([Import("UserService")] UserService userService)
 {
     this.userService = userService;
 }
Пример #5
0
 public AuthenticateUser([Import("UserService")] UserService userService)
 {
     this.userService = userService;
 }
Пример #6
0
 public Set([Import("UserService")] UserService userService)
 {
     this.userService = userService;
 }
Пример #7
0
 public IronPython([Import("Commands")] Dictionary<string, ICommand> commands, [Import("UserService")] UserService userService)
 {
     this.commands = commands;
     this.userService = userService;
 }
Пример #8
0
 public Bot(string host, int port, bool useSsl, string[] channels)
 {
     userService = new UserService(db);
     server = new ServerDescriptor(host, port, useSsl, channels);
 }