From ed0d77068ca7d58898a4584b84970f473a588fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramiro=20Nu=C3=B1ez=20Dosio?= Date: Tue, 9 Aug 2022 18:06:33 +0100 Subject: [PATCH 1/2] Fixed some things and added internal links. --- ...idate-slackbot-to-consolidate-messages.mdx | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx b/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx index c05972c2adf..aba453addf9 100644 --- a/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx +++ b/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx @@ -21,7 +21,7 @@ Before we dive in, let’s look at some prerequisites you'll need: - [Supabase Client](https://pypi.org/project/supabase/) - The SDK only supports Python > 3.7. You can download a supported Python version from [here](https://www.python.org/downloads/). - `pip install **supabase**` + `pip install supabase` - [Python dotenv](https://pypi.org/project/python-dotenv/) to handle API keys without exposing them in the code - This is optional, but it will avoid issues of package dependencies and version conflicts. **`pip install python-dotenv`** @@ -161,9 +161,9 @@ Slack links have the following format: https://ORGANIZATION.slack.com/archives/ channel_id/pmessage_id - +
Organization: subdomain used in Slack - +
Channel ID: It is the string that you'll need to enter in slack channels as the channel id e.g C0000ABC02DE @@ -405,17 +405,20 @@ if __name__ == '__main__': Of course, we aren't doing proper Python example if we don't make a test notebook available: - - Open in colab - +[![Open in Colab](/images/blog/2022-august/colab-badge.svg)](https://colab.research.google.com/assets/colab-badge.svg) ## Conclusion Using Supabase and Slack SDK, it is very easy to create a bot that consolidates data according to the rules set. It just takes some steps to get started with the Python SDK and you can even run a demo directly in [Google Colab](https://colab.research.google.com/drive/1-sM23eQPE1Me4vl10KKoa9xzLYIgkgyQ?usp=sharing). If you have any questions please reach out via [Twitter](https://twitter.com/supabase) or join our [Discord](https://discord.supabase.com/). + +## More Python and Supabase resources + +- [Python data loading with Supabase](https://supabase.com/blog/loading-data-supabase-python) +- [Visualizing Supabase Data using Metabase](https://supabase.com/blog/visualizing-supabase-data-using-metabase) +- [Supabase-py (Database) on Replit](https://replit.com/@Supabase/Supabase-py-Database?v=1) + + + + From e83c8d4e9aeec6b5a32a906de98f556a41e4c23b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramiro=20Nu=C3=B1ez=20Dosio?= Date: Tue, 9 Aug 2022 18:13:52 +0100 Subject: [PATCH 2/2] Fixed image. --- ...08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx b/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx index aba453addf9..3ebd2892202 100644 --- a/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx +++ b/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx @@ -405,7 +405,7 @@ if __name__ == '__main__': Of course, we aren't doing proper Python example if we don't make a test notebook available: -[![Open in Colab](/images/blog/2022-august/colab-badge.svg)](https://colab.research.google.com/assets/colab-badge.svg) +![Open in Colab](/images/blog/2022-august/colab-badge.svg)](https://colab.research.google.com/assets/colab-badge.svg) ## Conclusion