Make all usernames appear as zero-length

This commit is contained in:
7cc5c4f330d47060 2024-10-12 01:19:36 -04:00
parent ebf052234e
commit 57f44cc73d
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA

View file

@ -2,20 +2,17 @@ const crypto = require('crypto')
const rsg = function (count) {
let output = ''
for (let i = 0; i < count; i++) {
const type = Math.floor(Math.random() * 6)
const type = Math.floor(Math.random() * 5)
switch (type) {
case 0:
output += ' '
break
case 1:
output += '§§'
break
case 2:
case 1:
output += '§ '
break
case 2:
case 3:
case 4:
case 5:{ // Make this case more likely
case 4:{ // Make this case more likely
let rng = Math.floor(Math.random() * 16) + 1
if (rng === 7) rng = 17 // No bells
if (rng === 10) rng = 18 // No line feeds