Skip to content

Instantly share code, notes, and snippets.

@camwhite
Created November 8, 2015 02:56
Show Gist options
  • Save camwhite/152685f42222adf5dd2a to your computer and use it in GitHub Desktop.
Save camwhite/152685f42222adf5dd2a to your computer and use it in GitHub Desktop.
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