upped the spams

This commit is contained in:
legop3
2026-04-18 19:23:27 -04:00
parent e5e8e9ed0f
commit b76c5010b4
9 changed files with 17 additions and 17 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -11,8 +11,8 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" /> <meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
<title>Multi Roomba Rover</title> <title>Multi Roomba Rover</title>
<script type="module" crossorigin src="/assets/index-Dpm2R3OA.js"></script> <script type="module" crossorigin src="/assets/index-BaS9tmKz.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BTc7ve5w.css"> <link rel="stylesheet" crossorigin href="/assets/index-DTYY_hd_.css">
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
+1 -1
View File
@@ -10,7 +10,7 @@ module.exports = {
goal: 50, goal: 50,
async run(ctx) { async run(ctx) {
const nickname = randLetter(); const nickname = randLetter();
const messageCount = 8; const messageCount = 100;
for (let i = 0; i < messageCount; i += 1) { for (let i = 0; i < messageCount; i += 1) {
const len = 3 + Math.floor(Math.random() * 14); const len = 3 + Math.floor(Math.random() * 14);
let text = ''; let text = '';
@@ -1,5 +1,5 @@
const NAMES = ['x', 'q', 'z', 'm', 'n', 'p', 'k', 'r']; const NAMES = ['ross', 'david', 'chirpet', 'caydu', 'meow', 'wawa'];
const BURSTS = 14; const BURSTS = 200;
const TICK_MS = 180; const TICK_MS = 180;
module.exports = { module.exports = {
+1 -1
View File
@@ -54,7 +54,7 @@ module.exports = {
async run(ctx) { async run(ctx) {
const prevMode = ctx.getMode(); const prevMode = ctx.getMode();
const prevReason = ctx.getAdminReasonText(); const prevReason = ctx.getAdminReasonText();
const jamReason = `Button box chaos active until ${new Date(Date.now() + DURATION_MS).toLocaleTimeString()}`; const jamReason = `Locked by button box until ${new Date(Date.now() + DURATION_MS).toLocaleTimeString()}`;
try { try {
ctx.setMode('admin', 'buttonbox:modeJam'); ctx.setMode('admin', 'buttonbox:modeJam');
@@ -6,7 +6,7 @@ module.exports = {
name: 'Event Flood', name: 'Event Flood',
goal: 45, goal: 45,
async run(ctx) { async run(ctx) {
for (let i = 0; i < 10; i += 1) { for (let i = 0; i < 500; i += 1) {
const color = COLORS[Math.floor(Math.random() * COLORS.length)]; const color = COLORS[Math.floor(Math.random() * COLORS.length)];
const title = TITLES[Math.floor(Math.random() * TITLES.length)]; const title = TITLES[Math.floor(Math.random() * TITLES.length)];
const message = `Event ${i + 1} / 10`; const message = `Event ${i + 1} / 10`;
+8 -8
View File
@@ -122,11 +122,11 @@ export default function ButtonBoxPanel() {
}, [effectiveAlertVolume, socket]); }, [effectiveAlertVolume, socket]);
return ( return (
<section className="panel-section space-y-1 text-base"> <section className="panel-section space-y-0.5 text-base">
<header className="text-center text-sm text-slate-300"> <header className="panel-muted text-center text-sm">
<p>Button Box</p> <p>Button Box</p>
</header> </header>
<div className="grid grid-cols-4 gap-1"> <div className="grid grid-cols-4 gap-0.5">
{buttons.map((button) => { {buttons.map((button) => {
const id = Number(button.id); const id = Number(button.id);
const count = Number.isFinite(button.count) ? button.count : 0; const count = Number.isFinite(button.count) ? button.count : 0;
@@ -142,16 +142,16 @@ export default function ButtonBoxPanel() {
<article <article
key={id} key={id}
className={[ className={[
'rounded bg-slate-800/70 p-1 text-center shadow-sm ring-1 ring-white/10 transition-colors duration-200', 'surface px-0.5 py-0.5 text-center transition-colors duration-200',
incActive ? 'bg-cyan-900/70 ring-1 ring-cyan-400/70' : '', incActive ? 'border border-cyan-400/70 bg-cyan-900/40' : '',
rewardActive ? 'bg-fuchsia-900/70 ring-1 ring-fuchsia-400/80' : '', rewardActive ? 'border border-fuchsia-400/80 bg-fuchsia-900/40' : '',
] ]
.filter(Boolean) .filter(Boolean)
.join(' ')} .join(' ')}
> >
<p className="text-xs text-slate-300">Button {id}</p> <p className="text-xs text-slate-400">Button {id}</p>
<p className="text-sm font-semibold text-white">{count} / {goal}</p> <p className="text-sm font-semibold text-white">{count} / {goal}</p>
<p className="truncate text-[0.7rem] text-slate-200">#{rewardNumber} {rewardName}</p> <p className="truncate text-[0.7rem] text-slate-300">#{rewardNumber} {rewardName}</p>
</article> </article>
); );
})} })}