Skip to content

keep track of 馃煡 - #173

Open
dtinth wants to merge 1 commit into
mainfrom
baidang
Open

keep track of 馃煡#173
dtinth wants to merge 1 commit into
mainfrom
baidang

Conversation

@dtinth

@dtinth dtinth commented Jun 2, 2023

Copy link
Copy Markdown
Collaborator

Description

in the Discord server, an organic way that people flag a message as "possibly not good" is by putting a "red square" emoji on it

image

this PR simply saves this information to console log and database. it may be useful for future.

Type of change

  • New feature (non-breaking change which adds functionality)

Screenshot

image

Checklist:

  • I have run pnpm format and my code don't have any linting issues
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

@github-actions

github-actions Bot commented Jun 2, 2023

Copy link
Copy Markdown

Coverage Summary

Status Category Percentage Covered / Total
馃數 Lines 48.04% 1422 / 2960
馃數 Statements 48.04% 1422 / 2960
馃數 Functions 38.54% 37 / 96
馃數 Branches 88.42% 107 / 121
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
src/Bot.ts 27.27% 100% 10% 27.27% 38-43, 46-50, 53-54, 57-59, 62-75, 78-99, 102-137, 140-167, 170-197
src/config.ts 100% 100% 100% 100%
src/prisma.ts 66.66% 0% 0% 66.66% 7, 12-15
src/__mocks__/config.ts 100% 100% 100% 100%
src/features/index.ts 100% 100% 100% 100%
src/features/memberUpdateLogger/index.ts 10.52% 100% 0% 10.52% 8-75
src/features/messagePruner/index.ts 80% 100% 0% 80% 8-9
src/features/messagePruner/pruneMessagesCommand.ts 16.55% 100% 0% 16.55% 24-144
src/features/messageReporter/index.ts 80% 100% 0% 80% 8-9
src/features/messageReporter/reportToModeratorMessageCommand.ts 14.86% 100% 0% 14.86% 22-147
src/features/nameChecker/checkName.ts 21.73% 100% 0% 21.73% 11-46
src/features/nameChecker/checkNameAgainstPatterns.ts 83.33% 83.33% 100% 83.33% 24-28
src/features/nameChecker/index.ts 31.25% 100% 0% 31.25% 10-31
src/features/nominations/index.ts 80% 100% 0% 80% 8-9
src/features/nominations/nominateCommand.ts 19.71% 100% 0% 19.71% 41-148, 151-213
src/features/ping/index.ts 80% 100% 0% 80% 8-9
src/features/ping/pingCommand.ts 62.5% 100% 0% 62.5% 10-15
src/features/preventEmojiSpam/index.ts 31.42% 100% 0% 31.42% 11-34
src/features/preventEmojiSpam/isEmojiPreventionEnabled.ts 100% 100% 100% 100%
src/features/profileInspector/index.ts 31.69% 100% 0% 31.69% 28-31, 43-50, 62-77, 96-104, 118-123, 125-186, 188-228, 230-253, 256, 259, 261-271, 274-289, 297-306
src/features/redFlagLogger/index.ts 27.27% 100% 0% 27.27% 9-32
src/features/runtimeConfig/index.ts 75% 100% 0% 75% 9-11
src/features/runtimeConfig/inspectConfigCommand.ts 66.66% 100% 0% 66.66% 12-17
src/features/runtimeConfig/reloadConfigCommand.ts 65% 100% 0% 65% 13-19
src/features/slowmode/index.ts 80% 100% 0% 80% 8-9
src/features/slowmode/slowmodeCommand.ts 58.18% 100% 0% 58.18% 32-54
src/features/stickyMessage/channelLock.ts 100% 100% 100% 100%
src/features/stickyMessage/index.ts 40.62% 100% 0% 40.62% 13-31
src/features/stickyMessage/messageCooldown.ts 97.33% 100% 75% 97.33% 41-42
src/features/stickyMessage/messageCounter.ts 100% 80% 100% 100%
src/features/stickyMessage/stickyMessageHandler.ts 100% 100% 100% 100%
src/features/stickyMessage/stickyMessageRemove.ts 100% 100% 100% 100%
src/features/stickyMessage/stickyMessageSet.ts 83.8% 81.25% 100% 83.8% 28-33, 50-55, 63-67
src/features/stickyMessage/stickyMessages.ts 99% 80% 100% 99% 79
src/features/tempRole/expireCheck.ts 11.59% 100% 0% 11.59% 9-69
src/features/tempRole/index.ts 52.38% 100% 0% 52.38% 11-20
src/features/tempRole/temporaryRoleCommand.ts 38.93% 100% 0% 38.93% 44-112
src/features/threadPruner/activeThreadsCommand.ts 20.37% 100% 0% 20.37% 31-88, 91-126, 128-162
src/features/threadPruner/getActiveThreads.ts 36.84% 100% 0% 36.84% 8-19
src/features/threadPruner/getThreadStats.ts 18.6% 100% 0% 18.6% 9-43
src/features/threadPruner/index.ts 80% 100% 0% 80% 8-9
src/features/userInfo/index.ts 80% 100% 0% 80% 8-9
src/features/userInfo/userInfoCommand.ts 33.33% 100% 0% 33.33% 12-35
src/types/UserModerationLogEntry.ts 100% 100% 100% 100%
src/types/defineCommand.ts 100% 100% 100% 100%
src/types/definePlugin.ts 100% 100% 100% 100%
src/utils/ActionSet.ts 19.58% 0% 0% 19.58% 15-92
src/utils/RuntimeConfiguration.ts 74.13% 60% 100% 74.13% 33-37, 41-48, 53-54
src/utils/RuntimeConfigurationSchema.ts 100% 100% 100% 100%
src/utils/cache.ts 100% 100% 100% 100%
src/utils/createLogger.ts 33.33% 100% 0% 33.33% 4-9
src/utils/fake.ts 83.33% 66.66% 100% 83.33% 22-26
src/utils/generateTsv.ts 100% 100% 100% 100%
src/utils/isOnlyEmoji.ts 100% 100% 100% 100%
src/utils/prompt.ts 25.45% 100% 0% 25.45% 15-55
src/utils/sendDm.ts 100% 100% 100% 100%
src/utils/toLocalDate.ts 100% 100% 100% 100%
src/utils/typeGuards.ts 100% 100% 0% 100%

@dtinth
dtinth marked this pull request as ready for review June 2, 2023 13:02

@leomotors leomotors left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also log case where user remove reaction?
Currently, seems like we can report but cannot undo that.

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.

2 participants