Skip to content

UniBot/unibot-safe-eval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unibot-safe-eval

Safe eval plugin for UniBot. This is done because unibot-eval isn't safe to use in real world. This plugin uses sandbox for actual code runner.

Install

To your UniBot application

npm install git://github.com/UniBot/unibot-safe-eval --save

And after that register new plugin on IRC channels what you need

plugin [#channel] safe-eval

ps. remember to restart your UnitBot.

Usage

Below is couple of examples of usage.

~~2+2
~~Math.random()
~~(function(name) { return 'hello, ' + name; })('foobar')

About

Safe eval plugin for UniBot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published