{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3858","repository_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3858/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3858/comments","events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3858/events","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/3858","id":171015401,"number":3858,"title":"Disabling/enabling other tasks at runtime","user":{"login":"net8q","id":20913700,"avatar_url":"https://avatars.githubusercontent.com/u/20913700?v=3","gravatar_id":"","url":"https://api.github.com/users/net8q","html_url":"https://github.com/net8q","followers_url":"https://api.github.com/users/net8q/followers","following_url":"https://api.github.com/users/net8q/following{/other_user}","gists_url":"https://api.github.com/users/net8q/gists{/gist_id}","starred_url":"https://api.github.com/users/net8q/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/net8q/subscriptions","organizations_url":"https://api.github.com/users/net8q/orgs","repos_url":"https://api.github.com/users/net8q/repos","events_url":"https://api.github.com/users/net8q/events{/privacy}","received_events_url":"https://api.github.com/users/net8q/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/labels/Enhancement","name":"Enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/labels/Feature%20Request","name":"Feature Request","color":"5319e7"},{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/labels/Help%20Wanted","name":"Help Wanted","color":"e06b04"},{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/labels/New%20Functionality","name":"New Functionality","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-13T16:13:19Z","updated_at":"2016-08-24T03:25:12Z","closed_at":"2016-08-24T02:28:26Z","body":"I'm developping a somewhat sizable plugin (thanks to the new plugin config) mainly for fun and learning python.\r\n\r\n### Problem :\r\nI'd like to use a navigator in one of my tasks, and fallback on a known one (Spiral or whatever) if conditions are not met, but I think it's quite ugly, and users should be able to use the config file to setup their own fallback navigator.\r\n\r\n### Feature :\r\n\r\n* Add for each task an optional \"name\" field from config, with default value the task class name\r\n* Add a function to get the task instance with given name from the bot\r\n* Add a function to enable/disable running this task during runtime (as opposed to editing config to set enabled to true or false and relaunching bot)\r\n\r\n\"Manager\" tasks could then be written to switch the tasks around based on conditions : \r\n* Having several FollowPath tasks being switched  according to time (at day around your workplace, at night around your home)\r\n* Having FollowSpiral take cleanly over MoveToFort when bag is full\r\netc.\r\n\r\n### Other Information\r\nOS: Linux\r\nBranch: dev\r\nGit Commit:  git merge-base HEAD origin/dev : d4200e9b\r\nPython Version: Python 2.7.10\r\n"},"comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/comments/241947404","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/3858#issuecomment-241947404","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3858","id":241947404,"user":{"login":"mjmadsen","id":18265937,"avatar_url":"https://avatars.githubusercontent.com/u/18265937?v=3","gravatar_id":"","url":"https://api.github.com/users/mjmadsen","html_url":"https://github.com/mjmadsen","followers_url":"https://api.github.com/users/mjmadsen/followers","following_url":"https://api.github.com/users/mjmadsen/following{/other_user}","gists_url":"https://api.github.com/users/mjmadsen/gists{/gist_id}","starred_url":"https://api.github.com/users/mjmadsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjmadsen/subscriptions","organizations_url":"https://api.github.com/users/mjmadsen/orgs","repos_url":"https://api.github.com/users/mjmadsen/repos","events_url":"https://api.github.com/users/mjmadsen/events{/privacy}","received_events_url":"https://api.github.com/users/mjmadsen/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T03:25:11Z","updated_at":"2016-08-24T03:25:11Z","body":"There should be an enable/disable option on all options now. #4603"}}
{"actor":{"display_login":"mjmadsen"}}