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)
|
@irc3.event(irc3.rfc.PRIVMSG)
|
||||||
def on_privmsg(self,mask=None,event=None,target=None,data=None,**kw):
|
def on_privmsg(self,mask=None,event=None,target=None,data=None,**kw):
|
||||||
if mask.nick==self.bot.nick: return
|
if mask.nick==self.bot.nick: return
|
||||||
|
@ -39,6 +39,25 @@ class Plugin:
|
|||||||
#######################################################################################
|
#######################################################################################
|
||||||
#######################################################################################
|
#######################################################################################
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def reload(cls, old):
|
||||||
|
return cls(old.bot)
|
||||||
|
|
||||||
|
#######################################################################################
|
||||||
|
#######################################################################################
|
||||||
|
|
||||||
|
def before_reload(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
#######################################################################################
|
||||||
|
#######################################################################################
|
||||||
|
|
||||||
|
def after_reload(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
#######################################################################################
|
||||||
|
#######################################################################################
|
||||||
|
|
||||||
@irc3.extend
|
@irc3.extend
|
||||||
@command(permission='admin', public=False, show_in_help_list=False)
|
@command(permission='admin', public=False, show_in_help_list=False)
|
||||||
async def listrooms(self,sender_netroomchan,sender_user,target,):
|
async def listrooms(self,sender_netroomchan,sender_user,target,):
|
||||||
|
@ -50,14 +50,33 @@ if SERVICES_CRYPTOCOMPARE:
|
|||||||
@irc3.plugin
|
@irc3.plugin
|
||||||
class Plugin:
|
class Plugin:
|
||||||
|
|
||||||
#######################################################################################
|
###################################################################################
|
||||||
#######################################################################################
|
###################################################################################
|
||||||
|
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = 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')
|
@command(permission='view')
|
||||||
def cc(self, mask, target, args):
|
def cc(self, mask, target, args):
|
||||||
|
@ -39,6 +39,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')
|
@command(permission='view')
|
||||||
def time(self, mask, target, args):
|
def time(self, mask, target, args):
|
||||||
"""Show local server datetime info
|
"""Show local server datetime info
|
||||||
|
@ -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):
|
def dog(self, s):
|
||||||
|
|
||||||
if DEBUGGING:
|
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
|
@irc3.extend
|
||||||
def fig(self, text=None, font=None, width=None):
|
def fig(self, text=None, font=None, width=None):
|
||||||
if font in self.fig_fonts:
|
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):
|
def __get_tiny_url(self, url):
|
||||||
tiny_url = 'http://tinyurl.com/api-create.php?url=%s' % url
|
tiny_url = 'http://tinyurl.com/api-create.php?url=%s' % url
|
||||||
r = requests.get(tiny_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):
|
def __color(self,c):
|
||||||
try:
|
try:
|
||||||
c=str(c.lower())
|
c=str(c.lower())
|
||||||
|
@ -40,6 +40,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')
|
@command(permission='view')
|
||||||
def ip(self, mask, target, args):
|
def ip(self, mask, target, args):
|
||||||
"""Show ip info
|
"""Show ip info
|
||||||
|
@ -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):
|
def isup_check(self, domain_or_ip):
|
||||||
msg=''
|
msg=''
|
||||||
try:
|
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):
|
def urlget(self,url):
|
||||||
USER_AGENT_CURL="curl/7.78.0"
|
USER_AGENT_CURL="curl/7.78.0"
|
||||||
ACCEPT_MODES="text/plain"
|
ACCEPT_MODES="text/plain"
|
||||||
|
@ -78,7 +78,6 @@ class MESSAGE_HISTORY():
|
|||||||
@irc3.plugin
|
@irc3.plugin
|
||||||
class 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):
|
def http_get(self,url,temp_file):
|
||||||
req=requests.get(url,stream=True)
|
req=requests.get(url,stream=True)
|
||||||
content_length=req.headers.get('Content-Length')
|
content_length=req.headers.get('Content-Length')
|
||||||
|
@ -75,6 +75,25 @@ if SERVICES_HYDRA:
|
|||||||
dr1p.keyid=self.generate_keyid_token(0)
|
dr1p.keyid=self.generate_keyid_token(0)
|
||||||
dr1p.token=self.generate_keyid_token(1)
|
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)
|
@command(permission='admin', public=True, show_in_help_list=True)
|
||||||
def notes(self, *args, **kwargs):
|
def notes(self, *args, **kwargs):
|
||||||
"""list/write/del notes
|
"""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')
|
@command(permission='view')
|
||||||
def ai(self, mask, target, args):
|
def ai(self, mask, target, args):
|
||||||
"""OpenAi Question A Term
|
"""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)
|
@irc3.event(irc3.rfc.JOIN)
|
||||||
def quote_user_join(self, mask, channel, **kw):
|
def quote_user_join(self, mask, channel, **kw):
|
||||||
"""quote a user when they join"""
|
"""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):
|
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_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"
|
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):
|
def __triggered(i):
|
||||||
time_now = int(str(time()).split('.')[0])
|
time_now = int(str(time()).split('.')[0])
|
||||||
if i <= time_now:
|
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):
|
def connection_ready(self, *args, **kwargs):
|
||||||
print('<<< _sasl_custom_plugin >>> [ CAP LS ]')
|
print('<<< _sasl_custom_plugin >>> [ CAP LS ]')
|
||||||
self.bot.send('CAP LS\r\n')
|
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)
|
@irc3.event(irc3.rfc.PRIVMSG)
|
||||||
def on_privmsg_search_for_sed(self, mask=None, target=None, data=None, **kw):
|
def on_privmsg_search_for_sed(self, mask=None, target=None, data=None, **kw):
|
||||||
if self.bot.config.nick == mask.nick:
|
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)
|
@irc3.event(irc3.rfc.NEW_NICK)
|
||||||
def on_nick_change_for_seen(self, nick, 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):
|
def __soundcloud__request(self,command,query):
|
||||||
USER_AGENT_CURL="curl/7.29.0"
|
USER_AGENT_CURL="curl/7.29.0"
|
||||||
STATUS_BAD_CODE=":( - error code: {}"
|
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):
|
def _get_weed(self,t,s):
|
||||||
try:
|
try:
|
||||||
url=""
|
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')
|
@command(permission='view')
|
||||||
def tcpac(self, mask, target, args):
|
def tcpac(self, mask, target, args):
|
||||||
"""tcpac - the irc version of `cat file - | nc tcp.ac 9999`, usage: ?tcpac message
|
"""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)
|
@irc3.event(irc3.rfc.PRIVMSG)
|
||||||
def on_privmsg_search_to_tell(self, mask=None, target=None, data=None, **kw):
|
def on_privmsg_search_to_tell(self, mask=None, target=None, data=None, **kw):
|
||||||
if mask.nick.lower() == "maple":
|
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"))
|
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))
|
self.bot.privmsg(target, self.bot.emo(irc_message))
|
||||||
|
|
||||||
|
|
||||||
###########################################################################################
|
###########################################################################################
|
||||||
####################################################################################### EOF
|
####################################################################################### 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')
|
@command(permission='view')
|
||||||
def timezonediff(self, mask, target, args):
|
def timezonediff(self, mask, target, args):
|
||||||
"""timezonediff - '?timezonediff yourzone theirzone calendar_date theirzone_event_time message' or '?timezonediff yourzone theirzone theirzone_event_time message'
|
"""timezonediff - '?timezonediff yourzone theirzone calendar_date theirzone_event_time message' or '?timezonediff yourzone theirzone theirzone_event_time message'
|
||||||
|
@ -21,6 +21,13 @@ def colorform(s):
|
|||||||
#######################################################################################
|
#######################################################################################
|
||||||
#######################################################################################
|
#######################################################################################
|
||||||
|
|
||||||
|
between_gtlts=""
|
||||||
|
between_brackets=""
|
||||||
|
everything_past_brackets=""
|
||||||
|
|
||||||
|
#######################################################################################
|
||||||
|
#######################################################################################
|
||||||
|
|
||||||
try:
|
try:
|
||||||
between_gtlts=s.split(' >>> ')[0].split('<<< ')[1]
|
between_gtlts=s.split(' >>> ')[0].split('<<< ')[1]
|
||||||
except:
|
except:
|
||||||
@ -77,5 +84,19 @@ def colorform(s):
|
|||||||
print(s)
|
print(s)
|
||||||
return
|
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
|
####################################################################################### 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
|
@irc3.extend
|
||||||
def _similar(self, a, b):
|
def _similar(self, a, b):
|
||||||
return SequenceMatcher(None, a, b).ratio()
|
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)
|
@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):
|
def txt2img(self, mask, target, args):
|
||||||
"""txt2img
|
"""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')
|
@command(permission='view')
|
||||||
def ud(self, mask, target, args):
|
def ud(self, mask, target, args):
|
||||||
"""Urban Dictonary A Term
|
"""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)
|
@irc3.event(irc3.rfc.PRIVMSG)
|
||||||
def on_privmsg(self, mask=None, target=None, data=None, **kw):
|
def on_privmsg(self, mask=None, target=None, data=None, **kw):
|
||||||
if not data.find('reacted with :') == -1: return
|
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')
|
@command(permission='view')
|
||||||
def whoami(self, mask, target, args):
|
def whoami(self, mask, target, args):
|
||||||
"""whoami - plugin to give some identity information. usage: ?whoami
|
"""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
|
@irc3.extend
|
||||||
def youtube_search(self, q=None, eventType=None, max_results=1, order="relevance", channelId=None, token=None, location=None, location_radius=None):
|
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(
|
search_response = youtube.search().list(
|
||||||
|
Loading…
Reference in New Issue
Block a user