Spaces:
Paused
Paused
Download src/event/call-handler.js from arabdullah/ethix-md-user-4: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/spaces/arabdullah/ethix-md-user-4/resolve/main/src/event/call-handler.js
- Command line
-
hf download hf://spaces/arabdullah/ethix-md-user-4/src/event/call-handler.js
-
curl -L -o call-handler.js https://huggingface.co/spaces/arabdullah/ethix-md-user-4/resolve/main/src/event/call-handler.js
465 Bytes
| import config from '../../config.cjs'; | |
| const Callupdate = async (json, sock) => { | |
| for (const id of json) { | |
| if (id.status === 'offer' && config.REJECT_CALL ) { | |
| let msg = await sock.sendMessage(id.from, { | |
| text: `*_📞 Auto Reject Call Mode Activated_* \n*_📵 No Calls Allowed_*`, | |
| mentions: [id.from], | |
| }); | |
| await sock.rejectCall(id.id, id.from); | |
| } | |
| } | |
| }; | |
| export default Callupdate; | |