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

Improvments #8

Open
wants to merge 19 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
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ RUN groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \
COPY package.json package-lock.json ./


RUN npm --global config set user pptruser \
&& npm cache clean --force
RUN npm cache clean --force

RUN npm i puppeteer -g
RUN npm install
Expand Down
14 changes: 9 additions & 5 deletions accounts-config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@
[
{
"id":1,
"authToken":"",
"chatwootAPIUrl":"",
"chatwootApiKey":"",
"authToken":"youSecurityToken", //to secure the communication between chatwoot and whatsapp
"chatwootAPIUrl":"https://yourdomain.com/api/v1",
"chatwootApiKey":"selfexplained",
"whatsappWebGroupParticipantsCustomField":"",
"whatsappWebInboxes":[
{
"id":10,
"prefixAgentNameOnMessages":true,
"slackToken":null,
"remotePrivateMessagePrefix":true
"remotePrivateMessagePrefix":"REMOTE: ",
"ignoreGroupMessages": true,
"messageTemplate": "*{0}*:\n{1}" // Only works if prefixAgentNameOnMessages true - {0} is sender name, {1} is message content
},
{
"id":12,
"prefixAgentNameOnMessages":true,
"slackToken":null,
"remotePrivateMessagePrefix":"REMOTE: "
"remotePrivateMessagePrefix":"REMOTE: ",
"ignoreGroupMessages": true,
"messageTemplate": "*{0}*:\n{1}"
}
]
}
Expand Down
Loading