mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
fbb687d3d6
Co-Authored-By: Dmytro Meleshko <dmytro.meleshko@gmail.com>
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
import {Command, NamedCommand} from "onion-lasers";
|
|
import {Random} from "../../lib";
|
|
|
|
export default new NamedCommand({
|
|
description: "Ravioli ravioli...",
|
|
usage: "[number from 1 to 9]",
|
|
async run({send}) {
|
|
send({
|
|
embeds: [
|
|
{
|
|
title: "Ravioli ravioli...",
|
|
image: {
|
|
url: `https://raw.githubusercontent.com/keanuplayz/TravBot/master/assets/ravi${Random.int(
|
|
1,
|
|
10
|
|
)}.png`
|
|
}
|
|
}
|
|
]
|
|
});
|
|
},
|
|
number: new Command({
|
|
async run({send, args}) {
|
|
const arg: number = args[0];
|
|
|
|
if (arg >= 1 && arg <= 9) {
|
|
send({
|
|
embeds: [
|
|
{
|
|
title: "Ravioli ravioli...",
|
|
image: {
|
|
url: `https://raw.githubusercontent.com/keanuplayz/TravBot/master/assets/ravi${arg}.png`
|
|
}
|
|
}
|
|
]
|
|
});
|
|
} else {
|
|
send("Please provide a number between 1 and 9.");
|
|
}
|
|
}
|
|
})
|
|
});
|