Advertisement
IssyPutchy

Bash script for Tasker Chatbot (Termux side)

Jun 4th, 2019
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. #!/data/data/com.termux/files/usr/bin/sh
  2.  
  3. if python /data/data/com.termux/files/home/bots/markovbot/chatbot.py $1 $2 $3 > /sdcard/Markov/reply.txt; then
  4.  am broadcast --user 0 -a markov.chatbot -e response "OK" > /dev/null
  5.   else
  6.  am broadcast --user 0 -a markov.chatbot -e response "NO" > /dev/null
  7. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement