은승우

Update app.js

Showing 1 changed file with 1 additions and 1 deletions
......@@ -80,7 +80,7 @@ async function handleEvent(event) {
// ignore non-message event
return Promise.resolve(null);
}
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) {
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) {
return new Promise(async(resolve,reject)=>{
await client.getMessageContent(event.message.id)
......