chaoss / chaoss-slack-bot

This holds the code to the CHAOSS slack bot for newcomers to the project
MIT License
15 stars 40 forks source link

[Enhancement]: Turn off Outreachy Prompt #59

Closed misspee007 closed 1 year ago

misspee007 commented 1 year ago

Contact Details

preciousdanabubakar@gmail.com

The Problem

CHAOSS is not participating in this cohort of Outreachy, so we would like to turn of the response to the outreachy prompt.

How to Fix It

There's a mechanism set up to track our current outreachy participation status, in /components/actions/constants/constants.json. One way to solve this would be to observe how it is implemented in /components/actions/mentorshipResponses.js and do the same in /components/outreachyPrompt.js.

For example,

const outreachyStatus = require("./actions/constants/constants.json").Outreachy.status;

async function outreachyMessage(message, say, logger) {
    try {
        if (!outreachyStatus) {
            return;
        } else {
            return await say({
                .................
            });
        }
    } catch (error) {.........}

Additional Context

No response

Specific File Path(s) on the Repo to be Modified/Refered to

No response

Code of Conduct

parthn2 commented 1 year ago

Hi, can I work on this?

misspee007 commented 1 year ago

Yes you can @parthn2