Add events module with dashboard UI, scheduling, signups, and settings updates; extend env/readme.

This commit is contained in:
Pascal Prießnitz
2025-12-02 23:52:10 +01:00
parent 874b01c999
commit 829d160164
578 changed files with 37647 additions and 11590 deletions

View File

@@ -0,0 +1,19 @@
import { GuildChannel } from 'discord.js';
import { EventHandler } from '../utils/types';
import { context } from '../config/context';
const event: EventHandler = {
name: 'channelUpdate',
execute(oldChannel: GuildChannel, newChannel: GuildChannel) {
if (!newChannel.guild) return;
const nameChanged = oldChannel.name !== newChannel.name;
if (nameChanged) {
context.logging.logSystem(
newChannel.guild,
`Channel umbenannt: ${oldChannel.name} -> ${newChannel.name} (${newChannel.id})`
);
}
}
};
export default event;