From 4c3430344707742f748d2cf6df18506ce9a1ccae Mon Sep 17 00:00:00 2001 From: InfiniteImperm <84783592+InfiniteImperm@users.noreply.github.com> Date: Sun, 7 Jan 2024 11:07:31 +0100 Subject: [PATCH] Create rr.ts --- src/commands/rr.ts | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/commands/rr.ts diff --git a/src/commands/rr.ts b/src/commands/rr.ts new file mode 100644 index 0000000..48c08dd --- /dev/null +++ b/src/commands/rr.ts @@ -0,0 +1,45 @@ +import { ForestBotApiClient } from "forestbot-api"; +import type Bot from "../structure/mineflayer/Bot.js"; + +export default { + commands: ["bp", "bestping"], + minArgs: 0, + maxArgs: 1, + execute: async (user, args, bot, api: ForestBotApiClient) => { + var word1 = [ + "Rabid", + "Radiant", + "Radical", + "Radioactive", + "Rakish", + "Rambunctious", + "Rampant", + "Raspy", + "Ratty", + "Raucous", + "Ravenous", + "Rebellious", + "Recalcitrant", + "Recondite", + "Reliable", + "Repulsive", + "Resilient", + "Restless", + "Rhetorical", + "Ruthless", + "Registered", + ]; + var word2 = [ + "Raiders", + "Retards", + "Rebels", + "Revolutionaries", + "Reapers", + "Rickrollers", + "Rammsteins", + ]; + var r1 = Math.floor(Math.random() * word1.length); + var r2 = Math.floor(Math.random() * word2.length); + return bot.bot.chat("RR = " + word1[r1] + " " + word2[r2]); + }, +} as MCommand;