From ae950953f15ac8170fcac0d70e0abe3dcffe4c47 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Sat, 6 Aug 2016 12:55:41 -0400 Subject: [PATCH] add bounty, slack icon for bounties, move misplaced bounty --- .../bounty/slack-greeting.md | 0 posts/bounty/slack-lbry-url-handler.md | 15 +++++++++++++++ view/template/bounty/list.php | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) rename slack-greeting.md => posts/bounty/slack-greeting.md (100%) create mode 100644 posts/bounty/slack-lbry-url-handler.md diff --git a/slack-greeting.md b/posts/bounty/slack-greeting.md similarity index 100% rename from slack-greeting.md rename to posts/bounty/slack-greeting.md diff --git a/posts/bounty/slack-lbry-url-handler.md b/posts/bounty/slack-lbry-url-handler.md new file mode 100644 index 00000000..d2d05b1d --- /dev/null +++ b/posts/bounty/slack-lbry-url-handler.md @@ -0,0 +1,15 @@ +--- +category: slack +title: Create a URL Handler for Slack +award: 1000 +status: available +date: '2016-07-01' +--- + +Create a script or Slackbot that will: + +- Use the Slack API to monitor all messages in all channels +- Detect messages sent with LBRY URLs, e.g. `lbry://oprahbees` +- Look up LBRY URLs +- Detect if the image resolves to a GIF/GIFV and has no license payment +- Fetch and display the image diff --git a/view/template/bounty/list.php b/view/template/bounty/list.php index 666113ff..ba9390cb 100644 --- a/view/template/bounty/list.php +++ b/view/template/bounty/list.php @@ -50,7 +50,8 @@ case 'android': echo 'icon-android'; break; case 'ios': echo 'icon-apple'; break; case 'browser': echo 'icon-globe'; break; - case 'human': echo 'icon-users'; break; + case 'human': echo 'icon-users'; break; + case 'slack': echo 'icon-slack'; break; default: echo 'icon-dollar'; break; } ?> ">