Skip to content

Commit e2d1880

Browse files
author
kcloze
authored
Merge pull request #5 from jc91715/master
通过配置文件,支持加载Vbot扩展
2 parents 37faae0 + 70319c4 commit e2d1880

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

config.php

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
'nickname' => '',
7474
],
7575
],
76+
'load-extension'=>[
77+
//\Vbot\GuessNumber\GuessNumber::class
78+
],
7679
'params'=> [
7780
'tulingApi'=> 'http://www.tuling123.com/openapi/api',
7881
'tulingKey'=> '',

src/Robots.php

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function run()
2828
$reply=new Reply($message, $this->options);
2929
$reply->send();
3030
});
31+
$this->robot->messageExtension->load($this->options['load-extension']);
3132
$this->robot->server->serve();
3233
}
3334
}

0 commit comments

Comments
 (0)