← 返回
内容创作 中文

Dad Jokes

Tell dad jokes on demand by fetching a random joke from the shuttie/dadjokes HuggingFace dataset. Trigger whenever the user asks for a dad joke, wants to hea...
通过从 shuttie/dadjokes HuggingFace 数据集获取随机笑话,按需讲老爹笑话。当用户要求听老爹笑话时触发。
jonathandeamer
内容创作 clawhub v1.1.3 1 版本 99853.2 Key: 无需
★ 1
Stars
📥 660
下载
💾 8
安装
1
版本
#latest

概述

When asked for a dad joke, run this Python one-liner in a bash tool call to fetch a single random joke from HuggingFace with minimal data transfer:

python3 -c "
import random, json
from urllib.request import urlopen
offset = random.randint(0, 51999)
url = f'https://datasets-server.huggingface.co/rows?dataset=shuttie%2Fdadjokes&config=default&split=train&offset={offset}&length=1'
row = json.loads(urlopen(url).read())['rows'][0]['row']
print(row['question'])
print('---')
print(row['response'])
"

Then present the joke naturally — the question is the setup and response is the punchline. Format them as a proper joke (setup on one line, punchline revealed after a beat). Feel free to add a groan emoji or light commentary, but keep it brief.

If the fetch fails (network error, etc.), apologize and tell a joke from memory instead.

版本历史

共 1 个版本

  • v1.1.3 当前
    2026-03-29 22:32 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Did You Know

jonathandeamer
获取英文维基百科的'Did you know?'趣闻,本地缓存后逐条返回。无需 API 密钥,不编辑维基百科。
★ 1 📥 830
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,493
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,205