Repository is archived
No commit activity in last 3 years
No release in over 3 years
An ruboty adapter for twitter DM.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0

Runtime

>= 0
>= 0
~> 2.6.1
>= 5.0.0
 Project Readme

Ruboty::TwitterDirectMessage Gem Version

An Ruboty adapter for twitter user-stream API. Cloned from r7kamura/ruboty-twitter

Usage

# Gemfile
gem "ruboty-twitter_direct_message"

ENV

TWITTER_ACCESS_TOKEN           - Twitter access token
TWITTER_ACCESS_TOKEN_SECRET    - Twitter access token secret
TWITTER_CONSUMER_KEY           - Twitter consumer key (a.k.a. API key)
TWITTER_CONSUMER_SECRET        - Twitter consumer secret (a.k.a. API secret)

Attention

Handler need {all: true}

module Ruboty
  module Handlers
    class Ping < Base
      on(
        /ping/,
        name: "ping",
        all: true
      )

      def ping(message)
        message.reply("pong")
      end
    end
  end
end