Code Monkey home page Code Monkey logo

guys-bot's Introduction

Simple Guys Bot

Guy - the bot

If you're as concious as I am about the use of language in your Slack workspace, this will interest you.

With the existing guys-bot-for-slack needing some updates to work with the latest flavour of Slack API, I chose to recreate it using the most basic implementation of the Slack SDKs.

Screenshot of the bot responding to the message

The bot responds with an ephemeral message, not seen by anyone but the user who originally messaged.

It requires the bot be invited into the channels you want it to listen on, so it can be implemented by individuals, or teams, as channels require, if that is what you want.

This guide has steps on the Slack API control panel. Please read Who's a Good Bot? A Slack Bot For Inclusive Language, the supporting blog post for this application, on how to set up your Slack App to retrieve your SLACK_TOKEN and SLACK_SIGNING_SECRET.

Installation

Get the repo.

git clone https://github.com/lukeocodes/guys-bot.git
cd guys-bot

Install it.

npm install

Running it in Development Mode

Configuration

cp .env.example .env

Update .env following the .env.example file supplied with the project.

Run Dev

npm run dev

Deploying it to Production

To Start It

npm start

Click to Deploy Options

More information on setting up your Slack App can be found in Who's a Good Bot? A Slack Bot For Inclusive Language, an article supporting this repository with setup steps.

Deploy to Heroku

Deploy to Heroku

Once deployed, update your Heroku environment variables with the SLACK_TOKEN and SLACK_SIGNING_SECRET from your Slack App. Once configured head over to your Slack app's Event Subscription page (https://api.slack.com/apps/YOUR_APP_ID/event-subscriptions?) and update your request URL to be https://<your-heroku-app>.herokuapp.com/slack/events.

Remix on Glitch

Remix on Glitch

Once remixed, update your .env file with the SLACK_TOKEN and SLACK_SIGNING_SECRET from your Slack App. Once configured head over to your Slack app's Event Subscription page (https://api.slack.com/apps/YOUR_APP_ID/event-subscriptions?) and update your request URL to be https://<your-glitch-project>.glitch.me/slack/events.

Logo

Guy - whos a good bot - is saved as SVG and is subject to the same license for the project. Enjoy :)

guys-bot's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar lukeocodes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

guys-bot's Issues

Discord Bot

Hey,

I would like to add discord.js implementation for this bot as well.

Let me know if you are comfortable with it.

Is this still active?

I was thinking of adding instructions for running this on Cloud Run if this project is still active.

I like the private reply functionality rather than a public reply message.

Why does this project exist?

Words have different meanings depending on context.

gendered: "The guys walked into a bar."
gender-neutral: "Hey guys, I walked into a bar."

I've said and heard the phrase "hey guys" perhaps thousands of times in my life. I've literally never encountered anyone being confused about the speaker's intent (maybe someone learning English?).

Given that "hey guys" has a clear gender-neutral meaning that's understood by almost every English speaker, I have to ask respectfully: why does this project exist? What problem are you trying to solve? Where are the people who are being harmed by "hey guys"?

This project has the best intentions, but I think shaming people for saying something as banal, inoffensive, and neutral as "hey guys" is going to cause more harm than good. Even if the nag is only visible to the person who typed "hey guys", that can still provoke feelings of shame. Since this is likely being used at companies, people might fear that they'll face repercussions from their employers. Why put people through that when the gender-neutral intent is clear?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.