Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive helper: Add a helper for archiving old threads in a channel #285

Merged
merged 6 commits into from
Jan 4, 2024

Conversation

Shadowfiend
Copy link
Contributor

The command \help me archive <channel> goes through all unarchived threads >14 days old and tags me to investigate if they're archivable. This is going to be a manual process because life is hard 😉

Also included here is a full rework of the thread management script into multiple subscripts that are more focused.

These modules simply expose Discord events and their handlers on a
default object export. thread-management.ts then attaches listeners
based on these exports.
This checks a thread to see if it is inside a channel that we consider
to be a testing channel—currently just the playground and bifrost
channels.

In certain cases, the testing channels will be used as “things don't
happen here”, but when developing new features they might be used as
“things only happen here”.
Right now it's built to help me (Antonio) quickly archive threads that
are clearly dead from >2 weeks ago without bothering others.
Sometimes errors will JSON-serialize, but sometimes they won't; in the
latter case, we want to try to use the error's built-in stringification
in case it works better.
Bumps [axios](https://github.com/axios/axios) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.6.0...v1.6.1)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](npm/node-semver@v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
@Shadowfiend Shadowfiend merged commit fefc635 into main Jan 4, 2024
7 checks passed
@Shadowfiend Shadowfiend deleted the archive-helper branch January 4, 2024 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant