2021-04-13 12:38:52 +00:00
|
|
|
import {Command, NamedCommand} from "onion-lasers";
|
2021-04-05 12:21:27 +00:00
|
|
|
import {Random} from "../../lib";
|
2021-03-31 01:40:29 +00:00
|
|
|
|
2021-04-05 12:21:27 +00:00
|
|
|
export default new NamedCommand({
|
2021-03-31 01:40:29 +00:00
|
|
|
description: "Ravioli ravioli...",
|
|
|
|
usage: "[number from 1 to 9]",
|
2021-04-11 09:11:21 +00:00
|
|
|
async run({send}) {
|
2021-04-10 13:34:55 +00:00
|
|
|
send({
|
2021-03-31 01:40:29 +00:00
|
|
|
embed: {
|
|
|
|
title: "Ravioli ravioli...",
|
|
|
|
image: {
|
|
|
|
url: `https://raw.githubusercontent.com/keanuplayz/TravBot/master/assets/ravi${Random.int(
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
)}.png`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
number: new Command({
|
2021-04-11 09:11:21 +00:00
|
|
|
async run({send, args}) {
|
2021-04-05 12:21:27 +00:00
|
|
|
const arg: number = args[0];
|
2021-03-31 01:40:29 +00:00
|
|
|
|
|
|
|
if (arg >= 1 && arg <= 9) {
|
2021-04-10 13:34:55 +00:00
|
|
|
send({
|
2021-03-31 01:40:29 +00:00
|
|
|
embed: {
|
|
|
|
title: "Ravioli ravioli...",
|
|
|
|
image: {
|
|
|
|
url: `https://raw.githubusercontent.com/keanuplayz/TravBot/master/assets/ravi${arg}.png`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
} else {
|
2021-04-10 13:34:55 +00:00
|
|
|
send("Please provide a number between 1 and 9.");
|
2021-03-31 01:40:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
});
|