// Übersicht aller Slash-Befehle des Bots. import { useEffect } from 'react'; import { IconLock } from '../icons.jsx'; import { useT } from '../i18n.jsx'; // Befehlsname bleibt wie er ist — nur die Erklärung wird übersetzt. const GROUPS = [ ['commands.g.everyone', false, [ ['/rank', 'commands.rank'], ['/wunsch idee:…', 'commands.wunsch'], ['/bug titel:… beschreibung:…', 'commands.bug'], ['/geburtstag setzen tag:… monat:…', 'commands.bdaySet'], ['/geburtstag entfernen', 'commands.bdayDel'], ['/remind dauer:… text:…', 'commands.remind'], ['/tag name:…', 'commands.cmdTag'], ['/ping', 'commands.ping'], ['/umfrage frage:… a:… b:…', 'commands.umfrage'], ['/radio', 'commands.radio'], ]], ['commands.g.mod', true, [ ['/warn user:… grund:…', 'commands.warn'], ['/warns user:…', 'commands.warns'], ['/timeout user:… dauer:…', 'commands.timeout'], ['/purge anzahl:…', 'commands.purge'], ]], ['commands.g.setup', true, [ ['/raid status | an | aus', 'commands.raid'], ['/giveaway preis:… dauer:… gewinner:…', 'commands.giveaway'], ['/ticket-setup', 'commands.ticketSetup'], ['/playtester-setup', 'commands.playtesterSetup'], ['/devlog-backfill', 'commands.devlogBackfill'], ['/galerie-backfill', 'commands.galerieBackfill'], ]], ]; export default function BotCommands() { const { t } = useT(); useEffect(() => { window.scrollTo(0, 0); }, []); return ( <> BEFEHLE {t('commands.tag')} {t('commands.title')} {t('commands.subtitle')} {GROUPS.map(([groupKey, restricted, commands]) => ( // {t(groupKey)} {restricted && } {commands.map(([name, descKey]) => ( {name} {t(descKey)} ))} ))} {t('commands.note')} > ); }
{t('commands.subtitle')}
{name}
{t('commands.note')}