diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 0d7f902e..00000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: DePloY -on: - push: - branches: - - master - paths: - - "**.ts" - - "**.json" -jobs: - UpdatePresences: - runs-on: ubuntu-18.04 - if: github.repository_owner == 'PreMiD' - steps: - - name: Checkout Project - uses: actions/checkout@v2 - - name: Use Node.js 12 - uses: actions/setup-node@v1 - with: - node-version: 12 - - name: Restore CI Cache - uses: actions/cache@v1 - with: - path: node_modules - key: ${{ runner.os }}-12-${{ hashFiles('**/yarn.lock') }} - - name: Install Deps - run: yarn - - name: Compile Script - run: yarn pu:compile - - name: Update Presences - env: - MONGO_IP: ${{ secrets.MONGO_IP }} - MONGO_USERNAME: ${{ secrets.MONGO_USERNAME }} - MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }} - GHTOKEN: ${{ secrets.GHTOKEN }} - run: yarn pu diff --git a/websites/0-9/4gamers/presence.ts b/websites/0-9/4gamers/presence.ts index b5023a4d..8ce916e3 100644 --- a/websites/0-9/4gamers/presence.ts +++ b/websites/0-9/4gamers/presence.ts @@ -13,7 +13,7 @@ presence.on("UpdateData", async () => { if (document.location.hostname == "www.4gamers.com.tw") { if (document.location.pathname == "/") { presenceData.startTimestamp = browsingStamp; - presenceData.details = "Viewing home page"; + presenceData.details = "Viewing home page!"; } else if (document.location.pathname.includes("/new")) { title = document.getElementsByClassName("news-header-title")[0].innerHTML; var category = document.getElementsByClassName("news-header-category ")[0]