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.
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.
Below is couple of examples of usage.
~~2+2
~~Math.random()
~~(function(name) { return 'hello, ' + name; })('foobar')