Test WPF Desktop App with Caliburn And RestSharp

This commit is contained in:
2019-02-26 01:26:03 +01:00
parent 35bd2890ed
commit e8fd116eab
38 changed files with 996 additions and 30 deletions

View File

@@ -14,7 +14,7 @@ namespace LaDOSE.DiscordBot.Command
}
[Command("todo")]
public async Task TwitchAsync(CommandContext ctx, string command,params string[] todo)
public async Task TodoAsync(CommandContext ctx, string command,params string[] todo)
{
await ctx.TriggerTypingAsync();
switch (command.ToUpperInvariant())
@@ -34,6 +34,7 @@ namespace LaDOSE.DiscordBot.Command
};
await ctx.RespondAsync($"invalid id");
break;
}
//await ctx.RespondAsync($"command : {command}, todo: {todo} ");
}

View File

@@ -1,4 +1,5 @@
using System.IO;
using System;
using System.IO;
namespace LaDOSE.DiscordBot.Service
{
@@ -48,7 +49,7 @@ namespace LaDOSE.DiscordBot.Service
string returnText = "";
var text = File.ReadAllText(db);
var i = 0;
foreach (var line in text.Split('\n'))
foreach (var line in text.Split())
{
if(!string.IsNullOrEmpty(line))
returnText += $"{++i}. {line}";