How do you embed images in your responses from botler?

I'm digging this HipChat bot, and turned a bunch of folks onto using it. However, I see a pretty epic service within Botler in your readme to show a How I Met Your Mother salute gif for terms like general idea, major deal, etc... but

a.) can't figure out how to cleanly embed image/gif without it spitting out the link and then showing the gif

b.) the capture text isn't working as I'd expect

Pasting exported service here and hopefully you can point out my mistakes:
{"name":"himym","event":"room_message","pattern":"[Gg]eneral [Ii]dea|[Mm]ajor [Dd]eal","reply":"http://i.giphy.com/jC2fYLDzGN53W.gif\n\n*Salute*\n\n{{$1}}","replyHtml":false,"notify":false,"enable":true}

1 answer

1 accepted

0 votes
Accepted answer

I figured out how to embed the image- just treat it like html:

<img alt="Embedded Image" width="300" height="220" src="http://i.giphy.com/jC2fYLDzGN53W.gif"/>

Close enough:

{"name":"himym","event":"room_message","pattern":"^general(.*)?","reply":"<img alt=\"Embedded Image\" width=\"350\" height=\"250\" src=\"http://i.giphy.com/jC2fYLDzGN53W.gif\"/>\n<br>\n<br>\n<b>*Salute*</b>\n<br>\n<b>General {{$1}}</b>","replyHtml":true,"notify":false,"enable":true}

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 14, 2018 in Hipchat Cloud

Hipchat Cloud and Stride End of Life: Just over 90 days away

Earlier this year we made the difficult decision to discontinue our team messaging tools, Stride and Hipchat. The end of life date for Stride and Hipchat Cloud is quickly approaching - February 15, 2...

19,477 views 0 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you