Skip to content
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

Prevent Yetibot from triggering itself #40

Merged
merged 1 commit into from May 29, 2018

Conversation

devth
Copy link
Member

@devth devth commented May 29, 2018

@devth devth self-assigned this May 29, 2018
;; process those commands:
;; - adding them individually to history and
;; - posting them to chat
(when (and cmd? (not (:yetibot? user)))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the primary fix on the cmd side, checking for (:yetibot? user)

(color-str :blue chat-source)
user event-type body)
(when (and
(not (:yetibot? user))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix on the observer side, checking for (:yetibot? user)

@devth devth merged commit 1b0895b into master May 29, 2018
@devth devth deleted the yetibot-should-not-be-self-aware branch May 29, 2018 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant