Nightly Discord Channel Cleanup — n8n 工作流
概览
Nightly Discord Channel Cleanup This workflow runs every day at 9:00 p.m. and: Retrieves all Discord channels using your provided credentials. Pauses briefly to respect Discord API rate limits. Loops through each channel and fetches messages. Filters out messages older than seven days. Deletes those older messages, again pausing to stay within deletion rate limits.
By setting up this workflow on a schedule, you can automatically keep Discord channels tidy and compliant with retention policies.
使用的节点
Discord
工作流预览
L
Loop Over Channels
L
Loop Over Messages
⚡
E
Every day at 9pm
C
Cool down Discord API ra…
Get all Discord channels
C
Cool down Message deleti…
C
Cool down Get messages A…
Get messages from Channel
Delete Message
F
Filter Messages older th…
10 nodes11 edges
工作原理
- 1
触发器
工作流由 定时 触发器启动,按预定计划运行。
- 2
处理
数据流经 10 个节点, connecting discord, filter, scheduletrigger。
- 3
输出
工作流完成自动化并将结果发送到配置的目标。
节点详情 (10)
DI#1
Discord
discord
如何导入此工作流
- 1点击右侧 下载 JSON 按钮保存工作流文件。
- 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入。
- 3选择下载的
nightly-discord-channel-cleanup文件并点击导入。 - 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
- 5点击 测试工作流 验证一切正常,然后激活它。
或直接在 n8n → 从 JSON 导入 中粘贴:
{ "name": "Nightly Discord Channel Cleanup", "nodes": [...], ...}
集成
discordfilterscheduletriggersplitinbatcheswait
创建者
Viktor
@qxuken
标签
discordfilterscheduletriggersplitinbatcheswait