Skip to content

Commit

Permalink
Merge pull request #685 from ArtBlocks/ts-node
Browse files Browse the repository at this point in the history
proof channel
  • Loading branch information
grantoesterling authored Aug 26, 2024
2 parents 3a5dd51 + eaa9cd6 commit c47f0cd
Show file tree
Hide file tree
Showing 6 changed files with 13,037 additions and 9,326 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ jobs:
build-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable
- name: Set env vars
run: |
echo "PRODUCTION_MODE=false" >> $GITHUB_ENV
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "A bot to provide info for artblocks",
"main": "index.js",
"packageManager": "[email protected]",
"scripts": {
"start": "ts-node src/index.ts",
"dev": "yarn start",
Expand All @@ -21,7 +22,7 @@
"eth"
],
"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
},
"author": "duggan roberts",
"license": "MIT",
Expand Down
3 changes: 3 additions & 0 deletions src/ProjectConfig/channels.json
Original file line number Diff line number Diff line change
Expand Up @@ -1034,5 +1034,8 @@
"291": ["apex", "apx"]
}
}
},
"1238135049874833438": {
"name": "proof-all"
}
}
7 changes: 7 additions & 0 deletions src/Utils/activityTriager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const FLUTTER_SALES = projectConfig.chIdByName['flutter-sales']
const TENDER_SALES = projectConfig.chIdByName['tender-sales']
const HODLERS_SALES = projectConfig.chIdByName['hodlers-sales']
const HODLERS_LISTINGS = projectConfig.chIdByName['hodlers-listings']
const PROOF = projectConfig.chIdByName['proof-all']

// Addresses which should be omitted entirely from event feeds.
export const BAN_ADDRESSES = new Set([
Expand Down Expand Up @@ -200,6 +201,12 @@ export function sendEmbedToSaleChannels(
) {
sendEmbedToChannel(bot, embed, TENDER_SALES)
}
if (
artBlocksData.platform.toLowerCase().includes('proof') ||
artBlocksData.platform.includes('Art Blocks')
) {
sendEmbedToChannel(bot, embed, PROOF)
}
} catch (e) {
console.warn(e)
}
Expand Down
Loading

0 comments on commit c47f0cd

Please sign in to comment.