Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ochaochaocha3 opened this issue Jul 25, 2020 · 0 comments
Assignees
Labels
refactoring Refactoring code

Comments

@ochaochaocha3
Copy link
Member

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

@ochaochaocha3 ochaochaocha3 added the refactoring Refactoring code label Jul 25, 2020
@ochaochaocha3 ochaochaocha3 self-assigned this Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactoring code
Projects
None yet
Development

No branches or pull requests

1 participant