buttonboxrewardses

This commit is contained in:
legop3
2026-04-18 19:11:26 -04:00
parent fe8d3df421
commit 3513a11068
26 changed files with 1103 additions and 128 deletions
@@ -0,0 +1,32 @@
const LETTERS = 'abcdefghijklmnopqrstuvwxyz';
function randLetter() {
return LETTERS[Math.floor(Math.random() * LETTERS.length)];
}
module.exports = {
id: 'chatSpam',
name: 'Chat Spam',
goal: 50,
async run(ctx) {
const nickname = randLetter();
const messageCount = 8;
for (let i = 0; i < messageCount; i += 1) {
const len = 3 + Math.floor(Math.random() * 14);
let text = '';
for (let j = 0; j < len; j += 1) {
text += randLetter();
}
try {
ctx.sendExternalMessage({
nickname,
role: 'spectator',
roverId: null,
text,
});
} catch {
// ignore spam errors
}
}
},
};