Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Archive - into Cold Storage #5

@JBraunsmaJr

Description

@JBraunsmaJr

To prevent cluttering of the discord server we need to purge anything that is not being used in a given amount of time (NOT_USED_IN_WEEKS)

Given a course/category if any channel contains activity within the reference time -- it will not be deleted
Otherwise, the following will happen

  • For each text-channel within the category we need to grab the last NUMBER_OF_MESSAGES. Then we need to save each message into the database - noting the channel name, message, author, and time of message
  • For each channel in the category we need to grab the channel name, and parent channel name

The algorithm should be invoked by either a cronjob, or slash command, or both.

We need the following configuration values. This section can be named something along the lines of
ARCHIVE

  • NOT_USED_IN_WEEKS
  • NUMBER_OF_MESSAGES

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions