Skip to content

Commit

Permalink
Merge pull request #48 from meetagrawal09/dev-mentorship
Browse files Browse the repository at this point in the history
Fixes #42
  • Loading branch information
misspee007 authored Nov 17, 2022
2 parents 032f5e7 + d05ff88 commit ac90237
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
17 changes: 17 additions & 0 deletions components/actions/constants/constants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"Outreachy":{
"status":false,
"activeStatement":"You clicked *Outreachy*\nThe Outreachy Application period is currently going on. Reach out to https://www.outreachy.org/ for more details.",
"notActiveStatement":"You clicked *Outreachy*\nThe Outreachy Application period has ended for our participation in this program this year. You can still join the CHAOSS community in any of the ways found on our Participate page here: https://chaoss.community/participate."
},
"GSoC":{
"status":false,
"activeStatement":"You clicked *Google Summer of Code*\nThe Google Summer of Code Application period is currently going on. Reach out to https://summerofcode.withgoogle.com/ for more details.",
"notActiveStatement":"You clicked *Google Summer of Code*\nThe Google Summer of Code Application period has ended for our participation in this program this year. You can still join the CHAOSS community in any of the ways found on our Participate page here: https://chaoss.community/participate."
},
"GSoD":{
"status":false,
"activeStatement":"You clicked *Google Season of Docs*\nWelcome! If you haven’t yet, please join the <#C03C239HN1F> Slack channel and take note of the pinned item at the top of the channel for more information about next steps.",
"notActiveStatement":"You clicked *Google Season of Docs*\nThe Google Season of Docs Application period has ended for our participation in this program this year. You can still join the CHAOSS community in any of the ways found on our Participate page here: https://chaoss.community/participate."
}
}
14 changes: 8 additions & 6 deletions components/actions/mentorshipResponses.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
const constantData = require('./constants/constants.json');

async function outreachy(say) {
let responseString = constantData.Outreachy.status ? constantData.Outreachy.activeStatement : constantData.Outreachy.notActiveStatement;
return await say(
`You clicked *Outreachy*\n
The Outreachy Application period has ended for our participation in this program this year. You can still join the CHAOSS community in any of the ways found on our Participate page here: https://chaoss.community/participate.`
responseString
);
}

async function gsoc(say) {
let responseString = constantData.GSoC.status ? constantData.GSoC.activeStatement : constantData.GSoC.notActiveStatement;
return await say(
`You clicked *Google Summer of Code*\n
The Google Summer of Code Application period has ended for our participation in this program this year. You can still join the CHAOSS community in any of the ways found on our Participate page here: https://chaoss.community/participate.`
responseString
);
}

async function gsod(say) {
let responseString = constantData.GSoD.status ? constantData.GSoD.activeStatement : constantData.GSoD.notActiveStatement;
return await say(
`You clicked *Google Season of Docs*\n
Welcome! If you haven’t yet, please join the <#C03C239HN1F> Slack channel and take note of the pinned item at the top of the channel for more information about next steps.`
responseString
);
}

Expand Down

0 comments on commit ac90237

Please sign in to comment.