Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(24)  |  Call(22)  |  Derive(0)  |  Import(2)

src/w/i/willie-4.3.0/willie/modules/find.py   willie(Download)
 
import re
from willie.tools import Nick, WillieMemory
from willie.module import rule, priority
 
 
def setup(bot):
    bot.memory['find_lines'] = WillieMemory()
    # Add a log for the channel and nick, if there isn't already one
    if trigger.sender not in bot.memory['find_lines']:
        bot.memory['find_lines'][trigger.sender] = WillieMemory()
    if Nick(trigger.nick) not in bot.memory['find_lines'][trigger.sender]:
        bot.memory['find_lines'][trigger.sender][Nick(trigger.nick)] = list()

src/w/i/willie-HEAD/willie/modules/find.py   willie(Download)
 
import re
from willie.tools import Nick, WillieMemory
from willie.module import rule, priority
 
 
def setup(bot):
    bot.memory['find_lines'] = WillieMemory()
    # Add a log for the channel and nick, if there isn't already one
    if trigger.sender not in bot.memory['find_lines']:
        bot.memory['find_lines'][trigger.sender] = WillieMemory()
    if Nick(trigger.nick) not in bot.memory['find_lines'][trigger.sender]:
        bot.memory['find_lines'][trigger.sender][Nick(trigger.nick)] = list()

src/w/i/willie-HEAD/willie/bot.py   willie(Download)
            self.settings = self.db.preferences
 
        self.memory = tools.WillieMemory()
        """
        A thread-safe dict for storage of runtime data to be shared between

src/w/i/willie-4.3.0/willie/bot.py   willie(Download)
            self.settings = self.db.preferences
 
        self.memory = tools.WillieMemory()
        """
        A thread-safe dict for storage of runtime data to be shared between

src/w/i/willie-4.3.0/willie/modules/url.py   willie(Download)
    # Ensure that url_callbacks and last_seen_url are in memory
    if not bot.memory.contains('url_callbacks'):
        bot.memory['url_callbacks'] = tools.WillieMemory()
    if not bot.memory.contains('last_seen_url'):
        bot.memory['last_seen_url'] = tools.WillieMemory()

src/w/i/willie-HEAD/willie/modules/url.py   willie(Download)
    # Ensure that url_callbacks and last_seen_url are in memory
    if not bot.memory.contains('url_callbacks'):
        bot.memory['url_callbacks'] = tools.WillieMemory()
    if not bot.memory.contains('last_seen_url'):
        bot.memory['last_seen_url'] = tools.WillieMemory()

src/w/i/willie-4.3.0/willie/modules/youtube.py   willie(Download)
def setup(bot):
    regex = re.compile('(youtube.com/watch\S*v=|youtu.be/)([\w-]+)')
    if not bot.memory.contains('url_callbacks'):
        bot.memory['url_callbacks'] = tools.WillieMemory()
    bot.memory['url_callbacks'][regex] = ytinfo

src/w/i/willie-4.3.0/willie/modules/reddit-info.py   willie(Download)
def setup(bot):
    post_regex = re.compile(post_url)
    user_regex = re.compile(user_url)
    if not bot.memory.contains('url_callbacks'):
        bot.memory['url_callbacks'] = tools.WillieMemory()

src/w/i/willie-4.3.0/willie/modules/github.py   willie(Download)
def setup(bot):
    regex = re.compile(issueURL)
    if not bot.memory.contains('url_callbacks'):
        bot.memory['url_callbacks'] = tools.WillieMemory()
    bot.memory['url_callbacks'][regex] = issue_info

src/w/i/willie-4.3.0/willie/modules/bugzilla.py   willie(Download)
        return
    if not bot.memory.contains('url_callbacks'):
        bot.memory['url_callbacks'] = tools.WillieMemory()
 
    domains = '|'.join(bot.config.bugzilla.get_list('domains'))

  1 | 2  Next