Stream: committers
Topic: robotic-assistance
Josh Mandel (May 02 2016 at 22:39):
To commemorate the greatest loss of functionality from our Skype days, let me introduce...
https://gist.github.com/jmandel/b7732bab9a5b678e75c09ad3c12163f3
Josh Mandel (May 02 2016 at 22:39):
!dice
FHIR Bot (May 02 2016 at 22:39):
3
Ewout Kramer (May 02 2016 at 22:40):
Welcome!
Ewout Kramer (May 02 2016 at 22:40):
!weather Boston
Ewout Kramer (May 02 2016 at 22:40):
;-)
Josh Mandel (May 02 2016 at 22:40):
Sorry, it's a specialist.
Josh Mandel (May 02 2016 at 22:41):
But the bot API is really easy ;-)
Ewout Kramer (May 02 2016 at 22:41):
I can see that in your gist, yes.
Ewout Kramer (May 02 2016 at 22:42):
This would do:
if m['content'].startswith("!weather Boston"): client.send_message({ "type": m['type'], "content": str('very rainy and cold'), "subject": m['subject'], "to": m['display_recipient'], })
Josh Mandel (May 02 2016 at 22:42):
OK, deployed.
Josh Mandel (May 02 2016 at 22:42):
!weather boston
Josh Mandel (May 02 2016 at 22:42):
Hmm, mayb enot.
Josh Mandel (May 02 2016 at 22:43):
!dice
FHIR Bot (May 02 2016 at 22:43):
4
Ewout Kramer (May 02 2016 at 22:43):
!weather Boston
FHIR Bot (May 02 2016 at 22:43):
very rainy and cold
Ewout Kramer (May 02 2016 at 22:43):
;-)
Josh Mandel (May 02 2016 at 22:43):
Oh, that was really slow.
Josh Mandel (May 02 2016 at 22:43):
Oh, capital B
Ewout Kramer (May 02 2016 at 22:43):
No, you used a non-capital
Ewout Kramer (May 02 2016 at 22:43):
y
Ewout Kramer (May 02 2016 at 22:43):
Well, currently it is actually dry in Boston. We'll grab a bike and go out for dinner ;-)
Josh Mandel (May 02 2016 at 22:43):
!weather BoStON, yo?
Josh Mandel (May 02 2016 at 22:44):
!weather BOStOn
FHIR Bot (May 02 2016 at 22:44):
very rainy and cold
Josh Mandel (May 02 2016 at 22:44):
Perfect.
Brian Postlethwaite (May 02 2016 at 23:17):
Thanks Josh! I was missing the fhirbot.
Grahame Grieve (May 03 2016 at 03:19):
so we going to add whether in Montreal?
Michael van der Zel (May 03 2016 at 18:16):
!dice
FHIR Bot (May 03 2016 at 18:16):
3
Michael van der Zel (May 03 2016 at 18:16):
!weather montreal
Last updated: Apr 12 2022 at 19:14 UTC