blooket.js
Advanced tools
Comparing version 1.2.1 to 1.2.2
--- | ||
name: Feature request | ||
about: Suggest an idea for Blooket.JS | ||
title: '' | ||
title: Feature request | ||
labels: enhancement | ||
@@ -6,0 +6,0 @@ assignees: '' |
@@ -168,2 +168,3 @@ const ws = require('ws'); | ||
} else if (this.mode == "fact") { | ||
if (Math.floor(Math.random() * 100) =< 80) { | ||
this.blooks += 1 | ||
@@ -175,2 +176,15 @@ console.log(`You have ${this.blooks} blooks`) | ||
}, this.options.blooktime); | ||
} else { | ||
if (Math.floor(Math.random() * 5) == 0) { | ||
this.glitch("la") | ||
} else if (Math.floor(Math.random() * 5) == 1) { | ||
this.glitch("f") | ||
} else if (Math.floor(Math.random() * 5) == 2) { | ||
this.glitch("sm") | ||
} else if (Math.floor(Math.random() * 5) == 3) { | ||
this.glitch("lo") | ||
} else { | ||
this.glitch("as") | ||
} | ||
} | ||
this.emit("NextQuestion") | ||
@@ -211,3 +225,5 @@ } else if (this.mode == "race") { | ||
} | ||
glitch(glitch) { | ||
this.socket.send('{"t":"d","d":{"r":1,"a":"p","b":{"p":"/' + this.pin + '/act","d":{"b":"' + this.animal + '","g":"' + glitch + '","n":"' + this.name + '"}}}}') | ||
} | ||
swap(player) { | ||
@@ -214,0 +230,0 @@ var targetanimal = this.steal[0][player].b |
{ | ||
"name": "blooket.js", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "This is a terminal client for the quiz service known as Blooket", | ||
@@ -5,0 +5,0 @@ "main": "blooket.js", |
![Blooket.JS](https://blooket.js.org/images/favicon_animated.svg) | ||
# Blooket.JS | ||
## Version 1.2.1 | ||
## Version 1.2.2 | ||
#### Table Of Contents | ||
@@ -5,0 +5,0 @@ - [Features](#features) |
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
53849
14
549