nodbot/commands/spongebob.js

21 lines
554 B
JavaScript
Raw Normal View History

2021-07-14 01:13:46 +00:00
const functions = require('../functions.js');
2021-06-30 22:59:24 +00:00
module.exports = {
name: 'spongebob',
description: 'SpOnGeBoB-iFy AnYtHiNg AuToMaTiCaLly',
2021-07-06 21:37:29 +00:00
usage: '<text you want spongebob-ified',
2021-06-30 22:59:24 +00:00
execute(message, file) {
let flipper = 0;
let newText = '';
for (const letter of file.name) {
if (flipper == 0) {
newText = newText + letter.toUpperCase();
flipper = 1;
} else {
newText = newText + letter;
flipper = 0;
}
}
2021-07-14 01:16:36 +00:00
message.channel.send(functions.createTextEmbed({ content: newText }, message.author, `.${file.extension}`));
2021-06-30 22:59:24 +00:00
}
}