/tmra renvoie une tmr aléatoire
This commit is contained in:
parent
c281551603
commit
ffd7b0b0c1
@ -241,7 +241,7 @@ export class RdDCommands {
|
||||
getTMRAleatoire(msg, params) {
|
||||
if (params.length < 2) {
|
||||
let type = params[0];
|
||||
const tmr = TMRUtility.getTMRAleatoire(it => it.type == type);
|
||||
const tmr = TMRUtility.getTMRAleatoire(type ? (it => it.type == type) : (it => true));
|
||||
RdDCommands._chatAnswer(msg, `Case aléatoire: ${tmr.coord} - ${tmr.label}`);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user