-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathconfig.php
84 lines (80 loc) · 2.03 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/*
* This file is part of PHP CS Fixer.
* (c) kcloze <pei.greet@qq.com>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
$path = __DIR__ . '/tmp/';
return $options = [
'path' => $path,
/*
* swoole 配置项
*/
'swoole' => [
//默认允许几个机器人登录
'workNum'=> 1,
],
/*
* 下载配置项
*/
'download' => [
'image' => true,
'voice' => true,
'video' => true,
'emoticon' => true,
'file' => true,
'emoticon_path' => $path . 'emoticons', // 表情库路径(PS:表情库为过滤后不重复的表情文件夹)
],
/*
* 输出配置项
*/
'console' => [
'output' => true, // 是否输出
'message' => true, // 是否输出接收消息 (若上面为 false 此处无效)
],
/*
* 日志配置项
*/
'log' => [
'level' => 'debug',
'permission' => 0777,
'system' => $path . 'log', // 系统报错日志
'message' => $path . 'log', // 消息日志
],
/*
* 缓存配置项
*/
'cache' => [
'default' => 'file', // 缓存设置 (支持 redis 或 file)
'stores' => [
'file' => [
'driver' => 'file',
'path' => $path . 'cache',
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
],
],
],
/*
* 拓展配置
* ==============================
* 如果加载拓展则必须加载此配置项
*/
'extension' => [
// 管理员配置(必选),优先加载 remark_name
'admin' => [
'remark' => '',
'nickname' => '',
],
],
'load-extension'=>[
//\Vbot\GuessNumber\GuessNumber::class
],
'params'=> [
'tulingApi'=> 'http://www.tuling123.com/openapi/api',
'tulingKey'=> '',
],
];