-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php
64 lines (52 loc) · 2.42 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
<?php
return array(
//=============================================================================================
//Telegram
//=============================================================================================
//Telegram Bot API Key
'api_key' => '',
//Telegram Bot Username
'username' => '',
//URL for the hook.php
'hook_url' => '',
//=============================================================================================
//MySQL
//=============================================================================================
'enable_mysql' => false,
'mysql' => [
'host' => 'localhost',
'user' => '',
'password' => '',
'database' => 'plakbot',
],
//=============================================================================================
//Folders
//=============================================================================================
//Path of the Commands folder
'commands_path' => __DIR__ . '/Commands',
//Path of the folder where the original stickers (webp) will be downloaded to
'download_path' => __DIR__ . '/downloads',
//Path of the folder where the converted stickers (png) will be stored for uploading
'upload_path' => __DIR__ . '/uploads',
//If true then stickers uploaded to telegram are cached on the server to avoid converting more
//than necessary.
//Note that images are stored indefinitely, so you may want to clean them out from time to time.
'cache_uploads' => true,
//=============================================================================================
//Conversion
//=============================================================================================
//If true, cloudconvert is used for converting from webp to png instead of the native PHP
//functions.
'cloudconvert' => false,
//The api key for cloud convert
'cc_api_key' => '',
//=============================================================================================
//Logging
//=============================================================================================
//Enable error logging
'log_errors' => true,
//Enable debug logging
'log_debug' => false,
//Location of the log files
'log_location' => __DIR__ . '/logs',
);