More refactor, more extension methods.
Preparing to ditch this project... I just want to reimplement image searches and then i will probably stop working on this project.
This commit is contained in:
@@ -24,10 +24,10 @@ namespace NadekoBot
|
||||
while (helpstr.Length > 2000)
|
||||
{
|
||||
var curstr = helpstr.Substring(0, 2000);
|
||||
await client.SendMessage(e.User, curstr.Substring(0, curstr.LastIndexOf("\n") + 1));
|
||||
await e.User.Send(curstr.Substring(0, curstr.LastIndexOf("\n") + 1));
|
||||
helpstr = curstr.Substring(curstr.LastIndexOf("\n") + 1) + helpstr.Substring(2000);
|
||||
}
|
||||
await client.SendMessage(e.User, helpstr);
|
||||
await e.User.Send(helpstr);
|
||||
};
|
||||
|
||||
public override void Init(CommandGroupBuilder cgb)
|
||||
|
Reference in New Issue
Block a user