Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add boilerplate AprilBot code #22

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Add boilerplate AprilBot code #22

wants to merge 5 commits into from

Conversation

slifty
Copy link
Owner

@slifty slifty commented Apr 2, 2024

This PR sets up the generic AprilBot code (for connecting to slack + listening to certain events).

slifty added 5 commits April 1, 2024 23:21
The linter tells me never to use console, all hail the linter (plus,
colors are nice).

This is always run in dev mode so it's OK to just use pino-pretty as
a transport, though when aprilbot IPOs we'll want to colorize.
This class should contain universally useful slackbot tooling that might
be used between different april fools.

A given year's specific april functionality will go into the extending
class, to make it easier to know what should / shouldn't be blown away
between years.
This boilerplate creates some basic AprilBot functionality for
connecting to slack and handling some basic types of interactions.

I had to create types for the event handlers for now, though I opened an
issue in the Slack sdk in the hopes they might add types [1] to their
events.

This also swaps out the class-methods-use-this lint rule for a smarter
variety, which is probably something that the upstream maintainer should
consider adding as well [2].

[1] slackapi/node-slack-sdk#1768
[2] iamturns/eslint-config-airbnb-typescript#344
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant