Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Check if user blocks the bot (but in TS) #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tech6hutch
Copy link

It works by finding a message by them and trying to react to it. It returns true, false, or undefined. undefined means that it couldn't figure out if the user blocked or not.

TS version of dirigeants#204

@tech6hutch
Copy link
Author

The README.md file caused linting errors? I didn't touch it. 🤔

README.md: 5: MD026/no-trailing-punctuation Trailing punctuation in heading [Punctuation: '?']
README.md: 7: MD013/line-length Line length [Expected: 80; Actual: 152]
README.md: 11: MD013/line-length Line length [Expected: 80; Actual: 94]
README.md: 13: MD013/line-length Line length [Expected: 80; Actual: 532]
README.md: 15: MD013/line-length Line length [Expected: 80; Actual: 200]
README.md: 16: MD013/line-length Line length [Expected: 80; Actual: 152]
README.md: 17: MD013/line-length Line length [Expected: 80; Actual: 241]
README.md: 54: MD013/line-length Line length [Expected: 80; Actual: 92]

@tech6hutch
Copy link
Author

I haven't linted userBlocksMe.ts locally, btw, with KCP's config (npm is still installing deps), but it passes my (strict) config in my bot.

@1Conan
Copy link
Member

1Conan commented Jun 1, 2019

#2 for the markdown lint errors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants