-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ft: adds regional chapters button (#117)
refactor: moves channel ids and constants into config Signed-off-by: Precious Abubakar <[email protected]>
- Loading branch information
1 parent
383898b
commit 5772e03
Showing
11 changed files
with
239 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
const constantData = require('./constants/constants.json'); | ||
const config = require("../../config"); | ||
|
||
async function outreachy(say) { | ||
let responseString = constantData.Outreachy.status ? constantData.Outreachy.activeStatement : constantData.Outreachy.notActiveStatement; | ||
return await say( | ||
responseString | ||
); | ||
const { status, activeStatement, notActiveStatement } = config.outreachy; | ||
const response = status ? activeStatement : notActiveStatement; | ||
return await say(response); | ||
} | ||
|
||
async function gsoc(say) { | ||
let responseString = constantData.GSoC.status ? constantData.GSoC.activeStatement : constantData.GSoC.notActiveStatement; | ||
return await say( | ||
responseString | ||
); | ||
async function googleSummerOfCode(say) { | ||
const { status, activeStatement, notActiveStatement } = config.googleSummerOfCode; | ||
let response = status ? activeStatement : notActiveStatement; | ||
return await say(response); | ||
} | ||
|
||
async function gsod(say) { | ||
let responseString = constantData.GSoD.status ? constantData.GSoD.activeStatement : constantData.GSoD.notActiveStatement; | ||
return await say( | ||
responseString | ||
); | ||
async function googleSeasonOfDocs(say) { | ||
const { status, activeStatement, notActiveStatement } = config.googleSeasonOfDocs; | ||
let response = status ? activeStatement : notActiveStatement; | ||
return await say(response); | ||
} | ||
|
||
module.exports = { | ||
outreachy, | ||
gsoc, | ||
gsod, | ||
googleSummerOfCode, | ||
googleSeasonOfDocs, | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.