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:
@@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user