mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
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