mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 14:10:58 -05:00
20 lines
560 B
Python
20 lines
560 B
Python
#!/usr/bin/env python
|
|
# coding=utf-8
|
|
from __future__ import unicode_literals, absolute_import, print_function, division
|
|
|
|
# sopel imports
|
|
import sopel
|
|
import sopel.module
|
|
|
|
import sopel_modules.SpiceBot as SpiceBot
|
|
|
|
|
|
def setup(bot):
|
|
|
|
SpiceBot.logs.log('Sopel_Patch', "Patching Sopels built-in url_callbacks")
|
|
if 'url_callbacks' not in bot.memory:
|
|
bot.memory['url_callbacks'] = sopel.tools.SopelMemory()
|
|
|
|
SpiceBot.logs.log('Sopel_Patch', "Removing Stock Modules and verifying Dummy Command is present.")
|
|
SpiceBot.stock_modules_begone(bot)
|