Created
November 8, 2015 02:56
-
-
Save camwhite/152685f42222adf5dd2a to your computer and use it in GitHub Desktop.
This file contains 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
module.exports = [{ | |
types: ['message'], | |
regex: /^(!|\/)dick$/, | |
action: (chat, stanza) => { | |
var timer; | |
var shaft = "="; | |
var balls = "8"; | |
var head = "D"; | |
var dicker = () => { | |
shaft = shaft + "="; | |
chat.sendMessage(balls + shaft + head); | |
} | |
var dicked = setInterval(() => dicker(), 50); | |
setTimeout(() => clearInterval(dicked), 1000); | |
} | |
}, { | |
types: ['startup'], | |
action: (chat, stanza) => { | |
console.log( 'Starting the dick plugin' ); | |
} | |
}]; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment