-
I am new, very new in this coding world to be honest. I don't really understand the guide and the discussion. What I want is just to make selfbot play discord bot game on my stead without me opening my pc. It will be for every 5 minutes the selfbot will send a message and keep going until I turn of the loop. Is it possible? and how to do it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Idk what your game is? If it's send a message, you can do it like this: {
id()
let channelId = cid
let message = 'Hello'
var loop = true
let count = 0
while (loop) {
const sentMessage = await api.sendMessage(channelId, message)
console.log(`Sent ${++count} messages`)
await delay(5 * 60 * 1000) // 5 minutes
}
} To stop it: loop = false If you want to run it without your pc, you need a server. I can not assist with that. |
Beta Was this translation helpful? Give feedback.
Idk what your game is? If it's send a message, you can do it like this:
To stop it:
If you want to run it without your pc, you need a server. I can not assist with that.
You can have a free one on Google Cloud Compute Engine https://cloud.google.com/free
See also #4 (comment)