Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proof channel #685

Merged
merged 7 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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