This commit is contained in:
.[d]. 2023-03-26 15:46:52 -05:00
parent 4fafc5484d
commit a40a9dfa76
50 changed files with 103 additions and 22 deletions

@ -69,6 +69,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot=bot
self.bot.eio=EIO()

@ -43,7 +43,7 @@ if SERVICES_AUTHNICKSERV:
###########################################################################
def __init__(self,bot):
print('[ auth_nickserv initiated ]')
print('[ loaded ]')
self.bot=bot
###########################################################################

@ -42,7 +42,7 @@ if SERVICES_AUTHSASL:
###################################################################################
def __init__(self, bot):
print('[ auth_sasl initiated ]')
print('[ loaded ]')
self.bot=bot
self.auth=(f'{BOT_SASL_USERNAME}\0{BOT_SASL_USERNAME}\0{BOT_SASL_PASSWORD}')
self.auth=base64.encodebytes(self.auth.encode('utf8'))

@ -12,6 +12,7 @@ import functools
from random import shuffle
import string
from irc3.plugins.cron import cron
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -28,6 +29,7 @@ class Plugin:
#######################################################################################
def __init__(self,bot):
print('[ loaded ]')
self.bot=bot
staff_set=set()
self.bot.auto_kick_list = set(self.bot.db.getlist("auto_kick_list", []))

@ -42,6 +42,7 @@ class Plugin:
###################################################################################
###################################################################################
print('[ loaded ]')
self.bot=bot
self.bot.diagnostic_flag=False
self.bot.ceiling__last_songs=50

@ -34,6 +34,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
#######################################################################################

@ -13,6 +13,7 @@ import shlex
import irc3
import sys
import re
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -312,6 +313,7 @@ class Commands(dict):
#######################################################################################
def __init__(self, context):
print('[ loaded ]')
self.context = context
module = self.__class__.__module__
self.config = config = context.config.get(module, {})

@ -33,6 +33,7 @@ class Core:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
self.timeout = int(self.bot.config.get('timeout'))
self.max_lag = int(self.bot.config.get('max_lag'))

@ -53,6 +53,7 @@ if SERVICES_CRYPTOCOMPARE:
###################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
###################################################################################

@ -4,6 +4,7 @@
from irc3.plugins.command import command
import irc3
from datetime import datetime as dt
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -15,7 +16,8 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
self.bot = bot
print('[ loaded ]')
self.bot = bot
#######################################################################################
#######################################################################################

@ -47,6 +47,7 @@ from irc3.plugins.command import command
from irc3.plugins.cron import cron
from tool_guds_plugin import guds
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -93,6 +94,7 @@ class Plugin:
###################################################################################
def __init__(self):
print('[ loaded ]')
self.txt=[]
self.ans=[]

@ -66,6 +66,7 @@ class Plugin:
#######################################################################################
def __init__(self,bot):
print('[ loaded ]')
self.bot=bot
self.bot.dbio=DBIO()

@ -5,6 +5,7 @@ from irc3.plugins.command import command
import irc3
import random
import os
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -21,6 +22,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
#######################################################################################

@ -5,6 +5,7 @@
import os
import irc3
from stat import S_ISFIFO
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -22,6 +23,7 @@ class Fifo:
#######################################################################################
def __init__(self, context):
print('[ loaded ]')
self.context = context
self.config = self.context.config
self.send_blank_line = self.config.get('send_blank_line', True)

@ -5,6 +5,7 @@ from irc3.plugins.command import command
import irc3
import pyfiglet
import random
from tool_colors_plugin import colorform as print;
###########################################################################################
###########################################################################################
@ -21,6 +22,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
self.fig_fonts = set(self.bot.db.getlist("fig_font_list", []))
if not self.fig_fonts:

@ -5,6 +5,7 @@ from irc3.plugins.command import command
from lxml.html import fromstring
from googlesearch import search
import irc3,os,sys,requests
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -16,6 +17,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
#######################################################################################

@ -5,6 +5,7 @@ from irc3.plugins.command import command
import irc3
import random
import os
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -16,7 +17,8 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
self.bot=bot
print('[ loaded ]')
self.bot=bot
#######################################################################################
#######################################################################################

@ -5,6 +5,7 @@ from irc3.plugins.command import command
import irc3
import requests
import socket
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -16,6 +17,7 @@ class Plugin:
###################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
###################################################################################

@ -5,6 +5,7 @@ from irc3.plugins.command import command
import irc3
from urllib.request import Request, urlopen
from urllib.error import URLError, HTTPError
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -16,6 +17,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
#######################################################################################

@ -5,6 +5,7 @@ from irc3.plugins.command import command
import irc3
from urllib.request import Request, urlopen
from urllib.error import URLError, HTTPError
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -16,8 +17,9 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
self.bot=bot
self.site_url="https://icanhazdadjoke.com"
print('[ loaded ]')
self.bot=bot
self.site_url="https://icanhazdadjoke.com"
#######################################################################################
#######################################################################################

@ -134,6 +134,7 @@ class Plugin:
#######################################################################################
def __init__(self,bot):
print('[ loaded ]')
self.bot=bot
self.bot.history=MESSAGE_HISTORY()
message_history=self.bot.history

@ -110,8 +110,9 @@ if SERVICES_DISCORD:
intents.message_content = True
client=discord.Client(intents=intents)
def __init__(self):
print('[ loaded ]')
discord.gateway._log=print
discord.client._log=print
discord.client._log=print
self.ircbot=guds.memory('ircbot')
self.dbname="discordchat"
self.db=self.ircbot.db.getlist(self.dbname)

@ -19,6 +19,7 @@ if SERVICES_HYDRA:
from random import shuffle
from datetime import datetime
import socket
from tool_colors_plugin import colorform as print
#######################################################################################
#######################################################################################
@ -55,10 +56,11 @@ if SERVICES_HYDRA:
keyid=''.join(keyid)
return keyid
###################################################################################
###################################################################################
###################################################################################
###################################################################################
def __init__(self,bot):
print('[ loaded ]')
self.bot=bot
dr1p.color=""
try:

@ -128,6 +128,7 @@ def d_irc_msg(target,msg,):
@irc3.plugin
class Plugin:
def __init__(self,bot):
print('[ loaded ]')
self.bot=bot
print(f'[ plugin loaded ]')
globals()['guds'].memories.append([self.bot,'net_irc_plugin:start_ircbot.self'])

@ -100,11 +100,11 @@ if SERVICES_MATRIX:
class MATRIXBOT:
def __init__(self):
print('[ loaded ]')
self.ircbot=guds.memory('ircbot')
self.dbname="matrixchat"
self.db=self.ircbot.db.getlist(self.dbname)
if not self.db: self.db=[]
print(f'[ plugin loaded ]')
globals()['guds'].memories.append([self,'net_matrix_plugin:start_matrixbot.self'])
###################################################################################

@ -66,6 +66,7 @@ if SERVICES_TELEGRAM:
class TELEGRAMBOT:
def __init__(self):
print('[ loaded ]')
self.ircbot=guds.memory('ircbot')
self.dbname="telegramchat"
self.db=self.ircbot.db.getlist(self.dbname)

@ -7,6 +7,7 @@ from datetime import datetime
import dateutil.parser
import timeago
import uuid
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -18,6 +19,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
#######################################################################################

@ -83,6 +83,7 @@ if SERVICES_OPENAI:
###################################################################################
def __init__(self):
print('[ loaded ]')
self.processing=0
###################################################################################

@ -5,6 +5,7 @@ from irc3.plugins.command import command
import irc3
import random
import uuid
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -16,6 +17,7 @@ class Plugin:
#######################################################################################
def __init__(self,bot):
print('[ loaded ]')
self.bot=bot
#######################################################################################

@ -14,6 +14,7 @@ import re
from urllib.request import Request, urlopen
from urllib.error import URLError, HTTPError
from random import randint
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -122,6 +123,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
#######################################################################################

@ -7,6 +7,7 @@ import irc3
from datetime import datetime
from time import time
import re
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -23,7 +24,8 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
self.bot = bot
print('[ loaded ]')
self.bot = bot
#######################################################################################
#######################################################################################

@ -5,6 +5,7 @@ import irc3
import os
import random
from string import ascii_lowercase as alpha
from tool_colors_plugin import colorform as print
SED1_RE = "s/"
SED2_RE = "j/"
@ -40,11 +41,12 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
self.d=TCPSED()
for _ in range(2000):
self.d.buffer_text.append('')
self.d.buffer_nick.append('')
self.bot = bot
print('[ loaded ]')
self.d=TCPSED()
for _ in range(2000):
self.d.buffer_text.append('')
self.d.buffer_nick.append('')
self.bot = bot
#######################################################################################
#######################################################################################

@ -7,6 +7,7 @@ import operator
import irc3
import timeago
import dateutil.parser
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -18,6 +19,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
return

@ -9,6 +9,7 @@ from urllib.parse import quote_plus
import html
import requests
from lxml.html import fromstring
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -20,6 +21,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
#######################################################################################

@ -8,6 +8,7 @@ except ImportError:
import json
import irc3
import shelve
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -18,6 +19,7 @@ class Shelve:
#######################################################################################
def __init__(self, uri=None, **kwargs):
print('[ loaded ]')
self.filename = uri[9:]
self.db = shelve.open(self.filename)

@ -4,6 +4,7 @@
from irc3.plugins.command import command
import irc3
import requests
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -15,7 +16,8 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
self.bot = bot
print('[ loaded ]')
self.bot = bot
#######################################################################################
#######################################################################################

@ -5,6 +5,7 @@ from irc3.plugins.command import command
from irc3.plugins.cron import cron
import irc3
import socket
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -16,7 +17,8 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
self.bot = bot
print('[ loaded ]')
self.bot = bot
#######################################################################################
#######################################################################################

@ -4,6 +4,7 @@
from datetime import datetime
import irc3
import re
from tool_colors_plugin import colorform as print
TELL_RE = re.compile('maple.tell\s(.+?)\s(.+)')
###########################################################################################
@ -16,6 +17,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
#######################################################################################

@ -8,6 +8,7 @@ import timeago
from pytz import common_timezones
from pytz import timezone
import re
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -19,7 +20,8 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
self.bot = bot
print('[ loaded ]')
self.bot = bot
#######################################################################################
#######################################################################################

@ -40,6 +40,7 @@ class BUS:
#######################################################################################
def __init__(self,bridged_network_roomchans=[]):
print('[ loaded ]')
self.bridged_network_roomchans=bridged_network_roomchans
###################################################################################

@ -20,6 +20,7 @@ class Plugin:
from tool_colors_plugin import COLORFORM as INFO
self.bot = bot
self.bot.info=INFO(self)
print('[ loaded ]')
###########################################################################################
###########################################################################################

@ -11,6 +11,7 @@
from irc3.plugins.command import command
from tool_guds_plugin import guds
import asyncio
from tool_colors_plugin import colorform as print
global dims
###########################################################################################
@ -295,6 +296,7 @@ class DIMS:
#######################################################################################
def __init__(self,net="",chanroom=""):
print('[ loaded ]')
if not net or not chanroom: return
net=net.lower()
dupe_flag=False

@ -5,7 +5,7 @@ from datetime import datetime
from datetime import timedelta
import timeago
from tool_colors_plugin import colorform as print
global guds # global unified data system 2 move instantiated data between processes/threads
global guds
###########################################################################################
###########################################################################################
@ -21,7 +21,7 @@ class GUDS:
#######################################################################################
def __init__(self):
pass
print('[ loaded ]')
#######################################################################################
#######################################################################################

@ -2,12 +2,19 @@
###########################################################################################
import sys,inspect
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
class FOG:
#######################################################################################
#######################################################################################
def __init__(self):
print('[ loaded ]')
#######################################################################################
###################################### - RGB // RETURNS RGB TERMINAL ESCAPE COLOR CODES

@ -82,6 +82,7 @@ if SERVICES_TWITTER:
###################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
###################################################################################

@ -99,6 +99,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
self.url = "https://saizer:7860"
self.models=[]

@ -5,6 +5,7 @@ from irc3.plugins.command import command
import irc3
import requests
import urllib.parse
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -16,6 +17,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
#######################################################################################

@ -12,6 +12,7 @@ import irc3
import re
import requests
from lxml.html import fromstring
from tool_colors_plugin import colorform as print
TOO_LONG = 2000
URL_REGEX = re.compile('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', re.IGNORECASE)
@ -43,6 +44,7 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
#######################################################################################

@ -3,6 +3,7 @@
from irc3.plugins.command import command
import irc3
from tool_colors_plugin import colorform as print
###########################################################################################
###########################################################################################
@ -14,7 +15,8 @@ class Plugin:
#######################################################################################
def __init__(self, bot):
self.bot = bot
print('[ loaded ]')
self.bot = bot
#######################################################################################
#######################################################################################

@ -67,6 +67,7 @@ if SERVICES_YOUTUBE:
###################################################################################
def __init__(self, bot):
print('[ loaded ]')
self.bot = bot
self.bot.channel_live = []