Search basics
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// Obtain a sendMessage Object
|
||||
const makeResponse = require('./makeResponse')
|
||||
|
||||
module.exports = (messageObject)=>{
|
||||
module.exports = async (messageObject)=>{
|
||||
if(makeResponse.canRespond(messageObject.text)){
|
||||
console.log(makeResponse.getCommand(messageObject.text))
|
||||
return {
|
||||
"chat_id": messageObject.from.id,
|
||||
"text": makeResponse.getPredicate(messageObject.text),
|
||||
"text": await makeResponse.magnet( makeResponse.getPredicate(messageObject.text)),
|
||||
"parse_mode": "Markdown",
|
||||
"reply_to_message_id": messageObject.message_id
|
||||
}
|
||||
|
Reference in New Issue
Block a user