Ejemplo n.º 1
0
 public override async Task JoinGameCmd()
 {
     if (Game != null)
     {
         await ReplyAsync("Cannot join a game already in progress.").ConfigureAwait(false);
     }
     else if (!OpenToJoin)
     {
         await ReplyAsync("No game open to join.").ConfigureAwait(false);
     }
     else
     {
         if (await GameService.AddUserAsync(Context.Channel, Context.User))
         {
             await ReplyAsync($"**{Context.User.Username}** has joined.").ConfigureAwait(false);
         }
     }
 }