MCPcopy Create free account
hub / github.com/esmBot/esmBot / run

Method run

commands/fun/dice.js:4–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3class DiceCommand extends Command {
4 async run() {
5 const max = this.getOptionInteger("max", true);
6 return `🎲 ${this.getString("commands.responses.dice.landed", {
7 params: {
8 number: (Math.floor(Math.random() * (max || 6)) + 1).toString(),
9 },
10 })}`;
11 }
12
13 static flags = [
14 {

Callers

nothing calls this directly

Calls 2

getOptionIntegerMethod · 0.80
getStringMethod · 0.80

Tested by

no test coverage detected