Enhance environment configuration and expand Prisma schema for bot management
- Added OWNER_USER_IDS to .env.example for specifying global bot owners. - Introduced new models in the Prisma schema: CommandOverride, OwnerTeamMember, GlobalUserBlacklist, GuildBlacklist, FeatureFlag, BotPresenceConfig, ChangelogEntry, and OwnerAuditLog to support advanced bot management features. - Updated env.ts to preprocess OWNER_USER_IDS for better handling of global bot owner IDs. - Modified ModulePlaceholderPage to ensure proper routing for remaining dashboard modules.
This commit is contained in:
22
apps/webui/src/app/dashboard/[guildId]/automod/page.tsx
Normal file
22
apps/webui/src/app/dashboard/[guildId]/automod/page.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { AutomodForm } from '@/components/modules/automod-form';
|
||||
import { getLocale, t } from '@/lib/i18n';
|
||||
import { getAutomodDashboard } from '@/lib/module-configs/automod';
|
||||
|
||||
interface AutomodPageProps {
|
||||
params: Promise<{ guildId: string }>;
|
||||
}
|
||||
|
||||
export default async function AutomodPage({ params }: AutomodPageProps) {
|
||||
const { guildId } = await params;
|
||||
const [locale, config] = await Promise.all([getLocale(), getAutomodDashboard(guildId)]);
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div>
|
||||
<h1 className="text-2xl font-semibold">{t(locale, 'modules.automod.label')}</h1>
|
||||
<p className="text-sm text-muted-foreground">{t(locale, 'modules.automod.description')}</p>
|
||||
</div>
|
||||
<AutomodForm guildId={guildId} initialValue={config} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user