{"action":"created","issue":{"url":"https://api.github.com/repos/b1naryth1ef/disco/issues/104","repository_url":"https://api.github.com/repos/b1naryth1ef/disco","labels_url":"https://api.github.com/repos/b1naryth1ef/disco/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/b1naryth1ef/disco/issues/104/comments","events_url":"https://api.github.com/repos/b1naryth1ef/disco/issues/104/events","html_url":"https://github.com/b1naryth1ef/disco/pull/104","id":346688868,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NDkyODk3","number":104,"title":"Adding kwargs to scheduled functions","user":{"login":"kyriog","id":629831,"node_id":"MDQ6VXNlcjYyOTgzMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/629831?v=4","gravatar_id":"","url":"https://api.github.com/users/kyriog","html_url":"https://github.com/kyriog","followers_url":"https://api.github.com/users/kyriog/followers","following_url":"https://api.github.com/users/kyriog/following{/other_user}","gists_url":"https://api.github.com/users/kyriog/gists{/gist_id}","starred_url":"https://api.github.com/users/kyriog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyriog/subscriptions","organizations_url":"https://api.github.com/users/kyriog/orgs","repos_url":"https://api.github.com/users/kyriog/repos","events_url":"https://api.github.com/users/kyriog/events{/privacy}","received_events_url":"https://api.github.com/users/kyriog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-01T17:08:58Z","updated_at":"2018-08-01T18:43:24Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/b1naryth1ef/disco/pulls/104","html_url":"https://github.com/b1naryth1ef/disco/pull/104","diff_url":"https://github.com/b1naryth1ef/disco/pull/104.diff","patch_url":"https://github.com/b1naryth1ef/disco/pull/104.patch"},"body":"Adding kwargs to scheduled functions allows bots to make a delayed action or repetitive task on a specific behavior, like reacting to a message after X seconds.\r\n\r\nThe usage is pretty easy:\r\n```python\r\ndef send_delayed_msg(self, event):\r\n    event.reply(\"Hello world!\")\r\n\r\n@Plugin.command('ping')\r\ndef on_ping_command(self, event):\r\n    self.register_schedule(self.send_delay_msg, 5, repeat=False, init=False, event=event)\r\n```"},"comment":{"url":"https://api.github.com/repos/b1naryth1ef/disco/issues/comments/409680499","html_url":"https://github.com/b1naryth1ef/disco/pull/104#issuecomment-409680499","issue_url":"https://api.github.com/repos/b1naryth1ef/disco/issues/104","id":409680499,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTY4MDQ5OQ==","user":{"login":"b1naryth1ef","id":599433,"node_id":"MDQ6VXNlcjU5OTQzMw==","avatar_url":"https://avatars2.githubusercontent.com/u/599433?v=4","gravatar_id":"","url":"https://api.github.com/users/b1naryth1ef","html_url":"https://github.com/b1naryth1ef","followers_url":"https://api.github.com/users/b1naryth1ef/followers","following_url":"https://api.github.com/users/b1naryth1ef/following{/other_user}","gists_url":"https://api.github.com/users/b1naryth1ef/gists{/gist_id}","starred_url":"https://api.github.com/users/b1naryth1ef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b1naryth1ef/subscriptions","organizations_url":"https://api.github.com/users/b1naryth1ef/orgs","repos_url":"https://api.github.com/users/b1naryth1ef/repos","events_url":"https://api.github.com/users/b1naryth1ef/events{/privacy}","received_events_url":"https://api.github.com/users/b1naryth1ef/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T18:43:24Z","updated_at":"2018-08-01T18:43:24Z","author_association":"OWNER","body":"I'd prefer if this was more explicit, if at the cost of slight ergnomics;\r\n\r\n`register_schedule(..., args=(...), kwargs={...})`"}}
{"actor":{"display_login":"b1naryth1ef"}}