You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lot of fun things can be created by a good integration with the reactions in slack.
Slack does not provide an id to messages i the event-api when given reactions but the timestamp ts of the message.
The posted haiku:
{'bot_id': 'XXXXXXXXX', 'suppress_notification': False, 'type': 'message', 'text': '', 'user': 'XXXXXXXXX', 'team': 'XXXXXXXXX', 'bot_profile': {'id': 'XXXXXXXXX', 'deleted': False, 'name': 'bot', 'updated': 1476284487, 'app_id': 'XXXXXXXXX', 'icons': {'image_36': 'https://url.com/image', 'image_48': 'https://url.com/image', 'image_72': 'https://url.com/image'}, 'team_id': 'XXXXXXXXX'}, 'attachments': [{'fallback': 'Haiku #3331 av Sindre Bilden', 'text': 'this is just a test\nthere is nothing to see here\nplease move along now', 'title': 'Haiku #3331', 'footer': '- Sindre Bilden', 'id': 1, 'color': '5d799e'}], 'source_team': 'XXXXXXXXX', 'user_team': 'XXXXXXXXX', 'channel': 'XXXXXXXXX', 'event_ts': '1594409951.033600', 'ts': '1594409951.033600'}
The timestamp ts: '1594409951.033600' acts as an identifier in the channel.
If haikubot listens for its own post of haikus, the timestamp in the database can be updated to match the timestamp from slack, thus indirectly provide an id.
The text was updated successfully, but these errors were encountered:
A lot of fun things can be created by a good integration with the reactions in slack.
Slack does not provide an id to messages i the event-api when given reactions but the timestamp
ts
of the message.The posted haiku:
Reaction to the posted haiku:
The timestamp
ts: '1594409951.033600'
acts as an identifier in the channel.If haikubot listens for its own post of haikus, the timestamp in the database can be updated to match the timestamp from slack, thus indirectly provide an id.
The text was updated successfully, but these errors were encountered: