const functions = require('firebase-functions'); const admin = require('firebase-admin'); const request = require('request') admin.initializeApp(); # 略 const getImageFromUrl = async (imgURL) => { const imgURL = "https://2017.brucon.org/images/b/bc/Twitter_logo.jpg"; const ary = imgURL.split('?')[0].split('/'); const imageName = ary.slice(-1)[0] try { const newFile = storage.bucket().file(imageName