def fetch_card(self,message): '''sends all the cards that appear in the message to discord''' msg = message.content.lower() for key in self.nick_dic.keys(): msg = msg.replace('[['+key+']]','[['+self.nick_dic[key]+']]') img_urls = mci.image_urls(msg) for url in img_urls: self.client.send_message(message.channel,url)
def fetch_card(self, message): '''sends all the cards that appear in the message to discord''' (img_urls, msg) = mci.image_urls(message.content) for url in img_urls: self.client.send_message(message.channel, url)
def fetch_card(self,message): '''sends all the cards that appear in the message to discord''' (img_urls,msg) = mci.image_urls(message.content) for url in img_urls: self.client.send_message(message.channel,url)