{"action":"created","comment":{"url":"https://api.github.com/repos/mrshu/brutal-plugins/pulls/comments/33186588","id":33186588,"diff_hunk":"@@ -0,0 +1,93 @@\n+# -*- coding: utf-8 -*-\n+\n+from brutal.core.plugin import cmd\n+from datetime import datetime\n+from calendar import isleap\n+\n+from pynameday.slovakia import Slovakia as sknameday\n+from workalendar.europe import Slovakia as skholiday\n+\n+\n+INTERNATIONAL_DAY = {\n+    '1': {'27': 'International Day of Commemoration in Memory of the Victims \\\n+                 of the Holocaust'},\n+\n+    '2': {'4': 'World Cancer Day',\n+          '8': 'Day of Safer Internet',\n+          '11': 'World Day of the Sick',\n+          '14': 'World Valentine Day',\n+          '15': 'World Single’s Day',\n+          '21': 'International Mother Language Day'},\n+\n+    '3': {'8': 'International Women’s Day',\n+          '14': 'Pi Day',\n+          '20': 'International Day of Happiness',\n+          '28': 'Day of Teachers'},\n+\n+    '4': {'11': 'Daffodil Day - the day of the fight against cancer',\n+          '22': 'International Mother Earth Day'},\n+\n+    '5': {'15': 'International Family Day',\n+          '17': 'World Telecommunication and Information Society Day'},\n+\n+    '6': {'1': 'International Children’s Day',\n+          '21': 'Day of flowers'},\n+\n+    '7': {'8': 'Day of Videogames',\n+          '30': 'International Day of Friendship'},\n+\n+    '8': {'13': 'International Lefthanders Day'},\n+\n+    '9': {'13': 'International Day of Programmers',\n+          '19': 'Day of Software Freedom'},\n+\n+    '10': {'5': 'World Teachers’ Day',\n+           '20': 'International Day of Trees'},\n+\n+    '11': {'2': 'All Souls Day',\n+           '17': 'International Students Day',\n+           '30': 'Day of Computer Safety'},\n+\n+    '12': {'10': 'Human Rights Day'}\n+}\n+\n+\n+if isleap(datetime.today().year):\n+    del INTERNATIONAL_DAY['8']['13']\n+    INTERNATIONAL_DAY['8']['12'] = 'International Day of Programmers'\n+\n+\n+def formatter(string, prefix=''):\n+    \"\"\"Format data\"\"\"\n+    if string:\n+        return ', {0}{1}'.format(prefix, string)\n+    return ''\n+\n+\n+@cmd\n+def dayinfo(event):\n+    \"\"\"Inform you about current day\"\"\"","path":"dayinfo.py","position":69,"original_position":69,"commit_id":"607aea211dfa8f01e4def43bde65fc5b98cdcffa","original_commit_id":"607aea211dfa8f01e4def43bde65fc5b98cdcffa","user":{"login":"mrshu","id":461491,"avatar_url":"https://avatars.githubusercontent.com/u/461491?v=3","gravatar_id":"","url":"https://api.github.com/users/mrshu","html_url":"https://github.com/mrshu","followers_url":"https://api.github.com/users/mrshu/followers","following_url":"https://api.github.com/users/mrshu/following{/other_user}","gists_url":"https://api.github.com/users/mrshu/gists{/gist_id}","starred_url":"https://api.github.com/users/mrshu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrshu/subscriptions","organizations_url":"https://api.github.com/users/mrshu/orgs","repos_url":"https://api.github.com/users/mrshu/repos","events_url":"https://api.github.com/users/mrshu/events{/privacy}","received_events_url":"https://api.github.com/users/mrshu/received_events","type":"User","site_admin":false},"body":"@Adman can you please update this docstring with an example such as here: https://github.com/mrshu/brutal-plugins/blob/master/weather.py#L92\r\n\r\nAlso, did you perhaps want to say \"Informs you about current day\"?","created_at":"2015-06-24T19:36:40Z","updated_at":"2015-06-24T19:36:40Z","html_url":"https://github.com/mrshu/brutal-plugins/pull/103#discussion_r33186588","pull_request_url":"https://api.github.com/repos/mrshu/brutal-plugins/pulls/103","_links":{"self":{"href":"https://api.github.com/repos/mrshu/brutal-plugins/pulls/comments/33186588"},"html":{"href":"https://github.com/mrshu/brutal-plugins/pull/103#discussion_r33186588"},"pull_request":{"href":"https://api.github.com/repos/mrshu/brutal-plugins/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/mrshu/brutal-plugins/pulls/103","id":35975438,"html_url":"https://github.com/mrshu/brutal-plugins/pull/103","diff_url":"https://github.com/mrshu/brutal-plugins/pull/103.diff","patch_url":"https://github.com/mrshu/brutal-plugins/pull/103.patch","issue_url":"https://api.github.com/repos/mrshu/brutal-plugins/issues/103","number":103,"state":"open","locked":false,"title":"sup: know the info about current day","user":{"login":"Adman","id":865063,"avatar_url":"https://avatars.githubusercontent.com/u/865063?v=3","gravatar_id":"","url":"https://api.github.com/users/Adman","html_url":"https://github.com/Adman","followers_url":"https://api.github.com/users/Adman/followers","following_url":"https://api.github.com/users/Adman/following{/other_user}","gists_url":"https://api.github.com/users/Adman/gists{/gist_id}","starred_url":"https://api.github.com/users/Adman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adman/subscriptions","organizations_url":"https://api.github.com/users/Adman/orgs","repos_url":"https://api.github.com/users/Adman/repos","events_url":"https://api.github.com/users/Adman/events{/privacy}","received_events_url":"https://api.github.com/users/Adman/received_events","type":"User","site_admin":false},"body":"* shows weekday, date, nameday, holiday and\r\n  international day\r\n* possibility to make other countries config\r\n\r\nSigned-off-by: Adrian Matejov <a.matejov@centrum.sk>","created_at":"2015-05-21T20:44:08Z","updated_at":"2015-06-24T19:36:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10d98377a615a73f0dd307aad0d3dbbf7258ace9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mrshu/brutal-plugins/pulls/103/commits","review_comments_url":"https://api.github.com/repos/mrshu/brutal-plugins/pulls/103/comments","review_comment_url":"https://api.github.com/repos/mrshu/brutal-plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mrshu/brutal-plugins/issues/103/comments","statuses_url":"https://api.github.com/repos/mrshu/brutal-plugins/statuses/607aea211dfa8f01e4def43bde65fc5b98cdcffa","head":{"label":"Adman:sup","ref":"sup","sha":"607aea211dfa8f01e4def43bde65fc5b98cdcffa","user":{"login":"Adman","id":865063,"avatar_url":"https://avatars.githubusercontent.com/u/865063?v=3","gravatar_id":"","url":"https://api.github.com/users/Adman","html_url":"https://github.com/Adman","followers_url":"https://api.github.com/users/Adman/followers","following_url":"https://api.github.com/users/Adman/following{/other_user}","gists_url":"https://api.github.com/users/Adman/gists{/gist_id}","starred_url":"https://api.github.com/users/Adman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adman/subscriptions","organizations_url":"https://api.github.com/users/Adman/orgs","repos_url":"https://api.github.com/users/Adman/repos","events_url":"https://api.github.com/users/Adman/events{/privacy}","received_events_url":"https://api.github.com/users/Adman/received_events","type":"User","site_admin":false},"repo":{"id":27332225,"name":"brutal-plugins","full_name":"Adman/brutal-plugins","owner":{"login":"Adman","id":865063,"avatar_url":"https://avatars.githubusercontent.com/u/865063?v=3","gravatar_id":"","url":"https://api.github.com/users/Adman","html_url":"https://github.com/Adman","followers_url":"https://api.github.com/users/Adman/followers","following_url":"https://api.github.com/users/Adman/following{/other_user}","gists_url":"https://api.github.com/users/Adman/gists{/gist_id}","starred_url":"https://api.github.com/users/Adman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adman/subscriptions","organizations_url":"https://api.github.com/users/Adman/orgs","repos_url":"https://api.github.com/users/Adman/repos","events_url":"https://api.github.com/users/Adman/events{/privacy}","received_events_url":"https://api.github.com/users/Adman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Adman/brutal-plugins","description":"A set of plugins for brutal, the mighty chatbot","fork":true,"url":"https://api.github.com/repos/Adman/brutal-plugins","forks_url":"https://api.github.com/repos/Adman/brutal-plugins/forks","keys_url":"https://api.github.com/repos/Adman/brutal-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Adman/brutal-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Adman/brutal-plugins/teams","hooks_url":"https://api.github.com/repos/Adman/brutal-plugins/hooks","issue_events_url":"https://api.github.com/repos/Adman/brutal-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/Adman/brutal-plugins/events","assignees_url":"https://api.github.com/repos/Adman/brutal-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/Adman/brutal-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/Adman/brutal-plugins/tags","blobs_url":"https://api.github.com/repos/Adman/brutal-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Adman/brutal-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Adman/brutal-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/Adman/brutal-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Adman/brutal-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/Adman/brutal-plugins/languages","stargazers_url":"https://api.github.com/repos/Adman/brutal-plugins/stargazers","contributors_url":"https://api.github.com/repos/Adman/brutal-plugins/contributors","subscribers_url":"https://api.github.com/repos/Adman/brutal-plugins/subscribers","subscription_url":"https://api.github.com/repos/Adman/brutal-plugins/subscription","commits_url":"https://api.github.com/repos/Adman/brutal-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/Adman/brutal-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/Adman/brutal-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/Adman/brutal-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/Adman/brutal-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/Adman/brutal-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Adman/brutal-plugins/merges","archive_url":"https://api.github.com/repos/Adman/brutal-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Adman/brutal-plugins/downloads","issues_url":"https://api.github.com/repos/Adman/brutal-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/Adman/brutal-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/Adman/brutal-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/Adman/brutal-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Adman/brutal-plugins/labels{/name}","releases_url":"https://api.github.com/repos/Adman/brutal-plugins/releases{/id}","created_at":"2014-11-30T10:40:37Z","updated_at":"2014-12-08T18:27:58Z","pushed_at":"2015-06-24T09:07:36Z","git_url":"git://github.com/Adman/brutal-plugins.git","ssh_url":"git@github.com:Adman/brutal-plugins.git","clone_url":"https://github.com/Adman/brutal-plugins.git","svn_url":"https://github.com/Adman/brutal-plugins","homepage":null,"size":450,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mrshu:master","ref":"master","sha":"0881e0b64e53bed7d167ef30cb6ee96fa1c928bc","user":{"login":"mrshu","id":461491,"avatar_url":"https://avatars.githubusercontent.com/u/461491?v=3","gravatar_id":"","url":"https://api.github.com/users/mrshu","html_url":"https://github.com/mrshu","followers_url":"https://api.github.com/users/mrshu/followers","following_url":"https://api.github.com/users/mrshu/following{/other_user}","gists_url":"https://api.github.com/users/mrshu/gists{/gist_id}","starred_url":"https://api.github.com/users/mrshu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrshu/subscriptions","organizations_url":"https://api.github.com/users/mrshu/orgs","repos_url":"https://api.github.com/users/mrshu/repos","events_url":"https://api.github.com/users/mrshu/events{/privacy}","received_events_url":"https://api.github.com/users/mrshu/received_events","type":"User","site_admin":false},"repo":{"id":25275383,"name":"brutal-plugins","full_name":"mrshu/brutal-plugins","owner":{"login":"mrshu","id":461491,"avatar_url":"https://avatars.githubusercontent.com/u/461491?v=3","gravatar_id":"","url":"https://api.github.com/users/mrshu","html_url":"https://github.com/mrshu","followers_url":"https://api.github.com/users/mrshu/followers","following_url":"https://api.github.com/users/mrshu/following{/other_user}","gists_url":"https://api.github.com/users/mrshu/gists{/gist_id}","starred_url":"https://api.github.com/users/mrshu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrshu/subscriptions","organizations_url":"https://api.github.com/users/mrshu/orgs","repos_url":"https://api.github.com/users/mrshu/repos","events_url":"https://api.github.com/users/mrshu/events{/privacy}","received_events_url":"https://api.github.com/users/mrshu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrshu/brutal-plugins","description":"A set of plugins for brutal, the mighty chatbot","fork":false,"url":"https://api.github.com/repos/mrshu/brutal-plugins","forks_url":"https://api.github.com/repos/mrshu/brutal-plugins/forks","keys_url":"https://api.github.com/repos/mrshu/brutal-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrshu/brutal-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrshu/brutal-plugins/teams","hooks_url":"https://api.github.com/repos/mrshu/brutal-plugins/hooks","issue_events_url":"https://api.github.com/repos/mrshu/brutal-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/mrshu/brutal-plugins/events","assignees_url":"https://api.github.com/repos/mrshu/brutal-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/mrshu/brutal-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/mrshu/brutal-plugins/tags","blobs_url":"https://api.github.com/repos/mrshu/brutal-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrshu/brutal-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrshu/brutal-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrshu/brutal-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrshu/brutal-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/mrshu/brutal-plugins/languages","stargazers_url":"https://api.github.com/repos/mrshu/brutal-plugins/stargazers","contributors_url":"https://api.github.com/repos/mrshu/brutal-plugins/contributors","subscribers_url":"https://api.github.com/repos/mrshu/brutal-plugins/subscribers","subscription_url":"https://api.github.com/repos/mrshu/brutal-plugins/subscription","commits_url":"https://api.github.com/repos/mrshu/brutal-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrshu/brutal-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrshu/brutal-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrshu/brutal-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrshu/brutal-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/mrshu/brutal-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrshu/brutal-plugins/merges","archive_url":"https://api.github.com/repos/mrshu/brutal-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrshu/brutal-plugins/downloads","issues_url":"https://api.github.com/repos/mrshu/brutal-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/mrshu/brutal-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/mrshu/brutal-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/mrshu/brutal-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrshu/brutal-plugins/labels{/name}","releases_url":"https://api.github.com/repos/mrshu/brutal-plugins/releases{/id}","created_at":"2014-10-15T21:58:44Z","updated_at":"2015-05-04T21:08:27Z","pushed_at":"2015-06-24T09:07:36Z","git_url":"git://github.com/mrshu/brutal-plugins.git","ssh_url":"git@github.com:mrshu/brutal-plugins.git","clone_url":"https://github.com/mrshu/brutal-plugins.git","svn_url":"https://github.com/mrshu/brutal-plugins","homepage":null,"size":991,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":15,"forks":3,"open_issues":15,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mrshu/brutal-plugins/pulls/103"},"html":{"href":"https://github.com/mrshu/brutal-plugins/pull/103"},"issue":{"href":"https://api.github.com/repos/mrshu/brutal-plugins/issues/103"},"comments":{"href":"https://api.github.com/repos/mrshu/brutal-plugins/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/mrshu/brutal-plugins/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/mrshu/brutal-plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mrshu/brutal-plugins/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/mrshu/brutal-plugins/statuses/607aea211dfa8f01e4def43bde65fc5b98cdcffa"}}}}