-3

I'm trying to make a discord bot that executes syntax that we give in the server and send the console logs... How can I do that?

GmBodhi
  • 123
  • 8
  • 2
    eval(textVar) but that's dangerous.. that's an instant hack of your computer – The Bomb Squad Feb 15 '21 at 11:50
  • I understand that.. but i wanted to test.. thanks tho – GmBodhi Feb 15 '21 at 11:50
  • well test at your own risk.. if ur bot is accessible to anyone other than u.. ur basically hacked – The Bomb Squad Feb 15 '21 at 11:53
  • If you restrict the eval to only execute certain commands or for only certain people to use you will be fine. Many bots have direct eval commands. I'd recommend doing some research to ensure you safegaurd an eval command – Elitezen Feb 15 '21 at 14:32

1 Answers1

1

With eval("your variable here having script") function.

Also be careful while using eval().

Joshi Yogesh
  • 142
  • 1
  • 12