Fix tournament creation.

This commit is contained in:
2019-05-27 23:04:06 +02:00
parent b8d49cea69
commit c88465c083
4 changed files with 18 additions and 4 deletions

View File

@@ -49,7 +49,9 @@ namespace LaDOSE.Api.Controllers
{
Subject = new ClaimsIdentity(new Claim[]
{
new Claim(ClaimTypes.Name, user.Id.ToString())
new Claim(ClaimTypes.Name, user.Id.ToString()),
}),
Expires = DateTime.UtcNow.AddMinutes(16),
SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.HmacSha256Signature)

View File

@@ -17,7 +17,8 @@ namespace LaDOSE.DiscordBot.Command
dep = d;
}
[Command("todo")]
[Command("todo"),Description("Todo List")]
public async Task TodoAsync(CommandContext ctx, string command,params string[] todo)
{
await ctx.TriggerTypingAsync();
@@ -123,7 +124,18 @@ namespace LaDOSE.DiscordBot.Command
return;
}
break;
case "HELP":
await ctx.RespondAsync($"Todo:\n" +
$"-Add : Add todo\n" +
$"-Del : Delete todo\n" +
$"-V : check todo\n" +
$"-X : uncheck todo\n");
break;
default:
await ctx.RespondAsync($"Need some help ? !todo help");
break;
}
//await ctx.RespondAsync($"command : {command}, todo: {todo} ");
}

View File

@@ -109,7 +109,7 @@ namespace LaDOSE.Business.Service
var remove = currentEvent.Date?.ToString("Mdyy");
var url = $"{remove}{selectedGame.Id}";
var selectedEvent = FormatCurrentEventName(currentEvent.Name);
var name = $"[{eventDate}] LaDOSE.Net - {selectedEvent} - {selectedGame.Name}";
var name = $"[{eventDate}] LaDOSE.net - {selectedEvent} - {selectedGame.Name}";
var tournament = _challongeProvider.CreateTournament(name, url).Result;