{"action":"created","issue":{"url":"https://api.github.com/repos/Twentysix26/26-Cogs/issues/20","repository_url":"https://api.github.com/repos/Twentysix26/26-Cogs","labels_url":"https://api.github.com/repos/Twentysix26/26-Cogs/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Twentysix26/26-Cogs/issues/20/comments","events_url":"https://api.github.com/repos/Twentysix26/26-Cogs/issues/20/events","html_url":"https://github.com/Twentysix26/26-Cogs/pull/20","id":218023030,"number":20,"title":"Big Rift update","user":{"login":"zephyrkul","id":23347632,"avatar_url":"https://avatars3.githubusercontent.com/u/23347632?v=3","gravatar_id":"","url":"https://api.github.com/users/zephyrkul","html_url":"https://github.com/zephyrkul","followers_url":"https://api.github.com/users/zephyrkul/followers","following_url":"https://api.github.com/users/zephyrkul/following{/other_user}","gists_url":"https://api.github.com/users/zephyrkul/gists{/gist_id}","starred_url":"https://api.github.com/users/zephyrkul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zephyrkul/subscriptions","organizations_url":"https://api.github.com/users/zephyrkul/orgs","repos_url":"https://api.github.com/users/zephyrkul/repos","events_url":"https://api.github.com/users/zephyrkul/events{/privacy}","received_events_url":"https://api.github.com/users/zephyrkul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-29T22:03:53Z","updated_at":"2017-03-29T23:19:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Twentysix26/26-Cogs/pulls/20","html_url":"https://github.com/Twentysix26/26-Cogs/pull/20","diff_url":"https://github.com/Twentysix26/26-Cogs/pull/20.diff","patch_url":"https://github.com/Twentysix26/26-Cogs/pull/20.patch"},"body":"I played around with Rift and added a few improvements:\r\n- Due to the addition of three more commands, `[p]rift` is now a group command with `[p]rift open` opening a rift instead of `[p]riftopen`.\r\n- New `[p]rift search` command, which searches for rifts with the specified parameters.\r\n- Rift can now set a User as a destination, which will set the user's direct message channel with the bot as the channel destination.\r\n  - Refactored channel search logic so this works. Name, ID, and mentions for both users and channels are accepted (nicknames and name#discrim don't work for users at the moment).\r\n- Added some security features\r\n  - Rift notifies the destination when a rift is opened to it. Owner can disable this globally with `[p]rift notify`.\r\n    - Rift always notifies the destination when the destination is a private channel, regardless of the above setting. Private channel destinations may also be exited from both source and destination. The source is notified if the destination closed the rift.\r\n  - New `[p]rift close` command, available to admin or manage_channel users. This closes all rifts whose destination is the channel the command is used in. Source channels are notified of this.\r\n- Various bugfixes\r\n  - If an author opens up multiple rifts, the open_rifts storing works correctly (previously it would only store the most recently opened one).\r\n  - If an already open rift is opened again, the bot will not open the duplicate rift instead of just opening it again.\r\n  - If multiple rifts are open that have the same source and destination (only possible with two different authors), the bot will send the return message only once instead of once per rift.\r\n  - The bot will not send the message to the destination channel if the message starts with the bot's prefix(es). This allows for multiple rifts with the same source without sending the subsequent `[p]rift open` commands to the previous rifts. (Previously I had it set where rift accepted multiple arguments, but I decided this approach was better.)\r\n    - Commands from the destination are still relayed to the source.\r\n  - Not sure if this was a bug with my fork or the base, but on unloading the cog all rifts are closed (though at the moment the task remains open until the next message from the author or until the next restart).\r\n- Changed `info.json` to give the proper `[p]rift open` command, and also sneakily gave myself co-author credit."},"comment":{"url":"https://api.github.com/repos/Twentysix26/26-Cogs/issues/comments/290255516","html_url":"https://github.com/Twentysix26/26-Cogs/pull/20#issuecomment-290255516","issue_url":"https://api.github.com/repos/Twentysix26/26-Cogs/issues/20","id":290255516,"user":{"login":"zephyrkul","id":23347632,"avatar_url":"https://avatars3.githubusercontent.com/u/23347632?v=3","gravatar_id":"","url":"https://api.github.com/users/zephyrkul","html_url":"https://github.com/zephyrkul","followers_url":"https://api.github.com/users/zephyrkul/followers","following_url":"https://api.github.com/users/zephyrkul/following{/other_user}","gists_url":"https://api.github.com/users/zephyrkul/gists{/gist_id}","starred_url":"https://api.github.com/users/zephyrkul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zephyrkul/subscriptions","organizations_url":"https://api.github.com/users/zephyrkul/orgs","repos_url":"https://api.github.com/users/zephyrkul/repos","events_url":"https://api.github.com/users/zephyrkul/events{/privacy}","received_events_url":"https://api.github.com/users/zephyrkul/received_events","type":"User","site_admin":false},"created_at":"2017-03-29T23:19:43Z","updated_at":"2017-03-29T23:19:43Z","body":"Added `[p]rift blacklist` for more security."}}
{"actor":{"display_login":"zephyrkul"}}