rmtrollbot 3.2.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/index.mts +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Reversed Meow TrollBot
|
|
2
|
-
[](https://packagequality.com/#?package=rmtrollbot)
|
|
2
|
+
[](https://packagequality.com/#?package=rmtrollbot)[NPM Dependency Tree](https://npm.anvaka.com/#/view/2d/rmtrollbot)
|
|
3
3
|
# About
|
|
4
4
|
A package making the producing of rmtrollbox bots easier.<br>
|
|
5
5
|
To start a bot, you must start a new TrollBot element.
|
|
@@ -37,7 +37,7 @@ bot.changeColor("#272822") // NICE TRY!!
|
|
|
37
37
|
```
|
|
38
38
|
## New for v2.0.0!
|
|
39
39
|
All types are now moved to [`rmtrollbot-types`](https://www.npmjs.com/package/rmtrollbot-types).
|
|
40
|
-
|
|
40
|
+
### New for v2.1.0!
|
|
41
41
|
Tags are now supported!
|
|
42
42
|
```ts
|
|
43
43
|
let bot = new TrollBot("clankah", "#BFBFBF", "bot" /* Defaults to "bot" */)
|
|
@@ -74,13 +74,15 @@ bot.lastMessageID((id)=>{
|
|
|
74
74
|
bot.editByID(id, "awh... you missed it!")
|
|
75
75
|
})
|
|
76
76
|
```
|
|
77
|
-
|
|
77
|
+
### New for v3.1.0!
|
|
78
78
|
Dang, these updates are comming FAST!<br>
|
|
79
79
|
Now, rmtrollbot uses [`ora`](https://www.npmjs.com/package/ora) when initializing a bot!<br>
|
|
80
80
|
Send any issues/suggestions for this package [here](https://github.com/Agsgt2/rmtrollbot-issues)!
|
|
81
|
-
|
|
81
|
+
### New for v3.2.0!
|
|
82
82
|
UH OH!!! UPDATE OVERFLOW!!!!<br>
|
|
83
83
|
now, it uses [`@rmtrollbot/types`](https://www.npmjs.com/package/@rmtrollbot/types) instead of [`rmtrollbot-types`](https://www.npmjs.com/package/rmtrollbot-types), since rmtrollbot-types is deprecated.
|
|
84
|
+
## New for v4.0.0!
|
|
85
|
+
rmtrollbot now uses [`yocto-spinner`](https://www.npmjs.com/package/yocto-spinner) instead of [`ora`](https://www.npmjs.com/package/ora), since ora installs more dependencies than yocto-spinner, and i don't want that.
|
|
84
86
|
# Extensions
|
|
85
87
|
[`rmtrollbot-decode`](https://www.npmjs.com/package/rmtrollbot-decode?activeTab=readme): Decoder for rmtrollbot<br>
|
|
86
88
|
[`rmtrollbot-ping`](https://www.npmjs.com/package/rmtrollbot-ping): Ping example
|
|
@@ -107,5 +109,7 @@ To install this package by Bun, run the following:
|
|
|
107
109
|
```sh
|
|
108
110
|
bun add rmtrollbot
|
|
109
111
|
```
|
|
112
|
+
# vs. trollbox-bot
|
|
113
|
+

|
|
110
114
|
# Bots using this package
|
|
111
115
|
None have been recorded, but please use this package
|
package/index.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { init } from "@rmtrollbot/loader";
|
|
2
|
-
import
|
|
2
|
+
import yocto from "yocto-spinner"
|
|
3
3
|
import { message, user, userchangenick, userupdate, rmtbID } from "@rmtrollbot/types"
|
|
4
4
|
|
|
5
5
|
export class TrollBot {
|
|
@@ -17,13 +17,13 @@ export class TrollBot {
|
|
|
17
17
|
this.ogcolor = color
|
|
18
18
|
this.tag = tag
|
|
19
19
|
this.ogtag = tag
|
|
20
|
-
const spinner =
|
|
20
|
+
const spinner = yocto({
|
|
21
21
|
text: "Connecting...",
|
|
22
22
|
spinner: {
|
|
23
23
|
frames: "rmtrollbot".split("")
|
|
24
24
|
},
|
|
25
25
|
color: "cyan"
|
|
26
|
-
})
|
|
26
|
+
}).start()
|
|
27
27
|
this.socket.on("_connected", () => {
|
|
28
28
|
spinner.text = "Joining..."
|
|
29
29
|
this.socket.emit("user joined", name, color, tag, "")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rmtrollbot",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "A package making the producing of rmtrollbox bots easier.",
|
|
5
5
|
"main": "index.mts",
|
|
6
6
|
"scripts": {
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
],
|
|
16
16
|
"author": "",
|
|
17
17
|
"license": "MIT",
|
|
18
|
-
"type": "
|
|
18
|
+
"type": "module",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@rmtrollbot/loader": "^1.0.0",
|
|
21
21
|
"@rmtrollbot/types": "^1.0.0",
|
|
22
|
-
"
|
|
22
|
+
"yocto-spinner": "^1.1.0"
|
|
23
23
|
}
|
|
24
24
|
}
|