은승우

Update app.js

Showing 1 changed file with 1 additions and 1 deletions
...@@ -80,7 +80,7 @@ async function handleEvent(event) { ...@@ -80,7 +80,7 @@ async function handleEvent(event) {
80 // ignore non-message event 80 // ignore non-message event
81 return Promise.resolve(null); 81 return Promise.resolve(null);
82 } 82 }
83 - else if (event.type == 'message'&& event.message.type == "text"&&event.message.text.indexOf('https://')!=-1&&event.message.text.indexOf('png')!=-1&&event.message.text.indexOf('jpg')!=-1) { 83 + else if (event.type == 'message'&& event.message.type == "text"&&event.message.text.indexOf('http://')!=-1&&event.message.text.indexOf('png')!=-1&&event.message.text.indexOf('jpg')!=-1) {
84 return new Promise(async(resolve,reject)=>{ 84 return new Promise(async(resolve,reject)=>{
85 85
86 await client.getMessageContent(event.message.id) 86 await client.getMessageContent(event.message.id)
......