Skip to content

Instantly share code, notes, and snippets.

@fczuardi
Created September 12, 2010 05:38
Show Gist options
  • Select an option

  • Save fczuardi/575881 to your computer and use it in GitHub Desktop.

Select an option

Save fczuardi/575881 to your computer and use it in GitHub Desktop.
jerkenstein double plugin
this.plugin = {
'name': 'double'
,'pattern': /^\?double (.+)$/
,'description': 'Print the same message but two times larger by repeating each character once.'
,'example': "?double Oh my God it's full on!."
,'action': function(message) {
var output = ''
for(i in message.match_data[1]){
output += message.match_data[1][i]+message.match_data[1][i]
}
message.say(output)
}
,'url': 'http://gist.github.com/575881'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment