boombox_plugin v1.3

This commit is contained in:
.[d]. 2022-07-25 12:17:53 -05:00
parent c728bf8877
commit d04105f51f

@ -10,7 +10,6 @@ from typing import Type
import random
import string
import os
import ipdb
######################################################################################################### THE ASCII LOGO TO BE USED
MOTD="""
_________ _________ _________ ___ ___ _________ _________ ____ ____
@ -88,10 +87,10 @@ class Plugin:
##################################################################################################### BOOMBOX MAIN 2
@command(permission='view')
def boombox(self, mask, target, args):
"""boombox - usage: ?boombox top, ?boombox last, ?boombox user, ?boombox site, ?boombox all
%%boombox <command>...
"""boombox
%%boombox
"""
command=' '.join(args['<command>']).lower()
command='all' #' '.join(args['<command>']).lower()
###########################################################################
commands=['top','last','user','site','all']
###########################################################################
@ -157,7 +156,6 @@ class Plugin:
self.bot.privmsg(target,msg)
bbs_data=self.bot.db.getlist('bbs_data')
try:
ipdb.set_trace()
count=0
for i,lastdb in enumerate(bbs_last):
nick=lastdb[0]
@ -400,7 +398,7 @@ class BOOMBOX_CONFIG:
##################################################################################################### BOOMBOX CONFIG TEXT ALIGNMENTS
def tailor(self,s,n):
if len(s)<=n:
result=s+" "*(n-len(s))
result=s+"."*(n-len(s))
return result
else:
return s[0:n]