Skip to content

Instantly share code, notes, and snippets.

@ItsOnlyBinary
Created July 14, 2019 19:05
Show Gist options
  • Save ItsOnlyBinary/2ff79cddd2c47adff5d4ef6f53174657 to your computer and use it in GitHub Desktop.
Save ItsOnlyBinary/2ff79cddd2c47adff5d4ef6f53174657 to your computer and use it in GitHub Desktop.
<script>
var count = 100;
var nick = 'TestNick';
var channel = '#testers';
kiwi.plugin('fake_users', function(kiwi, log) {
kiwi.on('network.new', function(event, opt) {
let buffer = kiwi.state.getOrAddBufferByName(event.network.id, channel);
for (var i = count; i > 0; i--) {
kiwi.state.addUserToBuffer(buffer, {
nick: nick + i,
username: nick.toLowerCase() + i,
host: 'test.user',
realname: 'Test User',
account: nick + i,
});
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment