feat: grant role when user applies our tag
Node.js CI / Lint and Test (push) Successful in 39s

This commit is contained in:
2025-08-20 16:09:37 -07:00
parent 186414e96a
commit 4611b13465
5 changed files with 72 additions and 12 deletions
+5
View File
@@ -11,6 +11,7 @@ import {
postFreeCodeCampNews,
postHackerNews,
} from "./modules/postNews.js";
import { processUserGuildTag } from "./modules/processUserGuildTag.js";
import { respondToDm } from "./modules/respondToDm.js";
import { instantiateServer } from "./server/serve.js";
import { logger } from "./utils/logger.js";
@@ -54,5 +55,9 @@ amari.discord.on(Events.InteractionCreate, (interaction) => {
}
});
amari.discord.on(Events.UserUpdate, (_oldUser, updatedUser) => {
void processUserGuildTag(amari, updatedUser);
});
await amari.discord.login(process.env.BOT_TOKEN);
instantiateServer();