mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38: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:
@@ -30,7 +30,7 @@ public partial class Gambling
|
||||
|
||||
[Cmd]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
public async partial Task BlackJack(ShmartNumber amount)
|
||||
public async Task BlackJack(ShmartNumber amount)
|
||||
{
|
||||
if (!await CheckBetMandatory(amount))
|
||||
return;
|
||||
@@ -149,17 +149,17 @@ public partial class Gambling
|
||||
|
||||
[Cmd]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
public partial Task Hit()
|
||||
public Task Hit()
|
||||
=> InternalBlackJack(BjAction.Hit);
|
||||
|
||||
[Cmd]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
public partial Task Stand()
|
||||
public Task Stand()
|
||||
=> InternalBlackJack(BjAction.Stand);
|
||||
|
||||
[Cmd]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
public partial Task Double()
|
||||
public Task Double()
|
||||
=> InternalBlackJack(BjAction.Double);
|
||||
|
||||
private async Task InternalBlackJack(BjAction a)
|
||||
|
Reference in New Issue
Block a user