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:
Kwoth
2022-07-18 04:33:50 +02:00
parent 3db194c186
commit 99c60459f8
98 changed files with 747 additions and 788 deletions

View File

@@ -21,7 +21,7 @@ public partial class Games : NadekoModule<GamesService>
}
[Cmd]
public async partial Task Choose([Leftover] string list = null)
public async Task Choose([Leftover] string list = null)
{
if (string.IsNullOrWhiteSpace(list))
return;
@@ -33,7 +33,7 @@ public partial class Games : NadekoModule<GamesService>
}
[Cmd]
public async partial Task EightBall([Leftover] string question = null)
public async Task EightBall([Leftover] string question = null)
{
if (string.IsNullOrWhiteSpace(question))
return;
@@ -48,7 +48,7 @@ public partial class Games : NadekoModule<GamesService>
[Cmd]
[RequireContext(ContextType.Guild)]
public async partial Task RateGirl([Leftover] IGuildUser usr)
public async Task RateGirl([Leftover] IGuildUser usr)
{
var gr = _service.GirlRatings.GetOrAdd(usr.Id, GetGirl);
var originalStream = await gr.Stream;
@@ -140,7 +140,7 @@ public partial class Games : NadekoModule<GamesService>
}
[Cmd]
public async partial Task Linux(string guhnoo, string loonix)
public async Task Linux(string guhnoo, string loonix)
=> await SendConfirmAsync(
$@"I'd just like to interject for moment. What you're refering to as {loonix}, is in fact, {guhnoo}/{loonix}, or as I've recently taken to calling it, {guhnoo} plus {loonix}. {loonix} is not an operating system unto itself, but rather another free component of a fully functioning {guhnoo} system made useful by the {guhnoo} corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.