Skip to content

IRCボットプラグイン:メッセージのフィルタリングを react_on で書く #33

@ochaochaocha3

Description

@ochaochaocha3

現在は、チャンネルメッセージとダイレクトメッセージとの区別を、それぞれヘルパーメソッド channel_message?direct_message? を用いて行っているが、Cinchの match メソッドに react_on: :channel もしくは react_on: :private というオプションを指定することで、より簡潔に書ける。

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions