rmtrollbot 4.1.0 → 4.2.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 +2 -0
- package/index.mts +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -97,6 +97,8 @@ const bot = new Trollbot("clanker", "gray")
|
|
|
97
97
|
const bot = TrollBot.of("clanker", "gray")
|
|
98
98
|
```
|
|
99
99
|
Also there is new documentation! (more soon though...)
|
|
100
|
+
### New for v4.2.0!
|
|
101
|
+
Since the owner (a.k.a. agzgt2) is going to KidZania soon, i added KidZania easter eggs!
|
|
100
102
|
# Extensions
|
|
101
103
|
[`rmtrollbot-decode`](https://www.npmjs.com/package/rmtrollbot-decode?activeTab=readme): Decoder for rmtrollbot<br>
|
|
102
104
|
[`rmtrollbot-ping`](https://www.npmjs.com/package/rmtrollbot-ping): Ping example
|
package/index.mts
CHANGED
|
@@ -20,6 +20,7 @@ export class TrollBot {
|
|
|
20
20
|
* @param tag (Defaults to "bot") The tag for the bot.
|
|
21
21
|
*/
|
|
22
22
|
constructor(name: string, color: string, tag: string = "bot") {
|
|
23
|
+
console.log("I AM GOING TO KIDZANIA!!!")
|
|
23
24
|
this.name = name
|
|
24
25
|
this.ogname = name
|
|
25
26
|
this.color = color
|
|
@@ -121,7 +122,17 @@ export class TrollBot {
|
|
|
121
122
|
editByID(id: rmtbID, newt: string) {
|
|
122
123
|
this.socket.emit("edit_ownid", id, newt)
|
|
123
124
|
}
|
|
125
|
+
kidzania(){
|
|
126
|
+
this.socket.send("The owner of <a href=\"https://www.npmjs.com/package/rmtrollbot\">this package</a> is going to kidzania!")
|
|
127
|
+
}
|
|
124
128
|
static of(name: string, color: string, tag: string = "bot"){
|
|
125
129
|
return new TrollBot(name, color, tag)
|
|
126
130
|
}
|
|
131
|
+
static kidzania(bot?: TrollBot){
|
|
132
|
+
if (bot){
|
|
133
|
+
bot.send("The owner of <a href=\"https://www.npmjs.com/package/rmtrollbot\">this package</a> is going to kidzania!")
|
|
134
|
+
} else {
|
|
135
|
+
console.log("agzgt2 is going to KidZania!")
|
|
136
|
+
}
|
|
137
|
+
}
|
|
127
138
|
}
|