An unexpected Telegram/Raspberry journey.
git clone https://github.com/thiagosanches/arisco.git
cd arisco
npm i
node main.js
There is a config.json file that should be configured like the following example:
{
"authorizationToken" : "YOUR_TOKEN_GOES_HERE",
"config" : {
"adminUsers" : [1,2,3],
"selfies" : ["assets/image01.jpeg", "assets/image02.jpeg"],
"customCommands" : [
{
"command1" : ["my command 1"],
"executeWithSpawn" : true
},
{
"testing" : "echo 'not executing with spawn'"
}
],
"deniedCommands" : ["rm", "rmdir", "shutdown", "halt", "sudo", "mv", "touch", "chmod", "wget", "curl", "echo"]
}
}