/// <summary>
        /// Initialises a new instance of the <see cref="LegacyCommandParser"/> class.
        /// </summary>
        /// <param name="commandServiceHelper">
        /// The command Service Helper.
        /// </param>
        /// <param name="logger">
        /// The logger.
        /// </param>
        public LegacyCommandParser(ICommandServiceHelper commandServiceHelper, ILogger logger)
        {
            this.commandServiceHelper = commandServiceHelper;
            this.Log = logger;

            this.OverrideBotSilence = false;
        }
Exemple #2
0
 /// <summary>
 /// Initialises a new instance of the <see cref="FunCommand"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="channel">
 /// The channel.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 /// <param name="commandServiceHelper">
 /// The message Service.
 /// </param>
 protected FunCommand(
     LegacyUser source, 
     string channel, 
     string[] args, 
     ICommandServiceHelper commandServiceHelper)
     : base(source, channel, args, commandServiceHelper)
 {
 }
 /// <summary>
 /// Initialises a new instance of the <see cref="Configcacheclear"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="channel">
 /// The channel.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 /// <param name="commandServiceHelper">
 /// The message Service.
 /// </param>
 public Configcacheclear(
     LegacyUser source, 
     string channel, 
     string[] args, 
     ICommandServiceHelper commandServiceHelper)
     : base(source, channel, args, commandServiceHelper)
 {
 }
Exemple #4
0
        /// <summary>
        /// Initialises a new instance of the <see cref="GenericCommand"/> class.
        /// </summary>
        /// <param name="commandServiceHelper">
        /// The command Service Helper.
        /// </param>
        protected GenericCommand(ICommandServiceHelper commandServiceHelper)
        {
            // FIXME: ServiceLocator - genericlogger & legacydatabase
            this.Log = ServiceLocator.Current.GetInstance<ILogger>();
            this.legacyDatabase = ServiceLocator.Current.GetInstance<ILegacyDatabase>();

            this.CommandServiceHelper = commandServiceHelper;
        }
Exemple #5
0
 /// <summary>
 /// Initialises a new instance of the <see cref="Threadstatus"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="channel">
 /// The channel.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 /// <param name="commandServiceHelper">
 /// The message Service.
 /// </param>
 public Threadstatus(
     LegacyUser source, 
     string channel, 
     string[] args, 
     ICommandServiceHelper commandServiceHelper)
     : base(source, channel, args, commandServiceHelper)
 {
 }
Exemple #6
0
 /// <summary>
 /// Initialises a new instance of the <see cref="Notify"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="channel">
 /// The channel.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 /// <param name="commandServiceHelper">
 /// The message Service.
 /// </param>
 public Notify(LegacyUser source, string channel, string[] args, ICommandServiceHelper commandServiceHelper)
     : base(source, channel, args, commandServiceHelper)
 {
 }
Exemple #7
0
 /// <summary>
 /// Initialises a new instance of the <see cref="Forget"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="channel">
 /// The channel.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 /// <param name="commandServiceHelper">
 /// The message Service.
 /// </param>
 public Forget(LegacyUser source, string channel, string[] args, ICommandServiceHelper commandServiceHelper)
     : base(source, channel, args, commandServiceHelper)
 {
     // FIXME: ServiceLocator - keywordservice
     this.keywordService = ServiceLocator.Current.GetInstance<IKeywordService>();
 }
Exemple #8
0
 /// <summary>
 /// Initialises a new instance of the <see cref="Access"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="channel">
 /// The channel.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 /// <param name="commandServiceHelper">
 /// The message Service.
 /// </param>
 public Access(LegacyUser source, string channel, string[] args, ICommandServiceHelper commandServiceHelper)
     : base(source, channel, args, commandServiceHelper)
 {
     // FIXME: ServiceLocator - legacydatabase
     this.legacyDatabase = ServiceLocator.Current.GetInstance<ILegacyDatabase>();
 }
Exemple #9
0
 /// <summary>
 /// Initialises a new instance of the <see cref="Welcomer"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="channel">
 /// The channel.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 /// <param name="commandServiceHelper">
 /// The message Service.
 /// </param>
 public Welcomer(LegacyUser source, string channel, string[] args, ICommandServiceHelper commandServiceHelper)
     : base(source, channel, args, commandServiceHelper)
 {
     this.databaseSession = ServiceLocator.Current.GetInstance<ISession>();
 }
Exemple #10
0
 /// <summary>
 /// Initialises a new instance of the <see cref="Electrocute"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="channel">
 /// The channel.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 /// <param name="commandServiceHelper">
 /// The message Service.
 /// </param>
 public Electrocute(LegacyUser source, string channel, string[] args, ICommandServiceHelper commandServiceHelper)
     : base(source, channel, args, commandServiceHelper)
 {
 }
 /// <summary>
 /// Initialises a new instance of the <see cref="CategoryWatcher"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="channel">
 /// The channel.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 /// <param name="commandServiceHelper">
 /// The message Service.
 /// </param>
 public CategoryWatcher(LegacyUser source, string channel, string[] args, ICommandServiceHelper commandServiceHelper)
     : base(source, channel, args, commandServiceHelper)
 {
 }
Exemple #12
0
 /// <summary>
 /// Initialises a new instance of the <see cref="Delay"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="channel">
 /// The channel.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 /// <param name="messageService">
 /// The message Service.
 /// </param>
 public Delay(LegacyUser source, string channel, string[] args, ICommandServiceHelper messageService)
     : base(source, channel, args, messageService)
 {
 }
Exemple #13
0
 /// <summary>
 /// Initialises a new instance of the <see cref="Google"/> class.
 /// </summary>
 /// <param name="commandServiceHelper">
 /// The command Service Helper.
 /// </param>
 public Google(ICommandServiceHelper commandServiceHelper)
     : base(commandServiceHelper)
 {
 }
Exemple #14
0
 /// <summary>
 /// Initialises a new instance of the <see cref="GenericCommand"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="channel">
 /// The channel.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 /// <param name="commandServiceHelper">
 /// The command Service Helper.
 /// </param>
 protected GenericCommand(
     LegacyUser source, 
     string channel, 
     string[] args, 
     ICommandServiceHelper commandServiceHelper)
     : this(commandServiceHelper)
 {
     this.Source = source;
     this.Channel = channel;
     this.Arguments = args;
 }
Exemple #15
0
 /// <summary>
 /// Initialises a new instance of the <see cref="Registration"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="channel">
 /// The channel.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 /// <param name="commandServiceHelper">
 /// The message Service.
 /// </param>
 public Registration(LegacyUser source, string channel, string[] args, ICommandServiceHelper commandServiceHelper)
     : base(source, channel, args, commandServiceHelper)
 {
 }