Exemplo n.º 1
0
        public ImgurBot(ChannelConnector connector) : base(connector)
        {
            m_imgur    = new ImgurClient(ClientID, ClientSecret);
            m_endpoint = new GalleryEndpoint(m_imgur);

            Connector.Message += OnMessage;
        }
Exemplo n.º 2
0
        public GiphyBot(ChannelConnector connector) : base(connector)
        {
            m_giphy = new Giphy(ApiKey);

            Connector.Message += OnMessage;

            m_timer           = new Timer();
            m_timer.Interval  = TimeSpan.FromMinutes(1).TotalMilliseconds;
            m_timer.Elapsed  += TimerElapsed;
            m_timer.AutoReset = true;
        }
Exemplo n.º 3
0
 public CleverBot(ChannelConnector connector) : base(connector)
 {
     Connector.Message += OnMessage;
 }
Exemplo n.º 4
0
 public BotManager(Channel channel) : base("bots/")
 {
     m_connector = new ChannelConnector(channel);
 }
Exemplo n.º 5
0
        public RedditBot(ChannelConnector connector) : base(connector)
        {
            var webagent = new BotWebAgent(Username, Password, ClientID, ClientSecret, RedirectUri);

            m_reddit = new Reddit(webagent, true);
        }
Exemplo n.º 6
0
 public Bot(ChannelConnector connector)
 {
     Connector = connector;
 }