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

Refs/heads/main #133

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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: [18.x, 20.x, 22.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@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
6 changes: 3 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@
},
"SESSION_ID": {
"description": "Place your unique FLASH MD session ID here. This is required for the bot to function.",
"value": "",
"value": "FLASH-MD-WA-BOT;;;=>eyJub2lzZUtleSI6eyJwcml2YXRlIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiS1BSK1JzbWI4NlVsaU5vL0c4amd5RWh4TGxNZXF4aVdBOVMzVkFIbFpsOD0ifSwicHVibGljIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiL2wwY3E4UCtQcWJPa1V0WC9FSDB4TXRpUCtRbEthbnFKS0p5cFI5NlpuZz0ifX0sInBhaXJpbmdFcGhlbWVyYWxLZXlQYWlyIj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YWxJZGVudGl0aWVzIjpbeyJpZGVudGlmaWVyIjp7Im5hbWUiOiIyMzI3NDQ0ODEzMDozM0BzLndoYXRzYXBwLm5ldCIsImRldmljZUlkIjowfSwiaWRlbnRpZmllcktleSI6eyJ0eXBlIjoiQnVmZmVyIiwiZGF0YSI6IkJUbDQveWc3Qnptei9ObzRBeUgydzVSMEtoZEZhanlYYkVFZkpEcnN4aUVBIn19XSwicGxhdGZvcm0iOiJzbWJhIiwibGFzdEFjY291bnRTeW5jVGltZXN0YW1wIjoxNzMyOTEyNzAxfQ==",
"required": true
},
"OWNER_NAME": {
"description": "Enter the name of the bot owner. This name will be displayed when required.",
"value": "France King",
"value": "Mr Take Tee",
"required": false
},
"OWNER_NUMBER": {
"description": "Enter your phone number without the '+' sign. Use your country code (e.g., '254' for Kenya).",
"value": "254751284190",
"value": "23274448130",
"required": false
},
"WARN_COUNT": {
Expand Down
8 changes: 4 additions & 4 deletions set.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const databasePath = path.join(__dirname, './database.db');
const DATABASE_URL = process.env.DATABASE_URL === undefined ? databasePath : process.env.DATABASE_URL;

module.exports = {
session: process.env.SESSION_ID || 'FLASH-MD-WA-BOT;;;=>',
PREFIXES: (process.env.PREFIX || '').split(',').map(prefix => prefix.trim()).filter(Boolean),
OWNER_NAME: process.env.OWNER_NAME || "France King",
OWNER_NUMBER: process.env.OWNER_NUMBER || "254105915061",
session: process.env.SESSION_ID || 'FLASH-MD-WA-BOT;;;=>eyJub2lzZUtleSI6eyJwcml2YXRlIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiS1BSK1JzbWI4NlVsaU5vL0c4amd5RWh4TGxNZXF4aVdBOVMzVkFIbFpsOD0ifSwicHVibGljIjp7InR5cGUiOiJCdWZmZXIiLCJkYXRhIjoiL2wwY3E4UCtQcWJPa1V0WC9FSDB4TXRpUCtRbEthbnFKS0p5cFI5NlpuZz0ifX0sInBhaXJpbmdFcGhlbWVyY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9PSJ9LCJzaWduYWxJZGVudGl0aWVzIjpbeyJpZGVudGlmaWVyIjp7Im5hbWUiOiIyMzI3NDQ0ODEzMDozM0BzLndoYXRzYXBwLm5ldCIsImRldmljZUlkIjowfSwiaWRlbnRpZmllcktleSI6eyJ0eXBlIjoiQnVmZmVyIiwiZGF0YSI6IkJUbDQveWc3Qnptei9ObzRBeUgydzVSMEtoZEZhanlYYkVFZkpEcnN4aUVBIn19XSwicGxhdGZvcm0iOiJzbWJhIiwibGFzdEFjY291bnRTeW5jVGltZXN0YW1wIjoxNzMyOTEyNzAxfQ==',
PREFIXES: (process.env.PREFIX || '').split('.').map(prefix => prefix.trim()).filter(Boolean),
OWNER_NAME: process.env.OWNER_NAME || "Mr Take Tee",
OWNER_NUMBER: process.env.OWNER_NUMBER || "23274448130",
AUTO_READ_STATUS: process.env.AUTO_VIEW_STATUS || "on",
AUTOREAD_MESSAGES: process.env.AUTO_READ_MESSAGES || "on",
CHATBOT: process.env.CHAT_BOT || "off",
Expand Down