Skip to content

Commit a71a87f

Browse files
committed
feat: slowmode
1 parent 16dba20 commit a71a87f

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Node.js
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: "20"
18+
node-version: "22"
1919
cache: "npm"
2020

2121
- name: Install dependencies

src/commands/help.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ const commands: CommandInfo[] = [
6767
value: "View the seraphic archives of purged messages",
6868
category: "moderator",
6969
},
70+
{
71+
name: "/slowmode [seconds] [reason]",
72+
value: "Impose restraint upon the flow of messages",
73+
category: "moderator",
74+
},
7075
// Basic
7176
{
7277
name: "/avatar [@user]",

src/utils/commandLoader.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import * as link from "../commands/link.js";
1414
import * as unlink from "../commands/removelink.js";
1515
import * as checklink from "../commands/checklink.js";
1616
import * as synctop5 from "../commands/synctop5.js";
17+
import * as slowmode from "../commands/slowmode.js";
1718

1819
export interface Command {
1920
data: any;
@@ -39,6 +40,7 @@ export function loadCommands(): Collection<string, Command> {
3940
unlink,
4041
checklink,
4142
synctop5,
43+
slowmode,
4244
];
4345

4446
for (const command of commandModules) {

src/utils/rolePermissions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const COMMAND_PERMISSIONS: Record<string, PermissionLevel> = {
2020
clear: PermissionLevel.MODERATOR,
2121
archives: PermissionLevel.MODERATOR,
2222
sins: PermissionLevel.MODERATOR,
23+
slowmode: PermissionLevel.MODERATOR,
2324

2425
// Basic
2526
help: PermissionLevel.BASIC,

0 commit comments

Comments
 (0)