23 lines
1.1 KiB
PHP
23 lines
1.1 KiB
PHP
<?php
|
|
if (!isset($msg) || !isset($intents)) return;
|
|
|
|
if (preg_match('/\\b(enterprise.?complete|enterprise.?model|20.?depart|169.?kpi|all.?depts)\\b/iu', $msg)) {
|
|
$intents[] = ['id'=>'v73_enterprise_complete', 'cmd'=>'bash /var/www/html/api/v73-enterprise-check.sh'];
|
|
}
|
|
|
|
if (preg_match('/\\b(launchpad|fiori|s.?4.?hana|next.?gen.?ux|erp.?ui|cmd.?k|command.?k)\\b/iu', $msg)) {
|
|
$intents[] = ['id'=>'v73_erp_launchpad', 'cmd'=>'bash /var/www/html/api/v73-launchpad-check.sh'];
|
|
}
|
|
|
|
if (preg_match('/\\b(avatar|avatars?.?registry|agent.?avatars?|unif.?avatar)\\b/iu', $msg)) {
|
|
$intents[] = ['id'=>'v73_avatar_registry', 'cmd'=>'bash /var/www/html/api/v73-avatar-registry.sh'];
|
|
}
|
|
|
|
if (preg_match('/\\b(gap.?agents?|missing.?agents?|agility.?agents?|agents?.?manquants?|agents?.?a.?cre|agents.?construire)\\b/iu', $msg)) {
|
|
$intents[] = ['id'=>'v73_gap_agents', 'cmd'=>'bash /var/www/html/api/v73-gap-agents.sh'];
|
|
}
|
|
|
|
if (preg_match('/\b(persona.?verif|unif.?persona|avatar.?audit|persona.?unified|persona.?audit)\b/iu', $msg)) {
|
|
$intents[] = ['id'=>'v73_persona_verify', 'cmd'=>'bash /var/www/html/api/v73-persona-verify.sh'];
|
|
}
|