Commit 60f85174 authored by nanahira's avatar nanahira

fix

parent e08d5dee
...@@ -114,20 +114,20 @@ export class YGOTournamentPlugin { ...@@ -114,20 +114,20 @@ export class YGOTournamentPlugin {
.info( .info(
`Cleaned remaining match for player ${participant.participant.name}.`, `Cleaned remaining match for player ${participant.participant.name}.`,
); );
await this.ctx.http.delete(
`${this.config.tournament.getChallongeUrl()}/participants/${
participant.participant.id
}.json`,
{
api_key: this.config.tournament.challongeKey,
},
);
this.ctx
.logger('challonge')
.info(`Player ${participant.getDisplayName()} quited.`);
await this.deleteChallongeCache();
return '退赛成功。';
} }
await this.ctx.http.delete(
`${this.config.tournament.getChallongeUrl()}/participants/${
participant.participant.id
}.json`,
{
api_key: this.config.tournament.challongeKey,
},
);
this.ctx
.logger('challonge')
.info(`Player ${participant.getDisplayName()} quited.`);
await this.deleteChallongeCache();
return '退赛成功。';
} }
private async onUserGetCurrentMatch(userId: string) { private async onUserGetCurrentMatch(userId: string) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment