adjustments
This commit is contained in:
parent
89ceab6b4d
commit
9e284572bf
@ -39,7 +39,7 @@ class Plugin(object):
|
|||||||
greet = random.choice(list(open(greet_db)))
|
greet = random.choice(list(open(greet_db)))
|
||||||
return greet
|
return greet
|
||||||
|
|
||||||
def __symbol(self:
|
def __symbol(self):
|
||||||
symbol_db = '%s/symbol.db' % dir_path
|
symbol_db = '%s/symbol.db' % dir_path
|
||||||
symbol = random.choice(list(open(symbol_db)))
|
symbol = random.choice(list(open(symbol_db)))
|
||||||
return symbol
|
return symbol
|
||||||
@ -65,8 +65,9 @@ class Plugin(object):
|
|||||||
BOT=self.context
|
BOT=self.context
|
||||||
bots='___'.join(BOT.config['botnet']).strip().split('___')
|
bots='___'.join(BOT.config['botnet']).strip().split('___')
|
||||||
for _ in bots:
|
for _ in bots:
|
||||||
if BOT.config[_]['nick'] == BOT.nick:
|
if not BOT.config[_]['nick'] == 'bot':
|
||||||
BID= _
|
if BOT.config[_]['nick'] == BOT.nick:
|
||||||
|
BID= _
|
||||||
MSG='{}: {} {} < {}'.format(NICK,SYMBOL,GREET,BID)
|
MSG='{}: {} {} < {}'.format(NICK,SYMBOL,GREET,BID)
|
||||||
CHN='#sh0rtbus'
|
CHN='#sh0rtbus'
|
||||||
MSG = self._Plugin__emoj(MSG)
|
MSG = self._Plugin__emoj(MSG)
|
||||||
|
Loading…
Reference in New Issue
Block a user