-
Edit nickname to several nicknames only on server with interval time |
Beta Was this translation helpful? Give feedback.
Answered by
DeadLyBro
Sep 6, 2022
Replies: 1 comment 4 replies
-
This should be work, edit nicks. {
id()
const nick = ['Nick1', 'Nick2', 'Nick3']
const guildId = gid
var loop = true
let nickIndex = 0
let count = 0
while (loop) {
await api.changeNick(guildId, nick[nickIndex])
console.log(`Nick changed ${++count} times.`)
nickIndex = (nickIndex + 1) % nick.length
await api.delay(10 * 1000) // Wait 10 second, 1000 is equal to one second
}
} To stop write console;
|
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
rigwild
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should be work, edit nicks.
To stop write console;