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?
Asked
Active
Viewed 112 times
-3
-
2eval(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 Answers
1
With eval("your variable here having script") function.
Also be careful while using eval().

Joshi Yogesh
- 142
- 1
- 12
-
1one can never be careful enough though kek.. he needs to find a way to do what he wants differently(unless he's building a backdoor and having some hack my box event) – The Bomb Squad Feb 15 '21 at 11:56
-