This commit is contained in:
.[d]. 2022-10-05 01:11:50 +00:00
parent 2a4abdca76
commit 7c1b27261a

View File

@ -34,9 +34,11 @@ class BOTIO:
self.ircbot=config_ircbot()
self._bio=guds.memory('__main__.bio')
self.net_irc=[]
self.net_matrix=[]
self.net_discord=[]
self.net_discord_initialized=False
if SERVICES_MATRIX:
self.net_matrix=[]
if SERVICES_DISCORD:
self.net_discord=[]
self.net_discord_initialized=False
print(f'<<< ________botio_class >>> [ ircbot configured ]')
#######################################################################################
def __boot__irc(self):
@ -45,15 +47,18 @@ class BOTIO:
#######################################################################################
def __boot__matrix(self):
print('<<< system_status__info >>> [ booting connection ] - matrix')
self=start_matrixbot(self)
if SERVICES_MATRIX:
self=start_matrixbot(self)
#######################################################################################
def __boot__discord(self):
print('<<< system_status__info >>> [ booting connection ] - discord')
self=start_discordbot(self)
if SERVICES_DISCORD:
self=start_discordbot(self)
#######################################################################################
def __boot__telegram(self):
print('<<< system_status__info >>> [ booting connection ] - telegram')
self=start_telegrambot(self)
if SERVICES_TELEGRAM:
self=start_telegrambot(self)
#######################################################################################
def __boot__empty(self):
print('<<< system_status__info >>> [ booting connection ] - empty')
@ -66,23 +71,26 @@ class BOTIO:
t.start()
print(f'<<< system_status__info >>> [ thread started ] - irc')
elif index==1:
t=threading.Thread(target=self.__boot__matrix)
print(f'<<< system_status__info >>> [ thread setup ] - matrix')
t.start()
t.join()
print(f'<<< system_status__info >>> [ thread started ] - matrix')
if SERVICES_MATRIX:
t=threading.Thread(target=self.__boot__matrix)
print(f'<<< system_status__info >>> [ thread setup ] - matrix')
t.start()
t.join()
print(f'<<< system_status__info >>> [ thread started ] - matrix')
elif index==2:
t=threading.Thread(target=self.__boot__discord)
print(f'<<< system_status__info >>> [ thread setup ] - discord')
t.start()
t.join()
print(f'<<< system_status__info >>> [ thread started ] - discord')
if SERVICES_DISCORD:
t=threading.Thread(target=self.__boot__discord)
print(f'<<< system_status__info >>> [ thread setup ] - discord')
t.start()
t.join()
print(f'<<< system_status__info >>> [ thread started ] - discord')
elif index==3:
t=threading.Thread(target=self.__boot__telegram)
print(f'<<< system_status__info >>> [ thread setup ] - telegram')
t.start()
t.join()
print(f'<<< system_status__info >>> [ thread started ] - telegram')
if SERVICES_MATRIX:
t=threading.Thread(target=self.__boot__telegram)
print(f'<<< system_status__info >>> [ thread setup ] - telegram')
t.start()
t.join()
print(f'<<< system_status__info >>> [ thread started ] - telegram')
elif index==4:
t=threading.Thread(target=self.__boot__empty)
print(f'<<< system_status__info >>> [ thread setup ] - empty')