Chat Spammer

A simple chat spammer

/*
name: Chat Spammer
author: Surge
 */

import { breeze, IntSetting, StringSetting, Timer, C01PacketChatMessage } from '../breeze_defs';

const timer = new Timer();

breeze.registerModule('ChatSpammer', 'Spams the chat with a message', {

    message: new StringSetting('Message', 'The message to spam', 'Breeze on top', 32),
    delay: new IntSetting('Delay', 'The delay between messages (in seconds)', 5, 1, 10),

    'tick': function(event) {
        if (timer.haPassed(this.delay.getValue() * 1000)) {
            breeze.sendPacket(new C01PacketChatMessage(this.message.getValue()), false);
            timer.reset();
        }
    }

});

Last updated