feat: Introduce dynamic JSON-based configuration for game settings and command toggling via a new admin command.

This commit is contained in:
syntaxbullet
2025-12-15 21:59:28 +01:00
parent 1eace32aa1
commit ac6283e60c
12 changed files with 257 additions and 48 deletions

View File

@@ -1,10 +1,11 @@
import { Events } from "discord.js";
import type { Event } from "@lib/types";
// Visitor role
const event: Event<Events.GuildMemberAdd> = {
name: Events.GuildMemberAdd,
execute: async (member) => {
const role = member.guild.roles.cache.find(role => role.name === "Visitor");
const role = member.guild.roles.cache.find(role => role.id === "1449859380269940947");
if (!role) return;
await member.roles.add(role);
},