Skip to content

Commit

Permalink
chore(Controller): Reduce easter egg ascii art chances
Browse files Browse the repository at this point in the history
  • Loading branch information
3urobeat committed Mar 7, 2024
1 parent a27fe04 commit 10c6dff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/controller/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Created Date: 2021-07-09 16:26:00
* Author: 3urobeat
*
* Last Modified: 2024-02-29 15:18:34
* Last Modified: 2024-03-07 18:03:14
* Modified By: 3urobeat
*
* Copyright (c) 2021 - 2024 3urobeat <https://github.com/3urobeat>
Expand Down Expand Up @@ -39,8 +39,8 @@ Controller.prototype.login = async function(firstLogin) {

// Print ASCII art
logger("", "", true);
if (Math.floor(Math.random() * 100) <= 2) logger("", ascii.hellothereascii + "\n", true, false, null, false, true); // 2% chance
else if (Math.floor(Math.random() * 100) <= 5) logger("", ascii.binaryascii + "\n", true, false, null, false, true); // 5% chance
if (Math.floor(Math.random() * 100) <= 1) logger("", ascii.hellothereascii + "\n", true, false, null, false, true); // 1% chance
else if (Math.floor(Math.random() * 100) <= 2) logger("", ascii.binaryascii + "\n", true, false, null, false, true); // 2% chance
else logger("", ascii.ascii[Math.floor(Math.random() * ascii.ascii.length)] + "\n", true, false, null, false, true); // Last param makes sure to cut the width

logger("", "", true); // Put one line above everything that will come to make the output cleaner
Expand Down
2 changes: 1 addition & 1 deletion src/data/fileStructure.json
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@
{
"path": "src/controller/login.js",
"url": "https://raw.githubusercontent.com/3urobeat/steam-comment-service-bot/beta-testing/src/controller/login.js",
"checksum": "570541d6fd32b83f1e52d814173a42b3"
"checksum": "9ca82532f19176e0af017d596697e776"
},
{
"path": "src/data/ascii.js",
Expand Down

0 comments on commit 10c6dff

Please sign in to comment.