示例#1
0
文件: anna.py 项目: 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)
示例#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)
示例#3
0
文件: anna.py 项目: SpaceGremlin/Anna
 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)