{"action":"created","issue":{"url":"https://api.github.com/repos/xpjp/xpfiat-bot/issues/29","repository_url":"https://api.github.com/repos/xpjp/xpfiat-bot","labels_url":"https://api.github.com/repos/xpjp/xpfiat-bot/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/xpjp/xpfiat-bot/issues/29/comments","events_url":"https://api.github.com/repos/xpjp/xpfiat-bot/issues/29/events","html_url":"https://github.com/xpjp/xpfiat-bot/pull/29","id":282437384,"number":29,"title":"コマンドを指定ちゃんねるのみに制限する","user":{"login":"harigel","id":606243,"avatar_url":"https://avatars0.githubusercontent.com/u/606243?v=4","gravatar_id":"","url":"https://api.github.com/users/harigel","html_url":"https://github.com/harigel","followers_url":"https://api.github.com/users/harigel/followers","following_url":"https://api.github.com/users/harigel/following{/other_user}","gists_url":"https://api.github.com/users/harigel/gists{/gist_id}","starred_url":"https://api.github.com/users/harigel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harigel/subscriptions","organizations_url":"https://api.github.com/users/harigel/orgs","repos_url":"https://api.github.com/users/harigel/repos","events_url":"https://api.github.com/users/harigel/events{/privacy}","received_events_url":"https://api.github.com/users/harigel/received_events","type":"User","site_admin":false},"labels":[{"id":777720948,"url":"https://api.github.com/repos/xpjp/xpfiat-bot/labels/In%20Review","name":"In Review","color":"ee7800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-15T14:05:51Z","updated_at":"2017-12-15T23:54:45Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/xpjp/xpfiat-bot/pulls/29","html_url":"https://github.com/xpjp/xpfiat-bot/pull/29","diff_url":"https://github.com/xpjp/xpfiat-bot/pull/29.diff","patch_url":"https://github.com/xpjp/xpfiat-bot/pull/29.patch"},"body":"### 何を解決するのか\r\n\r\n#26 についての改修案です。\r\n`command_permissions.yml` に、コマンドとそのコマンドを使えるチャンネルを設定します。\r\n`bot.command :doge ~` 等しているもの全てに対応する必要があるので冗長ですが…\r\n\r\n### レビューポイント\r\n\r\nDiscordrb::Commands::CommandBotを継承したクラスで@commands[name.to_sym].attributes[:channels]\r\nを設定しています。\r\nほんとはbot.include!とかしたいのですが詳しくなく断念…\r\n\r\nよろしくお願いいたします！\r\n\r\n\r\n追記：\r\n`command_permissions.yml.sample` → `command_permissions.yml` にしてお使いください。"},"comment":{"url":"https://api.github.com/repos/xpjp/xpfiat-bot/issues/comments/352140584","html_url":"https://github.com/xpjp/xpfiat-bot/pull/29#issuecomment-352140584","issue_url":"https://api.github.com/repos/xpjp/xpfiat-bot/issues/29","id":352140584,"user":{"login":"p-suke","id":32237969,"avatar_url":"https://avatars3.githubusercontent.com/u/32237969?v=4","gravatar_id":"","url":"https://api.github.com/users/p-suke","html_url":"https://github.com/p-suke","followers_url":"https://api.github.com/users/p-suke/followers","following_url":"https://api.github.com/users/p-suke/following{/other_user}","gists_url":"https://api.github.com/users/p-suke/gists{/gist_id}","starred_url":"https://api.github.com/users/p-suke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-suke/subscriptions","organizations_url":"https://api.github.com/users/p-suke/orgs","repos_url":"https://api.github.com/users/p-suke/repos","events_url":"https://api.github.com/users/p-suke/events{/privacy}","received_events_url":"https://api.github.com/users/p-suke/received_events","type":"User","site_admin":false},"created_at":"2017-12-15T23:54:45Z","updated_at":"2017-12-15T23:54:45Z","author_association":"CONTRIBUTOR","body":"ぼくはよいと思います！\r\n@Asuforce レビューお願いできないでしょうか。"}}
{"actor":{"display_login":"p-suke"}}