kalkun-sms/Kalkun

Kalkun on receive from number X, execute bash script ?

Closed this issue · 4 comments

Hello,

Is there a way to call bash script if the message is received from number +XXXXXXXX for example and with content "do action 1" ? :)

There are 2 ways

  1. You create a new plugin and configure per number wise what to trigger and what to do
  2. You can modify your run-on-recieve script to do the additional functionalities after checking the numbers and others.

Hello @kingster , do you maybe have some example of script/plugin?

You can find the current supported plugins here : https://github.com/back2arie/Kalkun/tree/master/application/plugins

Regarding script, the current script just triggers kalkun's message-received trigger : https://github.com/back2arie/Kalkun/blob/master/scripts/daemon.sh

You can add your custom login after that, or add a new plugin, which would be automatically called by kalkun when a new message arrives.

Thank you :) i'll try to make it .