Trying to implement custom commands in Nextcloud Talk. I’ve followed the documentation spreed/docs/commands.md but i’m having some trouble.
Firstly I’m a bit unsure on how to formulate the command:
./occ talk:command:add calculator calculator "/path/to/calc.sh \"{ARGUMENTS_DOUBLEQUOTE_ESCAPED}\" {ROOM} {USER}" 1 3
I don’t really know what to put in {ARGUMENTS_DOUBLEQUOTE_ESCAPED}
, {ROOM}
and {USER}
When i run the command:
sudo -u abc php /config/www/nextcloud/occ talk:command:add test test "/data/myname/scripts/test.sh \"argument\" rdleoknj myname" 1 3
Where rdleoknj
is the room id. And myname
is my personal name (should this be the name of the bot responding) ?
I get the error:
sh: /data/myname/scripts/request.sh: Permission denied
The script is invalid
I’ve tried to give permissions for the file by: chown -R 777 /data/myname/scripts/request.sh
but u get the same error.
I’ve also tried placing the file somewhere else but it did not work either.
Can someone help me out? Thanks!