diff --git a/storage/bot/plugins/ansi_plugin.py b/storage/bot/plugins/ansi_plugin.py index 5835131..e752087 100644 --- a/storage/bot/plugins/ansi_plugin.py +++ b/storage/bot/plugins/ansi_plugin.py @@ -77,6 +77,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @irc3.event(irc3.rfc.PRIVMSG) def on_privmsg(self,mask=None,event=None,target=None,data=None,**kw): if mask.nick==self.bot.nick: return diff --git a/storage/bot/plugins/cmd_irc_plugin.py b/storage/bot/plugins/cmd_irc_plugin.py index d17e05d..efd0ded 100644 --- a/storage/bot/plugins/cmd_irc_plugin.py +++ b/storage/bot/plugins/cmd_irc_plugin.py @@ -38,6 +38,25 @@ class Plugin: ####################################################################################### ####################################################################################### + + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### @irc3.extend @command(permission='admin', public=False, show_in_help_list=False) diff --git a/storage/bot/plugins/crypto_plugin.py b/storage/bot/plugins/crypto_plugin.py index 1d02509..a3a89d6 100644 --- a/storage/bot/plugins/crypto_plugin.py +++ b/storage/bot/plugins/crypto_plugin.py @@ -50,14 +50,33 @@ if SERVICES_CRYPTOCOMPARE: @irc3.plugin class Plugin: - ####################################################################################### - ####################################################################################### + ################################################################################### + ################################################################################### def __init__(self, bot): self.bot = bot - ####################################################################################### - ####################################################################################### + ################################################################################### + ################################################################################### + + @classmethod + def reload(cls, old): + return cls(old.bot) + + ################################################################################### + ################################################################################### + + def before_reload(self): + pass + + ################################################################################### + ################################################################################### + + def after_reload(self): + pass + + ################################################################################### + ################################################################################### @command(permission='view') def cc(self, mask, target, args): diff --git a/storage/bot/plugins/datetime_plugin.py b/storage/bot/plugins/datetime_plugin.py index 00dbc0d..e8d6915 100644 --- a/storage/bot/plugins/datetime_plugin.py +++ b/storage/bot/plugins/datetime_plugin.py @@ -33,6 +33,25 @@ class Plugin: ####################################################################################### ####################################################################################### + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + def after_reload(self): pass diff --git a/storage/bot/plugins/depumper_plugin.py b/storage/bot/plugins/depumper_plugin.py index d9437fd..4c227f4 100644 --- a/storage/bot/plugins/depumper_plugin.py +++ b/storage/bot/plugins/depumper_plugin.py @@ -126,6 +126,25 @@ class Plugin: ################################################################################### ################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ################################################################################### + ################################################################################### + + def before_reload(self): + pass + + ################################################################################### + ################################################################################### + + def after_reload(self): + pass + + ################################################################################### + ################################################################################### + def dog(self, s): if DEBUGGING: diff --git a/storage/bot/plugins/figlet_plugin.py b/storage/bot/plugins/figlet_plugin.py index 80b0a2f..e017b1d 100644 --- a/storage/bot/plugins/figlet_plugin.py +++ b/storage/bot/plugins/figlet_plugin.py @@ -30,6 +30,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @irc3.extend def fig(self, text=None, font=None, width=None): if font in self.fig_fonts: diff --git a/storage/bot/plugins/google_plugin.py b/storage/bot/plugins/google_plugin.py index fd96e48..19b26de 100644 --- a/storage/bot/plugins/google_plugin.py +++ b/storage/bot/plugins/google_plugin.py @@ -21,6 +21,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + def __get_tiny_url(self, url): tiny_url = 'http://tinyurl.com/api-create.php?url=%s' % url r = requests.get(tiny_url) diff --git a/storage/bot/plugins/highlight_plugin.py b/storage/bot/plugins/highlight_plugin.py index caa2f6b..064c9c2 100644 --- a/storage/bot/plugins/highlight_plugin.py +++ b/storage/bot/plugins/highlight_plugin.py @@ -21,6 +21,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + def __color(self,c): try: c=str(c.lower()) diff --git a/storage/bot/plugins/ip_plugin.py b/storage/bot/plugins/ip_plugin.py index 3cbd5ee..aaa5117 100644 --- a/storage/bot/plugins/ip_plugin.py +++ b/storage/bot/plugins/ip_plugin.py @@ -34,6 +34,25 @@ class Plugin: ################################################################################### ################################################################################### + def after_reload(self): + pass + + ################################################################################### + ################################################################################### + + @classmethod + def reload(cls, old): + return cls(old.bot) + + ################################################################################### + ################################################################################### + + def before_reload(self): + pass + + ################################################################################### + ################################################################################### + def after_reload(self): pass diff --git a/storage/bot/plugins/isup_plugin.py b/storage/bot/plugins/isup_plugin.py index 684ddb2..a014995 100644 --- a/storage/bot/plugins/isup_plugin.py +++ b/storage/bot/plugins/isup_plugin.py @@ -21,6 +21,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + def isup_check(self, domain_or_ip): msg='' try: diff --git a/storage/bot/plugins/joke_plugin.py b/storage/bot/plugins/joke_plugin.py index 7c51be5..f75a236 100644 --- a/storage/bot/plugins/joke_plugin.py +++ b/storage/bot/plugins/joke_plugin.py @@ -22,6 +22,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + def urlget(self,url): USER_AGENT_CURL="curl/7.78.0" ACCEPT_MODES="text/plain" diff --git a/storage/bot/plugins/maple_plugin.py b/storage/bot/plugins/maple_plugin.py index 36026f3..8e87e04 100644 --- a/storage/bot/plugins/maple_plugin.py +++ b/storage/bot/plugins/maple_plugin.py @@ -78,7 +78,6 @@ class MESSAGE_HISTORY(): @irc3.plugin class Plugin: - ####################################################################################### ####################################################################################### @@ -164,6 +163,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + def http_get(self,url,temp_file): req=requests.get(url,stream=True) content_length=req.headers.get('Content-Length') diff --git a/storage/bot/plugins/net_hydra_plugin.py b/storage/bot/plugins/net_hydra_plugin.py index 92ca2e1..d981525 100644 --- a/storage/bot/plugins/net_hydra_plugin.py +++ b/storage/bot/plugins/net_hydra_plugin.py @@ -75,6 +75,25 @@ if SERVICES_HYDRA: dr1p.keyid=self.generate_keyid_token(0) dr1p.token=self.generate_keyid_token(1) + ################################################################################### + ################################################################################### + + @classmethod + def reload(cls, old): + return cls(old.bot) + + ################################################################################### + ################################################################################### + + def before_reload(self): + pass + + ################################################################################### + ################################################################################### + + def after_reload(self): + pass + ################################################################################### ################################################################################### diff --git a/storage/bot/plugins/notes_plugin.py b/storage/bot/plugins/notes_plugin.py index 4cfe46d..5a279cd 100644 --- a/storage/bot/plugins/notes_plugin.py +++ b/storage/bot/plugins/notes_plugin.py @@ -23,6 +23,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @command(permission='admin', public=True, show_in_help_list=True) def notes(self, *args, **kwargs): """list/write/del notes diff --git a/storage/bot/plugins/openai_plugin.py b/storage/bot/plugins/openai_plugin.py index 6c609a2..24d9469 100644 --- a/storage/bot/plugins/openai_plugin.py +++ b/storage/bot/plugins/openai_plugin.py @@ -133,6 +133,25 @@ if SERVICES_OPENAI: ################################################################################### ################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ################################################################################### + ################################################################################### + + def before_reload(self): + pass + + ################################################################################### + ################################################################################### + + def after_reload(self): + pass + + ################################################################################### + ################################################################################### + @command(permission='view') def ai(self, mask, target, args): """OpenAi Question A Term diff --git a/storage/bot/plugins/quote_plugin.py b/storage/bot/plugins/quote_plugin.py index c84c142..671b55d 100644 --- a/storage/bot/plugins/quote_plugin.py +++ b/storage/bot/plugins/quote_plugin.py @@ -21,6 +21,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @irc3.event(irc3.rfc.JOIN) def quote_user_join(self, mask, channel, **kw): """quote a user when they join""" diff --git a/storage/bot/plugins/ratesex_plugin.py b/storage/bot/plugins/ratesex_plugin.py index 2bc7e68..1ef0c32 100644 --- a/storage/bot/plugins/ratesex_plugin.py +++ b/storage/bot/plugins/ratesex_plugin.py @@ -127,6 +127,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + def ratesex_request(self,site,commands): USER_AGENT_BROWSER="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" USER_AGENT_CURL="curl/7.29.0" diff --git a/storage/bot/plugins/remind_plugin.py b/storage/bot/plugins/remind_plugin.py index bf9f973..3c4fe0e 100644 --- a/storage/bot/plugins/remind_plugin.py +++ b/storage/bot/plugins/remind_plugin.py @@ -28,6 +28,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + def __triggered(i): time_now = int(str(time()).split('.')[0]) if i <= time_now: diff --git a/storage/bot/plugins/sasl_custom_plugin.py b/storage/bot/plugins/sasl_custom_plugin.py index f2fefab..320928d 100644 --- a/storage/bot/plugins/sasl_custom_plugin.py +++ b/storage/bot/plugins/sasl_custom_plugin.py @@ -50,6 +50,25 @@ class DR1PSASL: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + def connection_ready(self, *args, **kwargs): print('<<< _sasl_custom_plugin >>> [ CAP LS ]') self.bot.send('CAP LS\r\n') diff --git a/storage/bot/plugins/sed_plugin.py b/storage/bot/plugins/sed_plugin.py index c9bdd92..1240f42 100644 --- a/storage/bot/plugins/sed_plugin.py +++ b/storage/bot/plugins/sed_plugin.py @@ -49,6 +49,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @irc3.event(irc3.rfc.PRIVMSG) def on_privmsg_search_for_sed(self, mask=None, target=None, data=None, **kw): if self.bot.config.nick == mask.nick: diff --git a/storage/bot/plugins/seen_plugin.py b/storage/bot/plugins/seen_plugin.py index be43150..a78dc43 100644 --- a/storage/bot/plugins/seen_plugin.py +++ b/storage/bot/plugins/seen_plugin.py @@ -24,6 +24,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @irc3.event(irc3.rfc.NEW_NICK) def on_nick_change_for_seen(self, nick, new_nick): diff --git a/storage/bot/plugins/soundcloud_plugin.py b/storage/bot/plugins/soundcloud_plugin.py index 04c4f06..177dcee 100644 --- a/storage/bot/plugins/soundcloud_plugin.py +++ b/storage/bot/plugins/soundcloud_plugin.py @@ -25,6 +25,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + def __soundcloud__request(self,command,query): USER_AGENT_CURL="curl/7.29.0" STATUS_BAD_CODE=":( - error code: {}" diff --git a/storage/bot/plugins/strain_plugin.py b/storage/bot/plugins/strain_plugin.py index 1d0a928..1846ce1 100644 --- a/storage/bot/plugins/strain_plugin.py +++ b/storage/bot/plugins/strain_plugin.py @@ -20,6 +20,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + def _get_weed(self,t,s): try: url="" diff --git a/storage/bot/plugins/tcpac_plugin.py b/storage/bot/plugins/tcpac_plugin.py index 27b8b1a..a851319 100644 --- a/storage/bot/plugins/tcpac_plugin.py +++ b/storage/bot/plugins/tcpac_plugin.py @@ -21,6 +21,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @command(permission='view') def tcpac(self, mask, target, args): """tcpac - the irc version of `cat file - | nc tcp.ac 9999`, usage: ?tcpac message diff --git a/storage/bot/plugins/tell_plugin.py b/storage/bot/plugins/tell_plugin.py index f42c03d..2b51ed6 100644 --- a/storage/bot/plugins/tell_plugin.py +++ b/storage/bot/plugins/tell_plugin.py @@ -21,6 +21,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @irc3.event(irc3.rfc.PRIVMSG) def on_privmsg_search_to_tell(self, mask=None, target=None, data=None, **kw): if mask.nick.lower() == "maple": @@ -51,6 +70,5 @@ class Plugin: irc_message = "TCPDIRECT/TELL: {} <{}> telling <{}> {}".format(new_message.get("time"),new_message.get("from"),tell_nick,new_message.get("message")) self.bot.privmsg(target, self.bot.emo(irc_message)) - ########################################################################################### ####################################################################################### EOF diff --git a/storage/bot/plugins/timezonediff_plugin.py b/storage/bot/plugins/timezonediff_plugin.py index 0210370..2b61de7 100644 --- a/storage/bot/plugins/timezonediff_plugin.py +++ b/storage/bot/plugins/timezonediff_plugin.py @@ -24,6 +24,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @command(permission='view') def timezonediff(self, mask, target, args): """timezonediff - '?timezonediff yourzone theirzone calendar_date theirzone_event_time message' or '?timezonediff yourzone theirzone theirzone_event_time message' diff --git a/storage/bot/plugins/tool_colors_plugin.py b/storage/bot/plugins/tool_colors_plugin.py index a797a50..b2fd337 100644 --- a/storage/bot/plugins/tool_colors_plugin.py +++ b/storage/bot/plugins/tool_colors_plugin.py @@ -20,7 +20,14 @@ def colorform(s): ####################################################################################### ####################################################################################### - + + between_gtlts="" + between_brackets="" + everything_past_brackets="" + + ####################################################################################### + ####################################################################################### + try: between_gtlts=s.split(' >>> ')[0].split('<<< ')[1] except: @@ -77,5 +84,19 @@ def colorform(s): print(s) return +########################################################################################### +########################################################################################### + +class COLORFORM: + def __init__(self,c): + c.ircbot.log.info=self.info + def info(self,s=None,cfg=None): + try: + s = s % cfg + except: + s = "" + msg=f'<<< ____log.info_plugin >>> [ {s} ]' + globals()['colorform'](msg) + ########################################################################################### ####################################################################################### EOF diff --git a/storage/bot/plugins/twitter_plugin.py b/storage/bot/plugins/twitter_plugin.py index 2191da4..4710704 100644 --- a/storage/bot/plugins/twitter_plugin.py +++ b/storage/bot/plugins/twitter_plugin.py @@ -88,6 +88,25 @@ if SERVICES_TWITTER: ################################################################################### ################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ################################################################################### + ################################################################################### + + def before_reload(self): + pass + + ################################################################################### + ################################################################################### + + def after_reload(self): + pass + + ################################################################################### + ################################################################################### + @irc3.extend def _similar(self, a, b): return SequenceMatcher(None, a, b).ratio() diff --git a/storage/bot/plugins/txt2img_plugin.py b/storage/bot/plugins/txt2img_plugin.py index e528c27..628cf74 100644 --- a/storage/bot/plugins/txt2img_plugin.py +++ b/storage/bot/plugins/txt2img_plugin.py @@ -121,6 +121,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @command(permission='view',show_in_help_list=True,error_format="{cmd} error - usage: ?{cmd} clear,default,list,show,set,run - example: ?{cmd} set prompt neon female hacker".format) def txt2img(self, mask, target, args): """txt2img diff --git a/storage/bot/plugins/ud_plugin.py b/storage/bot/plugins/ud_plugin.py index 52f3c49..ed7e7a2 100644 --- a/storage/bot/plugins/ud_plugin.py +++ b/storage/bot/plugins/ud_plugin.py @@ -21,6 +21,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @command(permission='view') def ud(self, mask, target, args): """Urban Dictonary A Term diff --git a/storage/bot/plugins/url_grabber_plugin.py b/storage/bot/plugins/url_grabber_plugin.py index 3bc6f82..2722b11 100644 --- a/storage/bot/plugins/url_grabber_plugin.py +++ b/storage/bot/plugins/url_grabber_plugin.py @@ -48,6 +48,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @irc3.event(irc3.rfc.PRIVMSG) def on_privmsg(self, mask=None, target=None, data=None, **kw): if not data.find('reacted with :') == -1: return diff --git a/storage/bot/plugins/whoami_plugin.py b/storage/bot/plugins/whoami_plugin.py index fec3c46..cb500f2 100644 --- a/storage/bot/plugins/whoami_plugin.py +++ b/storage/bot/plugins/whoami_plugin.py @@ -19,6 +19,25 @@ class Plugin: ####################################################################################### ####################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ####################################################################################### + ####################################################################################### + + def before_reload(self): + pass + + ####################################################################################### + ####################################################################################### + + def after_reload(self): + pass + + ####################################################################################### + ####################################################################################### + @command(permission='view') def whoami(self, mask, target, args): """whoami - plugin to give some identity information. usage: ?whoami diff --git a/storage/bot/plugins/youtube_plugin.py b/storage/bot/plugins/youtube_plugin.py index 1618284..a10854e 100644 --- a/storage/bot/plugins/youtube_plugin.py +++ b/storage/bot/plugins/youtube_plugin.py @@ -74,6 +74,25 @@ if SERVICES_YOUTUBE: ################################################################################### ################################################################################### + @classmethod + def reload(cls, old): + return cls(old.bot) + + ################################################################################### + ################################################################################### + + def before_reload(self): + pass + + ################################################################################### + ################################################################################### + + def after_reload(self): + pass + + ################################################################################### + ################################################################################### + @irc3.extend def youtube_search(self, q=None, eventType=None, max_results=1, order="relevance", channelId=None, token=None, location=None, location_radius=None): search_response = youtube.search().list(