projects
/
GrooveNetBot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14224e2
)
Pass chat to respond to as param
author
Cameron Ball
<cameron@cameron1729.xyz>
Sun, 5 May 2019 07:56:40 +0000
(15:56 +0800)
committer
Cameron Ball
<cameron@cameron1729.xyz>
Sun, 5 May 2019 07:56:40 +0000
(15:56 +0800)
src/gnb.php
patch
|
blob
|
history
diff --git
a/src/gnb.php
b/src/gnb.php
index
debfb55
..
6ec42c6
100644
(file)
--- a/
src/gnb.php
+++ b/
src/gnb.php
@@
-80,8
+80,8
@@
getTelegram()->addCommand(
'text' => "Building songs hash list... This will take a while."
]
);
-
- exec('/
root/hashghen.sh notify
> /dev/null &');
+ $chatid = getTelegram()->getWebhookUpdates()->get('message')->get('chat')->get('id');
+ exec('/
opt/hashgen.sh notify ' . $chatid . '
> /dev/null &');
}
}
);