Skip to content

Instantly share code, notes, and snippets.

@donpdonp
Last active October 28, 2019 21:27
Show Gist options
  • Save donpdonp/ad76f9377988bdc7bb484cc0ca580e06 to your computer and use it in GitHub Desktop.
Save donpdonp/ad76f9377988bdc7bb484cc0ca580e06 to your computer and use it in GitHub Desktop.
gluon inline public
(function() {
// descriptor
return {name:"inline-public"}
})
function go(msg){
if(msg.method == "irc.privmsg") {
if(msg.params.nick != bot.owner) {
var match = /(.*){{(.*)}}(.*)/.exec(msg.params.message)
if(match){
return match[1]+JSON.stringify(eval(match[2]))+match[3]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment