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

Possible logic issue #134

Open
computerologist opened this issue Dec 24, 2022 · 0 comments
Open

Possible logic issue #134

computerologist opened this issue Dec 24, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@computerologist
Copy link

computerologist commented Dec 24, 2022

Copied from Discord: This is probably user error, but I am not seeing the logic I would expect from this:

polling:
  - newSub

runs:
  - name: MyRegularRun
    itemIs:
      - source:
          - 'poll:newSub'
          - 'poll:newComm'
          - 'user'
    checks:           
      - name: nsfw_check
        kind: submission
        itemIs:            
          - over_18: true        

        actions:
          - kind: comment
            name: nsfw_comment
            content: >-
              commentary
            sticky: true
            distinguish: true
            lock: true
    
      - name: spoilertag_check
        kind: submission
        itemIs:            
          - spoiler: true        

        actions:
          - kind: comment
            name: spoilertag_remove
            content: >-
                commentary
            sticky: true
            distinguish: true
            lock: true  
            
          - kind: remove
            enable: true

If nsfw_check passes and is actioned, spoliertag_check does not happen.

I can achieve the results I want here by reversing the order, I know, but I don't understand why nsfw_check passing would prevent spoilertag_check from being executed. This will be important for other things I am trying to do. Seems like a bug, or not expected behaviour.

@FoxxMD FoxxMD added the bug Something isn't working label Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants