Added discord bot settings page
This commit is contained in:
@@ -34,6 +34,11 @@
|
|||||||
<TL>Resources</TL>
|
<TL>Resources</TL>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
25
Moonlight/Shared/Views/Admin/Sys/DiscordBot.razor
Normal file
25
Moonlight/Shared/Views/Admin/Sys/DiscordBot.razor
Normal 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()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -329,3 +329,4 @@ Reset the password of your account;Reset the password of your account
|
|||||||
Wrong here?;Wrong here?
|
Wrong here?;Wrong here?
|
||||||
A user with this email can not be found;A user with this email can not be found
|
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
|
Passwort reset successfull. Check your mail;Passwort reset successfull. Check your mail
|
||||||
|
Discord bot;Discord bot
|
||||||
|
|||||||
Reference in New Issue
Block a user