{"action":"opened","issue":{"url":"https://api.github.com/repos/neonobjclash/calebj-cogs/issues/6","repository_url":"https://api.github.com/repos/neonobjclash/calebj-cogs","labels_url":"https://api.github.com/repos/neonobjclash/calebj-cogs/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/neonobjclash/calebj-cogs/issues/6/comments","events_url":"https://api.github.com/repos/neonobjclash/calebj-cogs/issues/6/events","html_url":"https://github.com/neonobjclash/calebj-cogs/issues/6","id":183108605,"number":6,"title":"Duel protection bug","user":{"login":"OrdinatorStouff","id":6283913,"avatar_url":"https://avatars.githubusercontent.com/u/6283913?v=3","gravatar_id":"","url":"https://api.github.com/users/OrdinatorStouff","html_url":"https://github.com/OrdinatorStouff","followers_url":"https://api.github.com/users/OrdinatorStouff/followers","following_url":"https://api.github.com/users/OrdinatorStouff/following{/other_user}","gists_url":"https://api.github.com/users/OrdinatorStouff/gists{/gist_id}","starred_url":"https://api.github.com/users/OrdinatorStouff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrdinatorStouff/subscriptions","organizations_url":"https://api.github.com/users/OrdinatorStouff/orgs","repos_url":"https://api.github.com/users/OrdinatorStouff/repos","events_url":"https://api.github.com/users/OrdinatorStouff/events{/privacy}","received_events_url":"https://api.github.com/users/OrdinatorStouff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-14T17:39:04Z","updated_at":"2016-10-14T17:39:04Z","closed_at":null,"body":"I found a bug in duel.py when a user is given protection, the !duels leaderboard fails to display. The problem seems to be due to the fact that \"protection\" is added to the config json at the same level as other users' stats. When the duels command tried to parse all users' stats it fails because \"protection\" is not a valid user ID.  \r\n  \r\nOther suggestions:  \r\nProtected users are not allowed to initiate a duel--that's the price they pay.\r\nProtected users do not get a \"free\" win when someone else duels them\r\nOther users do not get an unfair \"loss\" when dueling a protected user (or maybe give a \"confirmation\" to ask if they're sure they want to duel someone that's under protection)\r\n\r\nI hacked in these changes/fixes and also added many more procedurally generated movesets and made the damage done affected by a slight random variation but I don't know how to use git or initiate a pull request properly (plus I'm new with python and know for a fact my changes are inefficient and not the best way to handle things) "}}
{"actor":{"display_login":"OrdinatorStouff"}}