- atig.rbは起動時に ~/.atig/config を読み込みます。
- ~/.atig/config はRubyのコードが記述可能です。
- Atig::Gateway::Session.<some_field> を変更すると、atig.rbの動作をカスタマイズできます。
Atig::Gateway::Session.commands を変更すれば、利用可能な CTCP ACTION を変更できます:
Atig::Gateway::Session.commands = [
Atig::Command::Retweet,
Atig::Command::Reply,
..
]
標準で次のコマンドが用意されています。
Atig::Gateway::Session.agents を変更すると、発言やFollowingを取得するのに利用するAPIを変更できます。:
Atig::Gateway::Session.agents = [
Atig::Agent::List,
Atig::Agent::Following,
...
]
標準で次のAgentが用意されています。
Atig::Gateway::Session.ifilters を変更すると、取得した発言の加工方法を変更できます。:
Atig::Gateway::Session.ifilters = [
Atig::IFilter::Utf7,
Atig::IFilter::Sanitize,
...
]
標準で次のIFilterが用意されています。
Atig::Gateway::Session.ofilters を変更すると、自分の発言の加工方法を変更できます。:
Atig::OFilter::EscapeUrl, Atig::OFilter::ShortUrl, Atig::OFilter::Geo, Atig::OFilter::Footer,
]
標準で次のOFilterが用意されています。
Atig::Gateway::Session.channels を変更すると、作成するチャンネルを変更できます。:
Atig::Gateway::Session.channels = [
Atig::Channel::Timeline,
Atig::Channel::Mention,
Atig::Channel::Dm,
Atig::Channel::List,
Atig::Channel::Retweet
]
標準で次のChannelが用意されています。