<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiboma</author_name>
  <author_url>https://blog.hatena.ne.jp/hiboma/</author_url>
  <blog_title>hibomaの日記</blog_title>
  <blog_url>https://hiboma.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>slack で bot を動かしていて 「 別の bot のメッセージに反応して何かする bot 」 を書くユースケースがあります *1 ユースケースの例 例えば こんな メッセージを出す bot がいるとします *2 上記の メッセージ から UUID ( OpenStack の Server UUID ) を取り出して、別の bot で何か処理をしたい場合を考えましょう text を抜き出して正規表現で UUID のマッチを試みる attachments や blocks の Hash/Array をイテレートして UUID を取り出す といったアプローチでメッセージを扱うかと思います。一…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiboma.hatenadiary.jp%2Fentry%2F2022%2F08%2F05%2F113854&quot; title=&quot;slack: metadata で構造化されたデータを扱う - bot 間の連携に使う実装例 - hibomaの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hiboma/20220805/20220805110727.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-08-05 11:38:54</published>
  <title>slack: metadata で構造化されたデータを扱う - bot 間の連携に使う実装例</title>
  <type>rich</type>
  <url>https://hiboma.hatenadiary.jp/entry/2022/08/05/113854</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
