replchat.js
Advanced tools
Comparing version 1.0.5 to 1.0.6
12
index.js
@@ -12,2 +12,4 @@ const io = require("socket.io-client"); | ||
this.beta = beta | ||
this.last = "" | ||
} | ||
@@ -46,7 +48,13 @@ | ||
this.socket.on('joined', (data) => { | ||
this.emit('join', data.username) | ||
if (this.last != 'joined.' + data.username) { | ||
this.emit('joined', data.username) | ||
this.last = 'joined.' + data.username | ||
} | ||
}) | ||
this.socket.on('left', (data) => { | ||
this.emit('left', data.username) | ||
if (this.last != 'left.' + data.username) { | ||
this.emit('left', data.username) | ||
this.last = 'left.' + data.username | ||
} | ||
}) | ||
@@ -53,0 +61,0 @@ |
{ | ||
"name": "replchat.js", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A library for making bots with replchat (https://replchat.vapwastaken.repl.co/)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5416
77