With rPWBCc2a4f9e the bot option handler was improved.
old behaviour
each bot option must be accessed by self.getOption() method e.g. self.getOption('always')
new behaviour
Option can be accessed as attibute or via keyword, for example:
- self.opt.always
- self.opt['always']
By the way self.opt gives a dict of all valid Options. This can be easily used for format string for example:
'Always option is {always}'.format_map(self.opt) or 'Always option is {always}'.format(**self.opt)
scripts should be rewritten by using the new option handler to get the full advantage of
- shorter and intuitive access to bot options
- bot option as attribute
- bot option as keyword item
- bot options Access as dict
What to do?
- replace getOption() method by that way described above
- replace availableOptions by available_options
- replace setOptions by set_options