mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 02:08:27 -04:00
Removed cmd source generator. Commands are no longer partial methods. Compilations should be slightly faster now. Updated packages and adapted drawing code to the new apis. There may be some bugs.
This commit is contained in:
@@ -10,7 +10,7 @@ public partial class Games
|
||||
{
|
||||
[Cmd]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
public async partial Task Hangmanlist()
|
||||
public async Task Hangmanlist()
|
||||
=> await SendConfirmAsync(GetText(strs.hangman_types(prefix)), _service.GetHangmanTypes().Join('\n'));
|
||||
|
||||
private static string Draw(HangmanGame.State state)
|
||||
@@ -51,7 +51,7 @@ public partial class Games
|
||||
|
||||
[Cmd]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
public async partial Task Hangman([Leftover] string? type = null)
|
||||
public async Task Hangman([Leftover] string? type = null)
|
||||
{
|
||||
if (!_service.StartHangman(ctx.Channel.Id, type, out var hangman))
|
||||
{
|
||||
@@ -66,7 +66,7 @@ public partial class Games
|
||||
|
||||
[Cmd]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
public async partial Task HangmanStop()
|
||||
public async Task HangmanStop()
|
||||
{
|
||||
if (await _service.StopHangman(ctx.Channel.Id))
|
||||
await ReplyConfirmLocalizedAsync(strs.hangman_stopped);
|
||||
|
Reference in New Issue
Block a user