Merge branch 'master' of https://github.com/vilP1l/emu
This commit is contained in:
@@ -34,7 +34,8 @@ export default async (client, prize) => {
|
||||
const json = JSON.parse(data);
|
||||
wsLog.push(data);
|
||||
if (json.type === 'question') {
|
||||
client.hqClients.find(c => c.hasEraser).useEraser();
|
||||
const botWithEraser = client.hqClients.find(c => c.hasEraser);
|
||||
if (botWithEraser) botWithEraser.useEraser();
|
||||
client.weights.hq = [0, 0, 0];
|
||||
client.userAnswers.hq = [];
|
||||
({ questionCount, questionNumber } = json);
|
||||
|
||||
Reference in New Issue
Block a user