boombox_plugin v1.3
This commit is contained in:
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]
|
||||
|
Loading…
Reference in New Issue
Block a user