forked from GitHub/dbot
Should be event rather than data.
This commit is contained in:
parent
6c7fc838d4
commit
2088ee9da3
@ -20,7 +20,7 @@ var js = function(dbot) {
|
|||||||
|
|
||||||
// Run JS code un-sandboxed, with access to DBot memory (admin-only).
|
// Run JS code un-sandboxed, with access to DBot memory (admin-only).
|
||||||
'~ajs': function(event) {
|
'~ajs': function(event) {
|
||||||
if(dbot.admin.include(data.user) ) {
|
if(dbot.admin.include(event.user) ) {
|
||||||
var ret = eval(event.input[1]);
|
var ret = eval(event.input[1]);
|
||||||
if(ret !== undefined) {
|
if(ret !== undefined) {
|
||||||
event.reply(ret);
|
event.reply(ret);
|
||||||
|
Loading…
Reference in New Issue
Block a user