返回顶部
s

slack-printSlack文件打印

Print files uploaded to a Slack channel. Supports smart matching: multiple files, filename prefix/keyword filter, file type (pdf/image), and time range ("just now" = "last 5 minutes"). Trigger when the user says things like "print the file from Slack", "print the PDF I just sent to Slack", "print the Slack file", etc.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
291
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

slack-print

Slack 打印技能

严格规则:

  • - 不得使用写入/编辑工具创建或修改任何文件
  • 不得创建 Python 脚本、测试脚本或任何辅助文件
  • 只能通过 exec 运行现有的 shell 脚本或 lp 命令



从 Slack 打印文件

智能匹配:解读意图 → 设置变量 → 调用脚本

用户表述环境变量
打印最新文件 / 打印这个文件(默认,无需变量)
打印最后两个文件 / 打印这两个文件
LIMIT=2 | | 打印以 report 开头的文件 | NAME_PREFIX=report | | 打印名称中包含 contract 的文件 | NAME_CONTAINS=contract | | 打印我刚上传的 PDF / 打印刚才的 PDF | MINUTES=5 FILE_TYPE=pdf | | 打印最后三个文件 | LIMIT=3 MINUTES=10 |

FILE_TYPE 取值:pdf / image / video / doc / file(默认 — 匹配所有类型)

调用方式

bash

默认:打印最新文件


PRINTER=MyPrinter DIR>/slackfetchandprint.sh

打印最新的 2 个文件

PRINTER=MyPrinter LIMIT=2 DIR>/slackfetchandprint.sh

打印名称以 report 开头的文件

PRINTER=MyPrinter NAMEPREFIX=report DIR>/slackfetchand_print.sh

打印过去 5 分钟内上传的 PDF 文件

PRINTER=MyPrinter MINUTES=5 FILETYPE=pdf DIR>/slackfetchand_print.sh

脚本成功执行后会为每个文件输出:Sent to printer:



直接打印文本内容

bash
echo 要打印的内容 | lp -d <打印机名称>

多行内容:
bash
cat > /tmp/openclaw_print.txt << EOF
内容
EOF
lp -d <打印机名称> /tmp/openclaw_print.txt



列出可用打印机

bash
lpstat -a

查看打印队列

bash
lpq -P <打印机名称>

取消打印任务

bash
cancel -a <打印机名称>

检查打印机状态

bash
lpstat -p <打印机名称>

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 slack-print-1776191064 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 slack-print-1776191064 技能

通过命令行安装

skillhub install slack-print-1776191064

下载

⬇ 下载 slack-print v1.0.0(免费)

文件大小: 2.54 KB | 发布时间: 2026-4-15 11:34

v1.0.0 最新 2026-4-15 11:34
- Initial release of slack-print.
- Enables printing of files uploaded to Slack channels with smart matching.
- Supports filters by file count, filename, file type (pdf/image), and recent upload time.
- Users can also print text content directly.
- Includes basic printer and print queue management commands.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large