Build a Slack App with MongoDB Stitch ☞ http://tech.learn4startup.com/92b865d653 #MongoDB #JavaScript #Nodejs
seen from United States

seen from United States
seen from Greece
seen from United States

seen from Türkiye
seen from United States
seen from Germany
seen from Pakistan
seen from Malaysia
seen from Yemen
seen from Russia
seen from Brazil
seen from United States

seen from Ukraine
seen from Bangladesh

seen from Bangladesh

seen from Brazil

seen from Germany

seen from Martinique
seen from Brazil
Build a Slack App with MongoDB Stitch ☞ http://tech.learn4startup.com/92b865d653 #MongoDB #JavaScript #Nodejs

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Slack Vs Teams Vs Whatsapp Vs Onne. What is best for messaging?
Slack, Teams, WhatsApp, Onne, Discord, Google chat, etc are some of the common tools employers, organizers or business owners use. These tools aim to increase business productivity and have effective engage colleagues, members, users or customers.
Slack is a collaboration hub that offers organized spaces called channels – to bring teams together for sharing information using relevant tools.
Microsoft Teams allows you to chat, call, and even collaborate with your team members in just one place.
Whatsapp, the most popular messaging or chat app is practically used by everyone, be it for personal communication or engaging with their team members.
Onne app is a simpler and organized way to do business. You can communicate, remind, report, store and more, from a single app. It allows you to automate tasks and improve customer engagement. It is a freemium app with most of the important features free of use. The app offers a single platform with multiple tools, which helps us save time and be more organised. Some of the features in Onne are chat, posts, threaded messages, alerts, online meetings, forms and invoice.
Read More: https://blog.onne.world/slack-vs-teams-vs-whatsapp-vs-onne-what-is-best-for-messaging/
Learn how app like slack was able to crack such a big business deal with Salesforce. Know about deal and features of Slack that made it happen
Slack's Quarterly Billing Growth Is Slowing Because Of Exemptions Due To Coronavirus https://ift.tt/336HT1Y
Slack's Quarterly Billing Growth Is Slowing Because Of Exemptions Due To Coronavirus
Slack's Quarterly Billing Growth Is Slowing Because Of Compromises Due To Coronavirus
Slack said that it provided loans, installment payments, and less than one year's billing time to help the users overcome the economic downturn. (adsbygoogle = window.adsbygoogle || []).push({}); Slack Technologies' charging development, a key pointer of future income, eased back in the subsequent quarter and the working environment informing application proprietor said it took an $11 million (generally Rs. 81 crores) hit in the main half because of the COVID-19 related concessions. (adsbygoogle = window.adsbygoogle || []).push({}); The organization said it offered credits, installment in portions, and charging terms of not exactly a year to assist clients withholding over the financial slump set off by the wellbeing emergency, sending its offers down 18 percent after the chime. (adsbygoogle = window.adsbygoogle || []).push({}); Slack had in the past quarter flagged powerless interest from most exceedingly awful influenced businesses like retail and travel, inciting it to pull back its entire year billings target. (adsbygoogle = window.adsbygoogle || []).push({}); "In Q2, development in a considerable lot of our clients contracted or leveled versus ordinary occasional patterns. In August, development started to drift at more run of the mill occasional levels," Chief Financial Officer Allen Shim said in a call with experts. (adsbygoogle = window.adsbygoogle || []).push({}); Slack's quarterly billings rose 25 percent, yet it missed the mark concerning the 38 percent development it posted in the main quarter. Billings are a significant measurement for development for a membership-based stage like Slack. (adsbygoogle = window.adsbygoogle || []).push({});
ALSO SEE
Slack Documents An Anti-Compeitive Petition In EU On Microsoft
(adsbygoogle = window.adsbygoogle || []).push({}); Its second-quarter income beat desires by almost $7 million (generally Rs. 51.5 crores), yet that overachievement was not reflected in the entire year standpoint. (adsbygoogle = window.adsbygoogle || []).push({}); Slack's yearly income figure of $870 million (generally Rs. 64,092 crores) - $876 million (generally Rs. 64,508 crores) was generally in accordance with desires for $872.3 million (generally Rs. 64,235 crores). (adsbygoogle = window.adsbygoogle || []).push({}); Barring things, the organization made back the initial investment, contrasted and experts' normal gauge of lost 3 pennies for each offer, as indicated by IBES information from Refinitiv.
For Regular & Fastest Tech News and Reviews, Follow TECHNOXMART on Twitter, Facebook, Instagram, Google News and Subscribe Here Now. By Subscribing You Will Get Our Daily Digest Headlines Every Morning Directly In Your Email Inbox. 【Join Our Whatsapp Group Here】
(adsbygoogle = window.adsbygoogle || []).push({});
from https://ift.tt/336HT1Y

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
[GAS][Slack App]スラッシュコマンドのレスポンスを改行する
概要
正直諦めてたんすよ、俺。でもできるんだって、有能な くのーる に教えてもらったんですよ!
まとめとコード
通常のコードに response = {text: response}; の 1 行を足すだけです。
var response = 'hoge\nhoge'; response = {text: response}; var output = ContentService.createTextOutput(JSON.stringify(response)); output.setMimeType(ContentService.MimeType.JSON); return output;
これで改行できるー!スッキリ読めるー!ありがとー!
参照サイト
くのーる スプレッドシートの情報をGASでSlack通知 - Qiita
[GAS][Slack App]Slack のステータスを変更する
概要
Slack のステータス GAS からを更新したいなぁと思いたって。
まとめとコード
Slack App の作り方は この記事 から。
[Features] - [OAuth & Permissions] の「Scopes」で「Modify user’s profile (users.profile:write)」を追加します。
[Features] - [OAuth & Permissions] の「OAuth Tokens & Redirect URLs」にある「OAuth Access Token」をコピーします。
[Settings] - [Installed App] から、App をワークスペースにインストールしたら、こんなコードを書きましょう。
function myFunction() { var token = 'OAUTH_TOKEN'; // コピーした token var userId = 'MY_SLACK_ID'; // ステータスを変更する自身のユーザー ID var profile = { "profile": {"status_text" : "riding a train", // ステータスに表示されるテキスト "status_emoji": ":mountain_railway:" // ステータスの絵文字 } }; var fetchUrl = 'https://slack.com/api/users.profile.set'; var fetchOpts = { "method" : 'POST', "headers": { "Authorization": "Bearer " + token, "X-Slack-User" : userId, "Content-Type" : "application/json; charset=utf-8"}, "payload": JSON.stringify(profile) }; UrlFetchApp.fetch(fetchUrl, fetchOpts); }
無事、ステータスが変更されているはずです。 使いみちは、もう決まっているのです。
参照サイト
users.profile.set method | Slack
[GAS][Slack App]Block Kit Builder で作成したメッセージのアクションを Interactive Components で受ける
概要
こないだ Block Kit Builder の記事を書いたら、そういやだいぶ前に取り組みかけて、途中で間があいて、わかんなくなって投げ出した interactive messages さんのことを思い出しました。 まだ、マイドライブ直下に作りかけのスプレッドシートがいて泣けてきたので、やってやるぞー!と気合い入れてたら、
こちらもカスタムインテグレーションと同じでもう使わないでとお願いされる始末。 じゃぁ、調べてみますかと重い腰を上げました。
まとめとコード
今回は、本当に GAS の記事がなくて泣きそうになりました。 英語はやっぱり苦手なんだよなー、もー。 では、気を取り直して。 まずは Block Kit Builder で [OK] と [NG] のボタンを作りましょう。
[ { "type": "section", "text": { "type": "mrkdwn", "text": "ボタン押してね!" } }, { "type": "actions", "elements": [ { "type": "button", "text": { "type": "plain_text", "emoji": true, "text": "OK" }, "style": "primary", "value": "ok" }, { "type": "button", "text": { "type": "plain_text", "emoji": true, "text": "NG" }, "style": "danger", "value": "ng" } ] } ]
まずは この記事 に沿って、 Slack App を作成し、incoming webhook を設定します。 そして 前回の記事 に沿って、incoming webhook を使って、メッセージを飛ばしてあげます。 コードはこんな感じですね。
function myFunction() { var blockKit = [ { "type": "section", "text": { "type": "mrkdwn", "text": "ボタン押してね!" } }, { "type": "actions", "elements": [ { "type": "button", "text": { "type": "plain_text", "emoji": true, "text": "OK" }, "style": "primary", "value": "ok" }, { "type": "button", "text": { "type": "plain_text", "emoji": true, "text": "NG" }, "style": "danger", "value": "ng" } ] } ]; var payload = {'blocks' : blockKit}; var options = {'method' : 'POST', 'payload': JSON.stringify(payload)}; var webhookUrl = 'INCOMING_WEBHOOK_URL'; // 取得した Webhook URL UrlFetchApp.fetch(webhookUrl, options); }
問題なく動けば、こんなメッセージが投稿されるはずです。 つぎに、Slack 側でボタンを押したアクションを payload で受け取るので doPost(e) でキャッチしましょう。 どのボタンを押したのかを value という変数名で取得するので、今回はわかりやすく、[OK] が押されたときは ok, [NG] が押されたときは ng 当値を取得します。ここに Time stamp なんかを合わせてセットしてあげれば、ユニークな値を取得できますね。 value の値をスプレッドシートに書き出すコードを確認用に書きます。
function doPost(e) { /* 押されたボタンの 情報を取得 */ var json = JSON.parse(e.parameter.payload); var actionsValue = json.actions[0].value; var ss = SpreadsheetApp.openById('SPREADSHEET_ID'); // スプレッドシートの ID var sheet = ss.getSheetByName('シート1'); sheet.appendRow([actionsValue]); }
e の部分を受けるエンドポイントの設定は、いつもの 要領でスクリプトエディタの画面の [公開] - [ウェブアプリケーションとして導入...] からお願いします。 Slack App の Features の [Interactive Components] の設定を 「Off」の状態から
「On」に切り替え [Request URL] に「ウェブアプリケーションとして導入」された URL を入力します。
ここまでで下準備は完了です。 もう一度メッセージを投稿して [OK] ボタンと [NG] ボタンを交互に押すと、こんな感じで取得した value を確認できますね。
最後に、投稿したメッセージにボタンを押してもらったことへ感謝の言葉を返してあげたい (というか、ボタン押すのは 1 回限りにしたい) ので、 var responseUrl = json.response_url; を取得します。 この responseUrl が何者かと (端折って) いうと、最初の [OK], [NG] ボタンがついたメッセージを上書きする incoming webhook です。
というわけで doPost(e) のコードをこんなふうに書き換えてみましょう。
function doPost(e) { /* 押されたボタンの 情報を取得 */ var json = JSON.parse(e.parameter.payload); var actionsValue = json.actions[0].value; var responseUrl = json.response_url; /* ボタンのメッセージを上書き */ var reply = '「' + actionsValue + '」ボタン押してくれてありがと!'; var payload = {'text' : reply}; var options = {'method' : 'POST', 'payload': JSON.stringify(payload)}; UrlFetchApp.fetch(responseUrl, options); }
再度「ウェブアプリケーションとして導入」を実行してみると、
ボタンからメッセージに切り替わりました。 やっとできた~、お疲れさまでした。
参照サイト
Slack APIで遊んでみた話(1) - Message buttonを表示してみた - exits Google Apps Script で Slack からの投稿などを受け取る - Qiita SlackのIncoming Webhooksを使い倒す - Qiita Enabling message interactivity | Slack