Fix tournament creation.
This commit is contained in:
@@ -49,7 +49,9 @@ namespace LaDOSE.Api.Controllers
|
|||||||
{
|
{
|
||||||
Subject = new ClaimsIdentity(new Claim[]
|
Subject = new ClaimsIdentity(new Claim[]
|
||||||
{
|
{
|
||||||
new Claim(ClaimTypes.Name, user.Id.ToString())
|
new Claim(ClaimTypes.Name, user.Id.ToString()),
|
||||||
|
|
||||||
|
|
||||||
}),
|
}),
|
||||||
Expires = DateTime.UtcNow.AddMinutes(16),
|
Expires = DateTime.UtcNow.AddMinutes(16),
|
||||||
SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.HmacSha256Signature)
|
SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.HmacSha256Signature)
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ namespace LaDOSE.DiscordBot.Command
|
|||||||
dep = d;
|
dep = d;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("todo")]
|
[Command("todo"),Description("Todo List")]
|
||||||
|
|
||||||
public async Task TodoAsync(CommandContext ctx, string command,params string[] todo)
|
public async Task TodoAsync(CommandContext ctx, string command,params string[] todo)
|
||||||
{
|
{
|
||||||
await ctx.TriggerTypingAsync();
|
await ctx.TriggerTypingAsync();
|
||||||
@@ -123,7 +124,18 @@ namespace LaDOSE.DiscordBot.Command
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
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} ");
|
//await ctx.RespondAsync($"command : {command}, todo: {todo} ");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ namespace LaDOSE.Business.Service
|
|||||||
var remove = currentEvent.Date?.ToString("Mdyy");
|
var remove = currentEvent.Date?.ToString("Mdyy");
|
||||||
var url = $"{remove}{selectedGame.Id}";
|
var url = $"{remove}{selectedGame.Id}";
|
||||||
var selectedEvent = FormatCurrentEventName(currentEvent.Name);
|
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;
|
var tournament = _challongeProvider.CreateTournament(name, url).Result;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user