Back to skills
extension
Category: Development & EngineeringNo API key required

search-channels

Search for a Slack channel by name. Can be activated with phrases like "channel search", "find a channel", "search by channel name", "a channel called 〇〇", "want to find a channel", "is there such a channel?", "channels with similar names". Uses the Python script `slack_channel.py search`.

personAuthor: jakexiaohubgithub

Channel Searcher

Slack チャンネルを名前で検索します。

ワークフロー

1. 検索クエリの確認

ユーザーが探しているチャンネル名を確認

2. チャンネル検索

Pythonスクリプトで検索を実行:

python plugins/shiiman-slack/skills/list-channels/scripts/slack_channel.py search \
  --query "project" \
  --format table

オプション:

  • --format <table|json>: 出力形式(デフォルト: table)

3. 結果の表示

検索結果を整形して表示:

検索結果: 3 件

id          name            is_private  topic                   num_members
C01234567   project-alpha   false       プロジェクトアルファ    12
C01234568   project-beta    false       プロジェクトベータ      8
C01234569   project-gamma   true        プロジェクトガンマ      5

検索の仕様

  • チャンネル名の部分一致で検索
  • パブリックチャンネルとプライベートチャンネルの両方を検索
  • 大文字小文字を区別しない

必要な環境変数

export SLACK_BOT_TOKEN="xoxb-your-bot-token"

必要なスコープ

  • channels:read
  • groups:read