Test WPF Desktop App with Caliburn And RestSharp
This commit is contained in:
@@ -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} ");
|
||||
}
|
||||
|
||||
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user