update
This commit is contained in:
parent
346cd62828
commit
db8bdd17b7
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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):
|
||||
|
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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)
|
||||
|
@ -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())
|
||||
|
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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"
|
||||
|
@ -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')
|
||||
|
@ -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
|
||||
|
||||
###################################################################################
|
||||
###################################################################################
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"""
|
||||
|
@ -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"
|
||||
|
@ -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:
|
||||
|
@ -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')
|
||||
|
@ -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:
|
||||
|
@ -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):
|
||||
|
||||
|
@ -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: {}"
|
||||
|
@ -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=""
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user