valoeghese / Jason-Basic

Programming language for niche discord bot in private server
Other
2 stars 2 forks source link

Add the ability to run example files with dj/example [example.djb] #4

Open parmjotsinghrobot opened 3 months ago

parmjotsinghrobot commented 3 months ago

It would be nice, otherwise there's no point having them. If no arguments are given, then just list all example files with a description. This means that if you do complete this, all examples would have to have some documentation written on them.

valoeghese commented 3 months ago

No the point of the examples is you can look at examples and use that to inform you of how the code works, and you can run them yourself by downloading/updating or copy pasting the code

parmjotsinghrobot commented 3 months ago

I disagree.

valoeghese commented 3 months ago

I agree there should be some way to access documentation and examples from the bot though

valoeghese commented 3 months ago

Some way to run the examples as part of that could work

valoeghese commented 3 months ago

If you implement this as a PR I will probably merge - as long as they can see the code being run. Probably don't want infinite loop examples easily able to be run though

parmjotsinghrobot commented 3 months ago

Probably don't want infinite loop examples easily able to be run though

How would this be implemented? Some kind of admin block, so that only exempt users can run them, or just a block list that shows that they exist but don't run them?

valoeghese commented 3 months ago

i'd probably just have a block list that pretends they dont exist