Skip to content

How to make selfbot play my account even though I didn't turn my pc on #17

Answered by rigwild
SyHaqi asked this question in Q&A
Discussion options

You must be logged in to vote

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.
You can have a free one on Google Cloud Compute Engine https://cloud.google.com/free
See also #4 (comment)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SyHaqi
Comment options

Answer selected by SyHaqi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants