Ejemplo n.º 1
0
Archivo: anna.py Proyecto: Oliv95/Anna
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)