Throw if there is an attempt to log the bot out (yes this has happened)

This commit is contained in:
Holly Stubbs 2022-04-20 07:25:40 +01:00
parent 3db2c62bb9
commit 798b37104b
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E

View file

@ -2,6 +2,8 @@ const osu = require("osu-packet"),
consoleHelper = require("../../consoleHelper.js"); consoleHelper = require("../../consoleHelper.js");
module.exports = function(CurrentUser) { module.exports = function(CurrentUser) {
if (CurrentUser.uuid === "bot") throw "Tried to log bot out, WTF???";
const logoutStartTime = Date.now(); const logoutStartTime = Date.now();
const streamList = global.StreamsHandler.getStreams(); const streamList = global.StreamsHandler.getStreams();