mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
test
This commit is contained in:
parent
c8be560387
commit
4a56a968cb
@ -41,11 +41,15 @@ class BotServer():
|
|||||||
|
|
||||||
# check for value associated with the parameter
|
# check for value associated with the parameter
|
||||||
if '=' in param:
|
if '=' in param:
|
||||||
paramname = str(param).split('=')[0]
|
key, raw_value = param.split('=')
|
||||||
if param in list(self.isupport.keys()):
|
|
||||||
if param.startswith("TARGMAX"):
|
# Only gather parameters that we want
|
||||||
param = str(param).split('=')[1]
|
if key in list(self.isupport.keys()):
|
||||||
settings = str(param).split(',')
|
|
||||||
|
if key.upper() == "TARGMAX":
|
||||||
|
|
||||||
|
# split the settings by comma seperation
|
||||||
|
settings = str(raw_value).split(',')
|
||||||
for setting in settings:
|
for setting in settings:
|
||||||
settingname = str(setting).split(':')[0]
|
settingname = str(setting).split(':')[0]
|
||||||
if settingname.upper() in ['NOTICE', 'PRIVMSG']:
|
if settingname.upper() in ['NOTICE', 'PRIVMSG']:
|
||||||
|
|||||||
@ -24,6 +24,10 @@ def parse_event_005(bot, trigger):
|
|||||||
parameters = trigger.args[1:-1]
|
parameters = trigger.args[1:-1]
|
||||||
for param in parameters:
|
for param in parameters:
|
||||||
if '=' in param:
|
if '=' in param:
|
||||||
paramname = str(param).split('=')[0]
|
key, raw_value = param.split('=')
|
||||||
paramvalue = str(param).split('=')[1]
|
if ',' not in raw_value:
|
||||||
bot.osd([str(paramname), "=", str(paramvalue)], "#deathbybandaid")
|
settings = str(raw_value).split(',')
|
||||||
|
for setting in settings:
|
||||||
|
bot.osd([str(key), "includes", str(setting)], "#deathbybandaid")
|
||||||
|
else:
|
||||||
|
bot.osd([str(key), "=", str(raw_value)], "#deathbybandaid")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user