rmtrollbot
v6.0.0
Published
A package making the producing of rmtrollbox bots easier.
Downloads
156
Maintainers
Readme
About
A package making the producing of rmtrollbox bots easier. To start a bot, you must start a new TrollBot element.
let bot = new TrollBot("clanker", "gray")You can recieve messages using onMessage
bot.onMessage((data)=>{
bot.send("aw hell nah i'm out of here")
bot.disconnect()
})You can see how people leave and join using onUser
bot.onUser("join", ...)
bot.onUser("leave", ...)You can also update your user list by using onUserUpdate
bot.onUserUpdate((data)=>{
console.log("user list updated!")
})New for v1.1.0!
You can now change the bot's name, and color!
bot.changeName("i clanker")
bot.changeColor("black")
bot.changeBack()It also has anti-colorcrash
bot.changeColor("#272822") // NICE TRY!!New for v2.0.0!
All types are now moved to rmtrollbot-types.
New for v2.1.0!
Tags are now supported!
let bot = new TrollBot("clankah", "#BFBFBF", "bot" /* Defaults to "bot" */)Same as for v1.1.0, you can also change the tag!
bot.changeTag("") // Changes tag from "bot" to ""
bot.changeBack() // Changes tag back to "bot"New for v3.0.0!
This package now uses @rmtrollbot/loader instead of socket.io-client
Also there is now support for editing, deleting, and IDs!
/* Deleting last message */
bot.send("FREE ROBUX AT [redacted]")
bot.deleteLastMessage()
/* On message deletion */
bot.onMessageDelete((id)=>{
console.log(`Message with id ${id} has been deleted!`)
})
/* Deleting by ID + Getting ID */
bot.send("freak bait!")
bot.lastMessageID((id)=>{
bot.deleteByID(id)
})
/* Editing message (both by ID and by last message) */
bot.send("secret message!")
bot.editLastMessage("awh... you missed it!")
// or...
bot.lastMessageID((id)=>{
bot.editByID(id, "awh... you missed it!")
})New for v3.1.0!
Dang, these updates are comming FAST!
Now, rmtrollbot uses ora when initializing a bot!
Send any issues/suggestions for this package here!
New for v3.2.0!
UH OH!!! UPDATE OVERFLOW!!!!
now, it uses @rmtrollbot/types instead of rmtrollbot-types, since rmtrollbot-types is deprecated.
New for v4.0.0!
rmtrollbot now uses yocto-spinner instead of ora, since ora installs more dependencies than yocto-spinner, and i don't want that.
New for v4.1.0!
Now, the emit() function has changed mechanics.
bot.emit("delet") /* Acts normally like socket.emit() */
bot.emit("message", "hi!") /* Acts like socket.send() */And there is now a Trollbot.of() function.
const bot = new Trollbot("clanker", "gray")
// is the same as...
const bot = TrollBot.of("clanker", "gray")Also there is new documentation! (more soon though...)
New for v4.2.0!
Since the owner (a.k.a. agzgt2) is going to KidZania soon, i added KidZania easter eggs!
New for v5.0.0!
Removal of the KidZania easter eggs have been made, please use @rmtrollbot/kidzania instead.
New for v6.0.0!
You can control which thing to change back now!
bot.changeBack() // Changes name, color, and tag
bot.changeBack({ name: true, tag: true }) // Changes name, and tagYou can also chain commands now!
bot.changeNick("le clanker").send("beep beep boop")Extensions
rmtrollbot-decode: Decoder for rmtrollbot
rmtrollbot-ping: Ping example
Other Package Managers
These are the other package managers that are also supported.
PNPM
To install this package by PNPM, run the following:
pnpm i rmtrollbotYARN
To install this package by Yarn, run the following:
yarn add rmtrollbotCheck out the same package in the Yarn website here!
DENO
To install this package by Deno, run the following:
deno install npm:rmtrollbotBUN
To install this package by Bun, run the following:
bun add rmtrollbotvs. trollbox-bot
From v3.2.2

From v4.0.0

Bots using this package
None have been recorded, but please use this package

