{"action":"opened","issue":{"url":"https://api.github.com/repos/hangoutsbot/hangoutsbot/issues/526","repository_url":"https://api.github.com/repos/hangoutsbot/hangoutsbot","labels_url":"https://api.github.com/repos/hangoutsbot/hangoutsbot/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/hangoutsbot/hangoutsbot/issues/526/comments","events_url":"https://api.github.com/repos/hangoutsbot/hangoutsbot/issues/526/events","html_url":"https://github.com/hangoutsbot/hangoutsbot/issues/526","id":138253836,"number":526,"title":"SlackRTM issue since v2.7.7","user":{"login":"filemaniac","id":17621522,"avatar_url":"https://avatars.githubusercontent.com/u/17621522?v=3","gravatar_id":"","url":"https://api.github.com/users/filemaniac","html_url":"https://github.com/filemaniac","followers_url":"https://api.github.com/users/filemaniac/followers","following_url":"https://api.github.com/users/filemaniac/following{/other_user}","gists_url":"https://api.github.com/users/filemaniac/gists{/gist_id}","starred_url":"https://api.github.com/users/filemaniac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filemaniac/subscriptions","organizations_url":"https://api.github.com/users/filemaniac/orgs","repos_url":"https://api.github.com/users/filemaniac/repos","events_url":"https://api.github.com/users/filemaniac/events{/privacy}","received_events_url":"https://api.github.com/users/filemaniac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-03T18:03:48Z","updated_at":"2016-03-03T18:03:48Z","closed_at":null,"body":"Since the commit from [99262b4](https://github.com/hangoutsbot/hangoutsbot/commit/99262b4ae09f0c029c7896e6eed3bf7a3649729b), I'm having issues with issuing certain commands to the bot from either Hangouts or Slack.  Errors seem to indicate that a 'str' is expected but is getting a 'dict' instead.  It is still syncing between Hangouts and Slack, just not allowing for most Slack related commands.\r\n\r\nSo far, from the Slack end, it responds to `whereami` but throws errors for commands like \r\n`help`, `listsyncs`, `admins`, `whois <@username>`.  From Hangouts, it responds to all non Slack related commands and to `/bot slacks`, but every Slack related command like `/bot listsyncs` throws the same `TypeError: the JSON object must be str, not 'dict'` that shows in console.\r\n\r\n```\r\n12:18:40 ERROR plugins.slackrtm: error in handleCommands: <class 'TypeError'>(the JSON object must be str, not 'dict')\r\nTraceback (most recent call last):\r\n  File \"/root/hangoutsbot/hangupsbot/plugins/slackrtm.py\", line 374, in get_slackDM\r\n    self.dminfos[userid] = json.loads(self.slack.api_call('im.open', user = userid).decode(\"utf-8\"))['channel']\r\nAttributeError: 'dict' object has no attribute 'decode'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/root/hangoutsbot/hangupsbot/plugins/slackrtm.py\", line 1145, in handle_reply\r\n    self.handleCommands(msg)\r\n  File \"/root/hangoutsbot/hangupsbot/plugins/slackrtm.py\", line 721, in handleCommands\r\n    userID = self.get_slackDM(msg.user)\r\n  File \"/root/hangoutsbot/hangupsbot/plugins/slackrtm.py\", line 376, in get_slackDM\r\n    self.dminfos[userid] = json.loads(self.slack.api_call('im.open', user = userid))['channel']\r\n  File \"/usr/lib/python3.4/json/__init__.py\", line 312, in loads\r\n    s.__class__.__name__))\r\nTypeError: the JSON object must be str, not 'dict'\r\n```\r\n\r\n```\r\n12:30:25 ERROR plugins.slackrtm: error in handleCommands: <class 'TypeError'>(the JSON object must be str, not 'dict')\r\nTraceback (most recent call last):\r\n  File \"/root/hangoutsbot/hangupsbot/plugins/slackrtm.py\", line 374, in get_slackDM\r\n    self.dminfos[userid] = json.loads(self.slack.api_call('im.open', user = userid).decode(\"utf-8\"))['channel']\r\nAttributeError: 'dict' object has no attribute 'decode'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/root/hangoutsbot/hangupsbot/plugins/slackrtm.py\", line 1145, in handle_reply\r\n    self.handleCommands(msg)\r\n  File \"/root/hangoutsbot/hangupsbot/plugins/slackrtm.py\", line 721, in handleCommands\r\n    userID = self.get_slackDM(msg.user)\r\n  File \"/root/hangoutsbot/hangupsbot/plugins/slackrtm.py\", line 376, in get_slackDM\r\n    self.dminfos[userid] = json.loads(self.slack.api_call('im.open', user = userid))['channel']\r\n  File \"/usr/lib/python3.4/json/__init__.py\", line 312, in loads\r\n    s.__class__.__name__))\r\nTypeError: the JSON object must be str, not 'dict'\r\n```"}}