Nightly Discord Channel Cleanup — n8n 工作流

复杂度 定时10 个节点🏷️ Miscellaneous👁 1,026 次查看作者:Viktor

概览

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

工作流预览

Note ☝️
Don’t forget to setup an error workflow to get notified
👨‍🎤 Setup
1. Add your Discord credentials
2. Change the server in each Discord node to the correc
3. Click the Test Workflow button
3. Activate the workflow to run on a schedule
Tip 👇
OAuth2 Authentication is very easy to setup
Nightly Discord Channel Cleanup
This workflow runs every day at 9:00 p.m. and:
- Retrieves all Discord channels using your provided cr
- Pauses briefly to respect Discord API rate limi
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. 1

    触发器

    工作流由 定时 触发器启动,按预定计划运行。

  2. 2

    处理

    数据流经 10 个节点, connecting discord, filter, scheduletrigger。

  3. 3

    输出

    工作流完成自动化并将结果发送到配置的目标。

节点详情 (10)

DI

Discord

discord

#1

如何导入此工作流

  1. 1点击右侧 下载 JSON 按钮保存工作流文件。
  2. 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入
  3. 3选择下载的 nightly-discord-channel-cleanup 文件并点击导入。
  4. 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
  5. 5点击 测试工作流 验证一切正常,然后激活它。

或直接在 n8n → 从 JSON 导入 中粘贴:

{ "name": "Nightly Discord Channel Cleanup", "nodes": [...], ...}

集成

discordfilterscheduletriggersplitinbatcheswait

获取此工作流

一键下载并导入

下载 JSON在 n8n.io 上查看
节点10
复杂度medium
触发器scheduled
查看次数1,026

创建者

Viktor

Viktor

@qxuken

标签

discordfilterscheduletriggersplitinbatcheswait

n8n 新手?

n8n 是一款免费开源的工作流自动化工具,支持自托管或使用云版本。

免费获取 n8n →

Related Miscellaneous Workflows