{"action":"opened","number":287,"pull_request":{"url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/pulls/287","id":70981995,"html_url":"https://github.com/SexualRhinoceros/MusicBot/pull/287","diff_url":"https://github.com/SexualRhinoceros/MusicBot/pull/287.diff","patch_url":"https://github.com/SexualRhinoceros/MusicBot/pull/287.patch","issue_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/issues/287","number":287,"state":"open","locked":false,"title":"Make strings configurable","user":{"login":"jaydenkieran","id":7265189,"avatar_url":"https://avatars.githubusercontent.com/u/7265189?v=3","gravatar_id":"","url":"https://api.github.com/users/jaydenkieran","html_url":"https://github.com/jaydenkieran","followers_url":"https://api.github.com/users/jaydenkieran/followers","following_url":"https://api.github.com/users/jaydenkieran/following{/other_user}","gists_url":"https://api.github.com/users/jaydenkieran/gists{/gist_id}","starred_url":"https://api.github.com/users/jaydenkieran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaydenkieran/subscriptions","organizations_url":"https://api.github.com/users/jaydenkieran/orgs","repos_url":"https://api.github.com/users/jaydenkieran/repos","events_url":"https://api.github.com/users/jaydenkieran/events{/privacy}","received_events_url":"https://api.github.com/users/jaydenkieran/received_events","type":"User","site_admin":false},"body":"Currently up to date with: **1.9.5-review-2016.5.19**\r\nTo test/use from my repo: [Read here](https://github.com/jaydenkieran/MusicBot/blob/mightybot/README.md) (**at your own risk**)\r\n\r\n### What does it do?\r\n\r\nThis feature has been requested a lot by users - the ability to configure strings and responses within the bot without knowing where they are in the code or destructively modifying the code.\r\n\r\nThis is my implementation of it. There may be better, cleaner methods, but this seems to work fine (besides a few minor bugs).\r\n\r\nIn my own and most other people's opinions, this is needed to allow individuality. Currently, people using this bot will more than likely have the same generic responses and output, with no way to make it \"their own\". This feature allows for that.\r\n\r\n### How does it work?\r\n\r\nEditing strings is done via `strings.ini`. If the strings aren't found/they are empty, they'll fallback to defaults. Strings can contain various **placeholders** which are indicated by comments above the option(s) and look something like `{song}`.\r\n\r\n**For the more technical:** This implementation uses `ConfigParser` (the same way as the `Config` and `Permissions` classes) to parse an `.ini` file.\r\n\r\n### What strings can I modify?\r\n\r\nYou can modify most strings that are **bot responses**, such as `Enqueued **{songs}** songs to be played. Position in queue: {position}`. You can also modify _some_ **error responses**, although a few can not be customized for the sake of ease.\r\n\r\n**You can't modify console output**. This is important for when there are issues with the bot. When you, for example, require help and come to the help server, usually your issue would be noted in the console. It's hard to anticipate what your issue might be if you've modified what the text is in the console window.\r\n\r\nThere may be room for improvement in disallowing other strings from being customized that can help with debugging, such as `Unable to change avatar: {exception}`.","created_at":"2016-05-22T16:52:10Z","updated_at":"2016-05-22T16:52:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/pulls/287/commits","review_comments_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/pulls/287/comments","review_comment_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/issues/287/comments","statuses_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/statuses/130e0fc3ec4624ec85d94ed9eb752cdb71a2d3e4","head":{"label":"jaydenkieran:strings","ref":"strings","sha":"130e0fc3ec4624ec85d94ed9eb752cdb71a2d3e4","user":{"login":"jaydenkieran","id":7265189,"avatar_url":"https://avatars.githubusercontent.com/u/7265189?v=3","gravatar_id":"","url":"https://api.github.com/users/jaydenkieran","html_url":"https://github.com/jaydenkieran","followers_url":"https://api.github.com/users/jaydenkieran/followers","following_url":"https://api.github.com/users/jaydenkieran/following{/other_user}","gists_url":"https://api.github.com/users/jaydenkieran/gists{/gist_id}","starred_url":"https://api.github.com/users/jaydenkieran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaydenkieran/subscriptions","organizations_url":"https://api.github.com/users/jaydenkieran/orgs","repos_url":"https://api.github.com/users/jaydenkieran/repos","events_url":"https://api.github.com/users/jaydenkieran/events{/privacy}","received_events_url":"https://api.github.com/users/jaydenkieran/received_events","type":"User","site_admin":false},"repo":{"id":57155147,"name":"MusicBot","full_name":"jaydenkieran/MusicBot","owner":{"login":"jaydenkieran","id":7265189,"avatar_url":"https://avatars.githubusercontent.com/u/7265189?v=3","gravatar_id":"","url":"https://api.github.com/users/jaydenkieran","html_url":"https://github.com/jaydenkieran","followers_url":"https://api.github.com/users/jaydenkieran/followers","following_url":"https://api.github.com/users/jaydenkieran/following{/other_user}","gists_url":"https://api.github.com/users/jaydenkieran/gists{/gist_id}","starred_url":"https://api.github.com/users/jaydenkieran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaydenkieran/subscriptions","organizations_url":"https://api.github.com/users/jaydenkieran/orgs","repos_url":"https://api.github.com/users/jaydenkieran/repos","events_url":"https://api.github.com/users/jaydenkieran/events{/privacy}","received_events_url":"https://api.github.com/users/jaydenkieran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jaydenkieran/MusicBot","description":"","fork":true,"url":"https://api.github.com/repos/jaydenkieran/MusicBot","forks_url":"https://api.github.com/repos/jaydenkieran/MusicBot/forks","keys_url":"https://api.github.com/repos/jaydenkieran/MusicBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jaydenkieran/MusicBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jaydenkieran/MusicBot/teams","hooks_url":"https://api.github.com/repos/jaydenkieran/MusicBot/hooks","issue_events_url":"https://api.github.com/repos/jaydenkieran/MusicBot/issues/events{/number}","events_url":"https://api.github.com/repos/jaydenkieran/MusicBot/events","assignees_url":"https://api.github.com/repos/jaydenkieran/MusicBot/assignees{/user}","branches_url":"https://api.github.com/repos/jaydenkieran/MusicBot/branches{/branch}","tags_url":"https://api.github.com/repos/jaydenkieran/MusicBot/tags","blobs_url":"https://api.github.com/repos/jaydenkieran/MusicBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jaydenkieran/MusicBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jaydenkieran/MusicBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/jaydenkieran/MusicBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jaydenkieran/MusicBot/statuses/{sha}","languages_url":"https://api.github.com/repos/jaydenkieran/MusicBot/languages","stargazers_url":"https://api.github.com/repos/jaydenkieran/MusicBot/stargazers","contributors_url":"https://api.github.com/repos/jaydenkieran/MusicBot/contributors","subscribers_url":"https://api.github.com/repos/jaydenkieran/MusicBot/subscribers","subscription_url":"https://api.github.com/repos/jaydenkieran/MusicBot/subscription","commits_url":"https://api.github.com/repos/jaydenkieran/MusicBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/jaydenkieran/MusicBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/jaydenkieran/MusicBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/jaydenkieran/MusicBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/jaydenkieran/MusicBot/contents/{+path}","compare_url":"https://api.github.com/repos/jaydenkieran/MusicBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jaydenkieran/MusicBot/merges","archive_url":"https://api.github.com/repos/jaydenkieran/MusicBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jaydenkieran/MusicBot/downloads","issues_url":"https://api.github.com/repos/jaydenkieran/MusicBot/issues{/number}","pulls_url":"https://api.github.com/repos/jaydenkieran/MusicBot/pulls{/number}","milestones_url":"https://api.github.com/repos/jaydenkieran/MusicBot/milestones{/number}","notifications_url":"https://api.github.com/repos/jaydenkieran/MusicBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jaydenkieran/MusicBot/labels{/name}","releases_url":"https://api.github.com/repos/jaydenkieran/MusicBot/releases{/id}","deployments_url":"https://api.github.com/repos/jaydenkieran/MusicBot/deployments","created_at":"2016-04-26T19:14:00Z","updated_at":"2016-05-12T04:15:14Z","pushed_at":"2016-05-22T13:42:36Z","git_url":"git://github.com/jaydenkieran/MusicBot.git","ssh_url":"git@github.com:jaydenkieran/MusicBot.git","clone_url":"https://github.com/jaydenkieran/MusicBot.git","svn_url":"https://github.com/jaydenkieran/MusicBot","homepage":null,"size":50109,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"mightybot"}},"base":{"label":"SexualRhinoceros:review","ref":"review","sha":"2dc05227401e0228f498ccba8496face27413390","user":{"login":"SexualRhinoceros","id":6531393,"avatar_url":"https://avatars.githubusercontent.com/u/6531393?v=3","gravatar_id":"","url":"https://api.github.com/users/SexualRhinoceros","html_url":"https://github.com/SexualRhinoceros","followers_url":"https://api.github.com/users/SexualRhinoceros/followers","following_url":"https://api.github.com/users/SexualRhinoceros/following{/other_user}","gists_url":"https://api.github.com/users/SexualRhinoceros/gists{/gist_id}","starred_url":"https://api.github.com/users/SexualRhinoceros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SexualRhinoceros/subscriptions","organizations_url":"https://api.github.com/users/SexualRhinoceros/orgs","repos_url":"https://api.github.com/users/SexualRhinoceros/repos","events_url":"https://api.github.com/users/SexualRhinoceros/events{/privacy}","received_events_url":"https://api.github.com/users/SexualRhinoceros/received_events","type":"User","site_admin":false},"repo":{"id":48729353,"name":"MusicBot","full_name":"SexualRhinoceros/MusicBot","owner":{"login":"SexualRhinoceros","id":6531393,"avatar_url":"https://avatars.githubusercontent.com/u/6531393?v=3","gravatar_id":"","url":"https://api.github.com/users/SexualRhinoceros","html_url":"https://github.com/SexualRhinoceros","followers_url":"https://api.github.com/users/SexualRhinoceros/followers","following_url":"https://api.github.com/users/SexualRhinoceros/following{/other_user}","gists_url":"https://api.github.com/users/SexualRhinoceros/gists{/gist_id}","starred_url":"https://api.github.com/users/SexualRhinoceros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SexualRhinoceros/subscriptions","organizations_url":"https://api.github.com/users/SexualRhinoceros/orgs","repos_url":"https://api.github.com/users/SexualRhinoceros/repos","events_url":"https://api.github.com/users/SexualRhinoceros/events{/privacy}","received_events_url":"https://api.github.com/users/SexualRhinoceros/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SexualRhinoceros/MusicBot","description":"","fork":false,"url":"https://api.github.com/repos/SexualRhinoceros/MusicBot","forks_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/forks","keys_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/teams","hooks_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/hooks","issue_events_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/issues/events{/number}","events_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/events","assignees_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/assignees{/user}","branches_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/branches{/branch}","tags_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/tags","blobs_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/git/refs{/sha}","trees_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/statuses/{sha}","languages_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/languages","stargazers_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/stargazers","contributors_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/contributors","subscribers_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/subscribers","subscription_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/subscription","commits_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/commits{/sha}","git_commits_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/git/commits{/sha}","comments_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/comments{/number}","issue_comment_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/issues/comments{/number}","contents_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/contents/{+path}","compare_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/merges","archive_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/downloads","issues_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/issues{/number}","pulls_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/pulls{/number}","milestones_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/milestones{/number}","notifications_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/labels{/name}","releases_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/releases{/id}","deployments_url":"https://api.github.com/repos/SexualRhinoceros/MusicBot/deployments","created_at":"2015-12-29T05:30:11Z","updated_at":"2016-05-22T15:11:34Z","pushed_at":"2016-05-20T20:50:02Z","git_url":"git://github.com/SexualRhinoceros/MusicBot.git","ssh_url":"git@github.com:SexualRhinoceros/MusicBot.git","clone_url":"https://github.com/SexualRhinoceros/MusicBot.git","svn_url":"https://github.com/SexualRhinoceros/MusicBot","homepage":null,"size":50587,"stargazers_count":250,"watchers_count":250,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":162,"mirror_url":null,"open_issues_count":79,"forks":162,"open_issues":79,"watchers":250,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/SexualRhinoceros/MusicBot/pulls/287"},"html":{"href":"https://github.com/SexualRhinoceros/MusicBot/pull/287"},"issue":{"href":"https://api.github.com/repos/SexualRhinoceros/MusicBot/issues/287"},"comments":{"href":"https://api.github.com/repos/SexualRhinoceros/MusicBot/issues/287/comments"},"review_comments":{"href":"https://api.github.com/repos/SexualRhinoceros/MusicBot/pulls/287/comments"},"review_comment":{"href":"https://api.github.com/repos/SexualRhinoceros/MusicBot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SexualRhinoceros/MusicBot/pulls/287/commits"},"statuses":{"href":"https://api.github.com/repos/SexualRhinoceros/MusicBot/statuses/130e0fc3ec4624ec85d94ed9eb752cdb71a2d3e4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":18,"additions":476,"deletions":112,"changed_files":4}}
{"actor":{"display_login":"jaydenkieran"}}