Added discord bot settings page

This commit is contained in:
Marcel Baumgartner 2023-03-12 21:42:07 +01:00
parent 5b019bc953
commit 65e6823550
3 changed files with 31 additions and 0 deletions

View file

@ -34,6 +34,11 @@
<TL>Resources</TL>
</a>
</li>
<li class="nav-item mt-2">
<a class="nav-link text-active-primary ms-0 me-10 py-5 @(Index == 6 ? "active" : "")" href="/admin/system/discordbot">
<TL>Discord bot</TL>
</a>
</li>
</ul>
</div>
</div>

View file

@ -0,0 +1,25 @@
@page "/admin/system/discordbot"
@using Moonlight.App.Services.DiscordBot
@using Moonlight.Shared.Components.Navigations
@inject DiscordBotService DiscordBotService
<OnlyAdmin>
<AdminSystemNavigation Index="6"/>
<div class="mt-3 card card-body">
<WButton Text="Register commands"
WorkingText="Working"
CssClasses="btn-primary"
OnClick="RegisterCommands">
</WButton>
</div>
</OnlyAdmin>
@code
{
private async Task RegisterCommands()
{
}
}

View file

@ -329,3 +329,4 @@ Reset the password of your account;Reset the password of your account
Wrong here?;Wrong here?
A user with this email can not be found;A user with this email can not be found
Passwort reset successfull. Check your mail;Passwort reset successfull. Check your mail
Discord bot;Discord bot