edp445/detections/question-custom.js

12 lines
532 B
JavaScript
Raw Normal View History

2022-11-25 20:37:31 +00:00
module.exports = (msc, author) => {
var detections = ["?"]
var replies = [`uncle google here: https://www.google.com/search?q=${msc.replace(/@/g, "noping")}`, `grandpa yahoo here: https://search.yahoo.com/search?p=${msc.replace(/@/g, "noping")}`, `mr wikipedia here: https://en.wikipedia.org/wiki/${msc.replace(/@/g, "noping")}`]
var reply = replies[Math.floor(Math.random() * replies.length)]
var donejson = {
detections:detections,
replies:replies,
reply:reply
}
return donejson
}