projects
/
GrooveNetBot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e82b3fc
)
Add a command to generate the hash list
author
Cameron Ball
<cameron@cameron1729.xyz>
Sun, 5 May 2019 07:03:28 +0000
(15:03 +0800)
committer
Cameron Ball
<cameron@cameron1729.xyz>
Sun, 5 May 2019 07:03:28 +0000
(15:03 +0800)
src/gnb.php
patch
|
blob
|
history
diff --git
a/src/gnb.php
b/src/gnb.php
index
8160750
..
97e2793
100644
(file)
--- a/
src/gnb.php
+++ b/
src/gnb.php
@@
-69,4
+69,22
@@
getTelegram()->addCommand(
}
);
+getTelegram()->addCommand(
+ new class extends Command {
+ protected $name = 'hashgen';
+ protected $description = 'Generate the songs hash';
+
+ public function handle($arguments) {
+ $this->replyWithMessage(
+ [
+ 'text' => "Building songs hash... This will take a while."
+ ]
+ );
+
+ exec('/root/hashghen.sh');
+ }
+ }
+);
+
+
getTelegram()->commandsHandler(true); //must come afterwards because lolzer