Created
July 14, 2019 19:05
-
-
Save ItsOnlyBinary/2ff79cddd2c47adff5d4ef6f53174657 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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