{"action":"opened","number":107,"pull_request":{"url":"https://api.github.com/repos/Vhoyon/Discord-Bot/pulls/107","id":202673011,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNjczMDEx","html_url":"https://github.com/Vhoyon/Discord-Bot/pull/107","diff_url":"https://github.com/Vhoyon/Discord-Bot/pull/107.diff","patch_url":"https://github.com/Vhoyon/Discord-Bot/pull/107.patch","issue_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/issues/107","number":107,"state":"open","locked":false,"title":"Add convertion from special format for variables to replacement friendly","user":{"login":"V-ed","id":16652915,"node_id":"MDQ6VXNlcjE2NjUyOTE1","avatar_url":"https://avatars3.githubusercontent.com/u/16652915?v=4","gravatar_id":"","url":"https://api.github.com/users/V-ed","html_url":"https://github.com/V-ed","followers_url":"https://api.github.com/users/V-ed/followers","following_url":"https://api.github.com/users/V-ed/following{/other_user}","gists_url":"https://api.github.com/users/V-ed/gists{/gist_id}","starred_url":"https://api.github.com/users/V-ed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/V-ed/subscriptions","organizations_url":"https://api.github.com/users/V-ed/orgs","repos_url":"https://api.github.com/users/V-ed/repos","events_url":"https://api.github.com/users/V-ed/events{/privacy}","received_events_url":"https://api.github.com/users/V-ed/received_events","type":"User","site_admin":false},"body":"**DO NOT MERGE YET** : I will convert the previous lang files in this PR before merging this feature. Technically speaking, I don't have too as everything will still work the way it was before, but it'll be better if there's a proof of concept attached to this PR.\r\n\r\n---\r\n\r\nThis PR adds the ability to format the lang lines with variables :\r\n\r\n**Before**\r\n```\r\nCommandLanguageNullContent=Usage : %1$s OR %2$s.\r\n```\r\n\r\n**After**\r\n```\r\nCommandLanguageNullContent=Usage : {1} OR {2}.\r\n```\r\n\r\nTo protect a wanted `{#}` in a lang line, simple add a `^` after the first bracket : \r\n```\r\nCommandLanguageNullContent=Usage : {1}{^2}.\r\n```\r\nthat line will then return a well formatted `Usage : %1$s{2}.`, which when replaced (_example with `banana`_) will return : `Usage : banana{2}.`\r\n\r\nCloses #86","created_at":"2018-07-19T20:21:52Z","updated_at":"2018-07-19T20:21:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"V-ed","id":16652915,"node_id":"MDQ6VXNlcjE2NjUyOTE1","avatar_url":"https://avatars3.githubusercontent.com/u/16652915?v=4","gravatar_id":"","url":"https://api.github.com/users/V-ed","html_url":"https://github.com/V-ed","followers_url":"https://api.github.com/users/V-ed/followers","following_url":"https://api.github.com/users/V-ed/following{/other_user}","gists_url":"https://api.github.com/users/V-ed/gists{/gist_id}","starred_url":"https://api.github.com/users/V-ed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/V-ed/subscriptions","organizations_url":"https://api.github.com/users/V-ed/orgs","repos_url":"https://api.github.com/users/V-ed/repos","events_url":"https://api.github.com/users/V-ed/events{/privacy}","received_events_url":"https://api.github.com/users/V-ed/received_events","type":"User","site_admin":false},"assignees":[{"login":"V-ed","id":16652915,"node_id":"MDQ6VXNlcjE2NjUyOTE1","avatar_url":"https://avatars3.githubusercontent.com/u/16652915?v=4","gravatar_id":"","url":"https://api.github.com/users/V-ed","html_url":"https://github.com/V-ed","followers_url":"https://api.github.com/users/V-ed/followers","following_url":"https://api.github.com/users/V-ed/following{/other_user}","gists_url":"https://api.github.com/users/V-ed/gists{/gist_id}","starred_url":"https://api.github.com/users/V-ed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/V-ed/subscriptions","organizations_url":"https://api.github.com/users/V-ed/orgs","repos_url":"https://api.github.com/users/V-ed/repos","events_url":"https://api.github.com/users/V-ed/events{/privacy}","received_events_url":"https://api.github.com/users/V-ed/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":886635227,"node_id":"MDU6TGFiZWw4ODY2MzUyMjc=","url":"https://api.github.com/repos/Vhoyon/Discord-Bot/labels/Enhancement:%20Framework","name":"Enhancement: Framework","color":"84b6eb","default":false},{"id":886605013,"node_id":"MDU6TGFiZWw4ODY2MDUwMTM=","url":"https://api.github.com/repos/Vhoyon/Discord-Bot/labels/Priority:%20Low","name":"Priority: Low","color":"0e8a16","default":false},{"id":901211356,"node_id":"MDU6TGFiZWw5MDEyMTEzNTY=","url":"https://api.github.com/repos/Vhoyon/Discord-Bot/labels/Requires%20:%20Testing","name":"Requires : Testing","color":"11dbaf","default":false},{"id":971565045,"node_id":"MDU6TGFiZWw5NzE1NjUwNDU=","url":"https://api.github.com/repos/Vhoyon/Discord-Bot/labels/language","name":"language","color":"eda2a1","default":false}],"milestone":{"url":"https://api.github.com/repos/Vhoyon/Discord-Bot/milestones/3","html_url":"https://github.com/Vhoyon/Discord-Bot/milestone/3","labels_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/milestones/3/labels","id":3473767,"node_id":"MDk6TWlsZXN0b25lMzQ3Mzc2Nw==","number":3,"title":"v0.9.0","description":"","creator":{"login":"V-ed","id":16652915,"node_id":"MDQ6VXNlcjE2NjUyOTE1","avatar_url":"https://avatars3.githubusercontent.com/u/16652915?v=4","gravatar_id":"","url":"https://api.github.com/users/V-ed","html_url":"https://github.com/V-ed","followers_url":"https://api.github.com/users/V-ed/followers","following_url":"https://api.github.com/users/V-ed/following{/other_user}","gists_url":"https://api.github.com/users/V-ed/gists{/gist_id}","starred_url":"https://api.github.com/users/V-ed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/V-ed/subscriptions","organizations_url":"https://api.github.com/users/V-ed/orgs","repos_url":"https://api.github.com/users/V-ed/repos","events_url":"https://api.github.com/users/V-ed/events{/privacy}","received_events_url":"https://api.github.com/users/V-ed/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":13,"state":"open","created_at":"2018-07-04T20:06:57Z","updated_at":"2018-07-19T20:21:52Z","due_on":"2018-08-14T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/pulls/107/commits","review_comments_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/pulls/107/comments","review_comment_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/issues/107/comments","statuses_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/statuses/f1d6a70e87589db6467762e7b8813a46e8d1fa39","head":{"label":"Vhoyon:feature/translations-variables","ref":"feature/translations-variables","sha":"f1d6a70e87589db6467762e7b8813a46e8d1fa39","user":{"login":"Vhoyon","id":38447514,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4NDQ3NTE0","avatar_url":"https://avatars0.githubusercontent.com/u/38447514?v=4","gravatar_id":"","url":"https://api.github.com/users/Vhoyon","html_url":"https://github.com/Vhoyon","followers_url":"https://api.github.com/users/Vhoyon/followers","following_url":"https://api.github.com/users/Vhoyon/following{/other_user}","gists_url":"https://api.github.com/users/Vhoyon/gists{/gist_id}","starred_url":"https://api.github.com/users/Vhoyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vhoyon/subscriptions","organizations_url":"https://api.github.com/users/Vhoyon/orgs","repos_url":"https://api.github.com/users/Vhoyon/repos","events_url":"https://api.github.com/users/Vhoyon/events{/privacy}","received_events_url":"https://api.github.com/users/Vhoyon/received_events","type":"Organization","site_admin":false},"repo":{"id":93451945,"node_id":"MDEwOlJlcG9zaXRvcnk5MzQ1MTk0NQ==","name":"Discord-Bot","full_name":"Vhoyon/Discord-Bot","owner":{"login":"Vhoyon","id":38447514,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4NDQ3NTE0","avatar_url":"https://avatars0.githubusercontent.com/u/38447514?v=4","gravatar_id":"","url":"https://api.github.com/users/Vhoyon","html_url":"https://github.com/Vhoyon","followers_url":"https://api.github.com/users/Vhoyon/followers","following_url":"https://api.github.com/users/Vhoyon/following{/other_user}","gists_url":"https://api.github.com/users/Vhoyon/gists{/gist_id}","starred_url":"https://api.github.com/users/Vhoyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vhoyon/subscriptions","organizations_url":"https://api.github.com/users/Vhoyon/orgs","repos_url":"https://api.github.com/users/Vhoyon/repos","events_url":"https://api.github.com/users/Vhoyon/events{/privacy}","received_events_url":"https://api.github.com/users/Vhoyon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Vhoyon/Discord-Bot","description":"A Bot that we make for learning stuff out and having fun!","fork":false,"url":"https://api.github.com/repos/Vhoyon/Discord-Bot","forks_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/forks","keys_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/teams","hooks_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/hooks","issue_events_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/events","assignees_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/tags","blobs_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/languages","stargazers_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/stargazers","contributors_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/contributors","subscribers_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/subscribers","subscription_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/subscription","commits_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/merges","archive_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/downloads","issues_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/labels{/name}","releases_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/deployments","created_at":"2017-06-05T22:15:59Z","updated_at":"2018-07-19T20:04:59Z","pushed_at":"2018-07-19T20:13:15Z","git_url":"git://github.com/Vhoyon/Discord-Bot.git","ssh_url":"git@github.com:Vhoyon/Discord-Bot.git","clone_url":"https://github.com/Vhoyon/Discord-Bot.git","svn_url":"https://github.com/Vhoyon/Discord-Bot","homepage":"","size":22769,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":35,"watchers":0,"default_branch":"dev"}},"base":{"label":"Vhoyon:dev","ref":"dev","sha":"bb548bce9d10b38c95637455b485d5241e14071a","user":{"login":"Vhoyon","id":38447514,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4NDQ3NTE0","avatar_url":"https://avatars0.githubusercontent.com/u/38447514?v=4","gravatar_id":"","url":"https://api.github.com/users/Vhoyon","html_url":"https://github.com/Vhoyon","followers_url":"https://api.github.com/users/Vhoyon/followers","following_url":"https://api.github.com/users/Vhoyon/following{/other_user}","gists_url":"https://api.github.com/users/Vhoyon/gists{/gist_id}","starred_url":"https://api.github.com/users/Vhoyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vhoyon/subscriptions","organizations_url":"https://api.github.com/users/Vhoyon/orgs","repos_url":"https://api.github.com/users/Vhoyon/repos","events_url":"https://api.github.com/users/Vhoyon/events{/privacy}","received_events_url":"https://api.github.com/users/Vhoyon/received_events","type":"Organization","site_admin":false},"repo":{"id":93451945,"node_id":"MDEwOlJlcG9zaXRvcnk5MzQ1MTk0NQ==","name":"Discord-Bot","full_name":"Vhoyon/Discord-Bot","owner":{"login":"Vhoyon","id":38447514,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4NDQ3NTE0","avatar_url":"https://avatars0.githubusercontent.com/u/38447514?v=4","gravatar_id":"","url":"https://api.github.com/users/Vhoyon","html_url":"https://github.com/Vhoyon","followers_url":"https://api.github.com/users/Vhoyon/followers","following_url":"https://api.github.com/users/Vhoyon/following{/other_user}","gists_url":"https://api.github.com/users/Vhoyon/gists{/gist_id}","starred_url":"https://api.github.com/users/Vhoyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vhoyon/subscriptions","organizations_url":"https://api.github.com/users/Vhoyon/orgs","repos_url":"https://api.github.com/users/Vhoyon/repos","events_url":"https://api.github.com/users/Vhoyon/events{/privacy}","received_events_url":"https://api.github.com/users/Vhoyon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Vhoyon/Discord-Bot","description":"A Bot that we make for learning stuff out and having fun!","fork":false,"url":"https://api.github.com/repos/Vhoyon/Discord-Bot","forks_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/forks","keys_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/teams","hooks_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/hooks","issue_events_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/events","assignees_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/tags","blobs_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/languages","stargazers_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/stargazers","contributors_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/contributors","subscribers_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/subscribers","subscription_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/subscription","commits_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/merges","archive_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/downloads","issues_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/labels{/name}","releases_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/Vhoyon/Discord-Bot/deployments","created_at":"2017-06-05T22:15:59Z","updated_at":"2018-07-19T20:04:59Z","pushed_at":"2018-07-19T20:13:15Z","git_url":"git://github.com/Vhoyon/Discord-Bot.git","ssh_url":"git@github.com:Vhoyon/Discord-Bot.git","clone_url":"https://github.com/Vhoyon/Discord-Bot.git","svn_url":"https://github.com/Vhoyon/Discord-Bot","homepage":"","size":22769,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":35,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Vhoyon/Discord-Bot/pulls/107"},"html":{"href":"https://github.com/Vhoyon/Discord-Bot/pull/107"},"issue":{"href":"https://api.github.com/repos/Vhoyon/Discord-Bot/issues/107"},"comments":{"href":"https://api.github.com/repos/Vhoyon/Discord-Bot/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/Vhoyon/Discord-Bot/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/Vhoyon/Discord-Bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vhoyon/Discord-Bot/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/Vhoyon/Discord-Bot/statuses/f1d6a70e87589db6467762e7b8813a46e8d1fa39"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":16,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"V-ed"}}