{"action":"created","issue":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/8072","repository_url":"https://api.github.com/repos/HabitRPG/habitrpg","labels_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/8072/labels{/name}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/8072/comments","events_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/8072/events","html_url":"https://github.com/HabitRPG/habitrpg/issues/8072","id":179112497,"number":8072,"title":"when a quest starts, a `system` message should be written to party chat","user":{"login":"Alys","id":1495809,"avatar_url":"https://avatars.githubusercontent.com/u/1495809?v=3","gravatar_id":"","url":"https://api.github.com/users/Alys","html_url":"https://github.com/Alys","followers_url":"https://api.github.com/users/Alys/followers","following_url":"https://api.github.com/users/Alys/following{/other_user}","gists_url":"https://api.github.com/users/Alys/gists{/gist_id}","starred_url":"https://api.github.com/users/Alys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alys/subscriptions","organizations_url":"https://api.github.com/users/Alys/orgs","repos_url":"https://api.github.com/users/Alys/repos","events_url":"https://api.github.com/users/Alys/events{/privacy}","received_events_url":"https://api.github.com/users/Alys/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HabitRPG/habitrpg/labels/priority:%20medium","name":"priority: medium","color":"e99695"},{"url":"https://api.github.com/repos/HabitRPG/habitrpg/labels/status:%20issue:%20help%20welcome%20now","name":"status: issue: help welcome now","color":"0e8a16"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-25T22:15:34Z","updated_at":"2016-10-01T07:49:39Z","closed_at":null,"body":"When a quest starts (i.e., after the invitation phase is finished) a message should be posted to party chat saying something like:\r\n`Your quest, The Call of Octothulu, has started.`\r\n\r\nIt should  be posted by the system user, as for other automated quest messages.\r\n\r\nThis would help players be aware of when they need to watch their Dailies carefully, and would help admins with troubleshooting quest bugs.\r\n\r\nIn addition, I'd like a new `info` field to be added to the system message, listing the UIDs of the participants (see below for an example). This is solely to help with troubleshooting for completed quests so it doesn't need to be visible to the players or accessible through the API (unless any other admins disagree). I've chosen `info` as the field name so that in future it can be used for other purposes too.\r\n\r\n````\r\n        {\r\n            \"id\": \"2498af5a-cf78-4e22-93b4-3f41d79f517c\",\r\n            \"text\": \"`Your quest, The Call of Octothulu, has started.`\",\r\n            \"info\": \"participants: 9264741a-e7df-4202-8eaf-5e32bba01f1c, f58f8ff8-8a7f-4a49-8cda-789354b5be92, 7b55f43a-49b5-4f05-bff1-fb3994311dc0\",\r\n            \"timestamp\": 1474102683475,\r\n            \"likes\": {},\r\n            \"flags\": {},\r\n            \"flagCount\": 0,\r\n            \"uuid\": \"system\"\r\n        },\r\n````"},"comment":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/comments/250898910","html_url":"https://github.com/HabitRPG/habitrpg/issues/8072#issuecomment-250898910","issue_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/8072","id":250898910,"user":{"login":"NicoSiebler","id":1651512,"avatar_url":"https://avatars.githubusercontent.com/u/1651512?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoSiebler","html_url":"https://github.com/NicoSiebler","followers_url":"https://api.github.com/users/NicoSiebler/followers","following_url":"https://api.github.com/users/NicoSiebler/following{/other_user}","gists_url":"https://api.github.com/users/NicoSiebler/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoSiebler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoSiebler/subscriptions","organizations_url":"https://api.github.com/users/NicoSiebler/orgs","repos_url":"https://api.github.com/users/NicoSiebler/repos","events_url":"https://api.github.com/users/NicoSiebler/events{/privacy}","received_events_url":"https://api.github.com/users/NicoSiebler/received_events","type":"User","site_admin":false},"created_at":"2016-10-01T07:49:39Z","updated_at":"2016-10-01T07:49:39Z","body":"@dumindux I already tried to solve this for the first part of the issue in a short time without luck yet and I didn't mention this as this was my first task try. So I hope this could help:\r\nMy guess was to adjust the `startQuest()` method in **server/models/group.js** directly above the `sendTxnEmail()` with a `this.sendChat()` but the object was missing a usable chat to send the message and I didn't look deep enough what I did wrong or what was missing. Maybe it's simply the wrong spot or approach. I would be interested in the proper solution. "}}
{"actor":{"display_login":"NicoSiebler"}}