/// <summary>
        /// Sets the delay.
        /// </summary>
        /// <param name="keyword">The keyword.</param>
        /// <param name="newDelay">The new delay.</param>
        /// <returns></returns>
        public CommandResponseHandler setDelay(string keyword, int newDelay)
        {
            if (newDelay < 1)
            {
                string message = new Message().get("delayTooShort");
                return(new CommandResponseHandler(message));
            }

            CategoryWatcher cw = getWatcher(keyword);

            if (cw != null)
            {
                Dictionary <string, string> vals = new Dictionary <string, string>
                {
                    {
                        "watcher_sleeptime",
                        newDelay.ToString( )
                    }
                };
                DAL.singleton().update("watcher", vals, 0, new DAL.WhereConds("watcher_keyword", keyword));
                cw.sleepTime = newDelay;
                return(new CommandResponseHandler(new Message().get("done")));
            }
            return(new CommandResponseHandler());
        }
        /// <summary>
        /// Gets the delay.
        /// </summary>
        /// <param name="keyword">The keyword.</param>
        /// <returns></returns>
        public int getDelay(string keyword)
        {
            CategoryWatcher cw = getWatcher(keyword);

            if (cw != null)
            {
                return(cw.sleepTime);
            }
            return(0);
        }