Octanite-Bot/commands/is.js

13 lines
358 B
JavaScript
Raw Normal View History

2019-02-11 21:33:56 +01:00
module.exports = (random) => (ctx) =>
{
2019-02-11 21:33:56 +01:00
const text_array = ctx.message.text.split(" ");
if (text_array.length == 1)
return "You know, you also have to ask the question.";
2019-02-11 21:33:56 +01:00
return random([["Yes", "Yep", "Yeah", "Yus", "Ja", "Ya", "Aye", "Ay", "Oui"],
["No", "Nopes", "Nu", "Nah", "Nein", "Naw", "Nay", "Yesn't"]][Math.round(
Math.random())])();
2019-02-11 21:33:56 +01:00
};