How to use the sopel.tools.SopelMemory function in sopel

To help you get started, we’ve selected a few sopel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dasu / syrup-sopel-modules / nicovideourl.py View on Github external
def setup(bot):
    if not bot.memory.contains('url_callbacks'):
        bot.memory['url_callbacks'] = SopelMemory()
    bot.memory['url_callbacks'][nvregex] = nicovideoirc
github dasu / syrup-sopel-modules / anilist.py View on Github external
def setup(bot):
  if not bot.memory.contains('url_callbacks'):
    bot.memory['url_callbacks'] = SopelMemory()
  bot.memory['url_callbacks'][anilistregex] = anilistirc
github dasu / syrup-sopel-modules / twitch.py View on Github external
def setup(bot):
    if not bot.memory.contains('url_callbacks'):
        bot.memory['url_callbacks'] = SopelMemory()
    bot.memory['url_callbacks'][twitchregex] = twitchirc
    bot.memory['url_callbacks'][twitchclipsregex] = twitchclipsirc
github dasu / syrup-sopel-modules / hn.py View on Github external
def setup(bot):
    if not bot.memory.contains('url_callbacks'):
        bot.memory['url_callbacks'] = SopelMemory()
    bot.memory['url_callbacks'][hnregex] = hnirc
github dasu / syrup-sopel-modules / instagram.py View on Github external
def setup(bot):
    if not bot.memory.contains('url_callbacks'):
        bot.memory['url_callbacks'] = SopelMemory()
    bot.memory['url_callbacks'][instagramregex] = instaparse