diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..54ce354 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,31 @@ +bi# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test diff --git a/app.json b/app.json index c85306b..1c8be77 100644 --- a/app.json +++ b/app.json @@ -13,13 +13,13 @@ "baileys", "baileys-md", "md-bot" - ], + ], "website": "https://github.com/Fortunatusmokaya/DREADED-GPT-AI#readme", "repository": "https://github.com/Fortunatusmokaya/DREADED-GPT-AI.git", "logo": "https://telegra.ph/file/d6dab955fbaa42fce2280.jpg", "success_url": "/", "env": { - "PREFIX": + "PREFIX"* { "description":"choose your prefix for dreaded. To prevent errors and confusion you must set a prefix", "value": ".", @@ -108,7 +108,7 @@ "MODE": { "description": "Type PRIVATE if you don't want other people to use the bot or PUBLIC if you want everyone to access.", - "required": false + "required": PRIVATE }, "STICKER_AUTHOR": { @@ -129,7 +129,7 @@ "WA_PRESENCE": { "description": "This is your WhatsApp Presence Status: Here's how to set it up: Type *typing* if you want bot to show typing..., Type *recording* if you want bot to show recording..., Type *online* if you want bot to be always online, Leave this field blank if you want bot to show your actual presence.", "value": "", - "required": false + "required":* typing * }, @@ -139,7 +139,7 @@ }, "AUTOVIEW_STATUS": { "description": "Type TRUE if you want bot to automatically read all status update", - "required": false + "required": TRUE }, "AUTOBIO": { "description": "Type TRUE if you want bot to show autoupdate it's bio constantly", @@ -151,8 +151,7 @@ }, "SESSION": { "description": "Paste the session id that you received in whatsapp after linking the bot. It's used for authentication.", - "required": true - }, + "required {"noiseKey":{"private":{"type":"Buffer","data":"uBUF2Wl2Itp8gNDiKY+/l2BWU4JeiNz+iVdmVXLQuXA="},"public":{"type":"Buffer","data":"YCJiAsM7l+SJE7OBly2HVjI5+R7qtn+hlQXsaHq40kc="}},"pairingEphemeralKeyPair":{"private":{"type":"Buffer","data":"CChMKNQKingB7jzp0C/71lLy1lQezcP/xIwL99gynUA="},"public":{"type":"Buffer","data":"GTclj6GsXjXX1TAU4fOwnovaS17eFPyxflGIRQHCWCA="}},"signedIdentityKey":{"private":{"type":"Buffer","data":"aHQPO9t7cp5TVA8aRoXiLuGBmUUSVsYWluf6AAzk4lc="},"public":{"type":"Buffer","data":"DI6FFIK6JWL7a1ue1cBhzGeYP1/9NzuxSjIgNEkZWhs="}},"signedPreKey":{"keyPair":{"private":{"type":"Buffer","data":"kKJWIK8+sjapUEWzXg2vCpc2au02ZWU3gzFYFmokWlM="},"public":{"type":"Buffer","data":"7BqhPvQ6ZcjB8HqRW9KpaXVy7U1zRJYDhvp/FaJMsg8="}},"signature":{"type":"Buffer","data":"V4qwRgdBPw22pd4Uj9mhAQyTne9vEsqcGD/7iIFSofEuC0JofsFBTn3PalBakbjhwqBu4VOOmr4d/BS+2V9gDA=="},"keyId":1},"registrationId":210,"advSecretKey":"Mka4kadfwHHcVSUtpOYPKuHCwNPtPGScEljMBsGrU98=","processedHistoryMessages":[],"nextPreKeyId":31,"firstUnuploadedPreKeyId":31,"accountSyncCounter":0,"accountSettings":{"unarchiveChats":false},"deviceId":"v-Kl0tBBShWa1p1DGC_I0A","phoneId":"2c3b72bf-7f13-4e30-baa4-b5c3305479f7","identityId":{"type":"Buffer","data":"vO04W6NzyLKML7J39TqKjDr2UOQ="},"registered":true,"backupToken":{"type":"Buffer","data":"9vgRC2qiaK83nGtpVKPTtNKyVKc="},"registration":{},"pairingCode":"PY1M2BVY","me":{"id":"254798577899:31@s.whatsapp.net"},"account":{"details":"CN6626gGEMTSg7QGGAggACgA","accountSignatureKey":"bdMqUYAlcyBBS6Ugl/+KV4KyuSsQ4+eKEXe1WMqeAhA=","accountSignature":"nz+BJ8PFVUp/jRt6wiI8sGI6q6qiotjSJkT5ZuFXLjUwbqld0k/ak7iFjIigVGivrfxz6fVob7KshDCGfM1HDA==","deviceSignature":"0pdjqH19XuwxRxtG5G3xv+rP657iX3a9gBTAEMY39raVOVmHabL3K1hUOHoRlugg4q+uctxm2TvPMkpsfkxsDA=="},"signalIdentities":[{"identifier":{"name":"254798577899:31@s.whatsapp.net","deviceId":0},"identifierKey":{"type":"Buffer","data":"BW3TKlGAJXMgQUulIJf/ileCsrkrEOPnihF3tVjKngIQ"}}],"platform":"android","lastAccountSyncTimestamp":1719724360,"myAppStateKeyId":"AAAAAPQy"} "COUNTRY_CODE": { "description": "Enter your country code without +. Example: 254 for Kenya. This will allow bot to detect and remove foreigners if commanded",