-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re_botcmd_fullmatch: Add re_botcmd_fullmatch #403
base: master
Are you sure you want to change the base?
Conversation
plugins/re_botcmd_fullmatch.py
Outdated
""" | ||
Triggers on plugin activation | ||
|
||
You should delete it if you're not using it to override any default behaviour |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E501 line too long (85 > 80 characters)
Origin: PycodestyleBear (E501), Section: all.autopep8
.
plugins/re_botcmd_fullmatch.py
Outdated
""" | ||
Triggers on plugin activation | ||
|
||
You should delete it if you're not using it to override any default behaviour |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is longer than allowed. (85 > 80)
Origin: LineLengthBear, Section: all.linelength
.
29d68e3
to
f9dc5d6
Compare
plugins/re_botcmd_fullmatch.py
Outdated
|
||
@botcmd | ||
def check_regexes(self, msg, args) | ||
if hasattr(self.bot_config, 'RE_BOTCMD_FULLMATCH_IGNORES'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E113 unexpected indentation
Origin: PycodestyleBear (E113), Section: all.autopep8
.
f9dc5d6
to
106d26e
Compare
plugins/re_botcmd_fullmatch.py
Outdated
|
||
@botcmd | ||
def check_regexes(self, msg, args) | ||
if hasattr(self.bot_config, 'RE_BOTCMD_FULLMATCH_IGNORES'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E113 unexpected indentation
Origin: PycodestyleBear (E113), Section: all.autopep8
.
106d26e
to
73ad68c
Compare
plugins/re_botcmd_fullmatch.py
Outdated
|
||
@botcmd | ||
def check_regexes(self, msg, args) | ||
if hasattr(self.bot_config, 'RE_BOTCMD_FULLMATCH_IGNORES'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E113 unexpected indentation
Origin: PycodestyleBear (E113), Section: all.autopep8
.
73ad68c
to
892462c
Compare
892462c
to
7d9a3b5
Compare
test coverage ;) |
from errbot import BotPlugin, botcmd | ||
|
||
|
||
class Re_botcmd_fullmatch(BotPlugin): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rather than a plugin, we should not use re_botcmd
, and instead use a better decorator which does this check and then defers to re_botcmd
Closes #402
Reviewers Checklist
botcmd
andre_botcmd
decorators.