forked from embee/woomy
46 lines
954 B
JavaScript
46 lines
954 B
JavaScript
|
|
const lyric = require('../../resources/other/lyrics.json')
|
|
exports.run = async (client, message, args, level) => {
|
|
var lyrics = lyric.creeper;
|
|
|
|
var runtop = true;
|
|
var runbottom = false;
|
|
for(var br = 0; br < lyrics.length; br++) {
|
|
{
|
|
if (runtop === true) {
|
|
var response = await client.awaitReply(message, lyrics[br]);
|
|
runbottom = false;
|
|
};
|
|
|
|
if (runbottom === true) {
|
|
if (response !== lyrics[br]) {
|
|
return message.channel.send("Those aren't the lyrics!")
|
|
}
|
|
runtop = false
|
|
};
|
|
} if (runtop === true) {
|
|
runtop = false
|
|
runbottom = true
|
|
} else if (runbottom === true) {
|
|
runtop = true
|
|
runbottom = false
|
|
}
|
|
}
|
|
message.channel.send("What a lovely duet!")
|
|
};
|
|
|
|
exports.conf = {
|
|
enabled: true,
|
|
guildOnly: false,
|
|
aliases: [],
|
|
permLevel: "User",
|
|
requiredPerms: []
|
|
};
|
|
|
|
exports.help = {
|
|
name: "creeper",
|
|
category: "Fun",
|
|
description: "Aww man",
|
|
usage: "creeper"
|
|
};
|