Created
September 12, 2010 05:38
-
-
Save fczuardi/575881 to your computer and use it in GitHub Desktop.
jerkenstein double plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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