You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added the switch and refresh commands. One caveat is I noticed the switch command seemed to duplicate all the names on the ladder for some reason. Undo fixed it so it can be recovered but I wasnt able to reproduce or see how it could happen. My only hunch is the MMR was being updated at the same time but even that shouldnt break it.
MessageChannel(channel,"**"+player1.PlayerName+"** has been switched with **"+player2.PlayerName+"**").GetAwaiter().GetResult();
373
+
}else{
374
+
if(code==ErrorCode.Player1DoesNotExist){
375
+
MessageChannel(channel,"**"+playerOrRank1+"** isn't a valid rank or beef name. When was the last time you had your eyes checked?").GetAwaiter().GetResult();
376
+
}elseif(code==ErrorCode.Player2DoesNotExist){
377
+
MessageChannel(channel,"**"+playerOrRank2+"** isn't a valid rank or beef name. When was the last time you had your eyes checked?").GetAwaiter().GetResult();
378
+
}else{
379
+
MessageChannel(channel,"Something went wrong. I'm not sure what but I'm pretty sure it's your fault.").GetAwaiter().GetResult();
help+="\t **%beef% unregister <PlayerLadderName>** - Unregisters the given ladder name.\n";
455
492
help+="\t **%beef% link <PlayerLadderName> <PlayerBattleNetProfileLink>** - Links the given ladder name to the given Battle.net profile link. This will enable their best MMR and race to be displayed on the ladder.\n";
456
493
help+="\t **%beef% unlink <PlayerLadderName>** - Unlinks the given ladder name from their associated Battle.net Profile.\n";
494
+
help+="\t **%beef% switch <PlayerOrRank> <OtherPlayerOrRank>** - Switches the two players on the ladder leaving everyone else in place.\n";
495
+
help+="\t **%beef% refresh** - Requests a refresh to the MMRs for each player. Note that this can take a minute.\n";
457
496
help+="\t **%beef% undo** - Undoes the last change to the ladder (renames, wins, etc..).\n";
458
497
help+="\t **%beef% version** - Prints the version of BeefBot\n";
0 commit comments