-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigs.php
More file actions
102 lines (96 loc) · 3.63 KB
/
configs.php
File metadata and controls
102 lines (96 loc) · 3.63 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
# These are your NeleBotX configurations
$configs = [
# 1. Telegram API configs
# 1. Set the Telegram Bot API token (Optional) [Number:Text/Crypted]
'token' => '',
# 2. Telegram Local/Public API (Required) [URL]
'telegram_bot_api' => 'https://api.telegram.org',
# 3. Default parse mode (Optional) [Text: html/markdown/markdownv2]
'parse_mode' => 'html',
# 4. Default web page preview (Optional) [Bool]
'disable_web_page_preview' => true,
# 5. Send without reply (Optional) [Bool]
'allow_sending_w/out_reply' => true,
# 6. Send without notification sound (Optional) [Bool]
'disable_notification' => false,
# 7. Protect contents (Optional) [Bool]
'protect_content' => false,
# 8. Commands alias (Optional) [Array of Text(Only 1 character)]
'commands_alias' => ['/', '!'],
# 2. Logging configs
# 1. Set the chat ID for Bot logs (Optional) [Number]
'log_chat' => 244432022,
# 2. Choose the errors to log (Optional) [Array of Number => bool]
'log_types' => [
# https://www.php.net/manual/en/errorfunc.constants.php
E_ERROR => true,
E_PARSE => true,
E_CORE_ERROR => true,
E_COMPILE_ERROR => true,
E_USER_WARNING => false,
E_USER_NOTICE => false,
E_RECOVERABLE_ERROR => false
],
# 3. Databases
# 1. Redis (Optional)
'redis' => [
# 1. Turn on/off Redis (Optional) [Bool]
'status' => false,
# 2. Select the Redis database (Optional) [Number]
'database' => 1,
# 3. Select Redis Server host (Required) [Redis Server IP]
'host' => 'localhost',
# 4. Select Redis Server port (Optional) [Number]
'port' => 6379,
# 5. Password for your Redis Server (Optional) [Text/false]
'password' => false,
# 6. Anti Flood System (Optional)
'antiflood' => [
# 1. Turn on/off the AntiFlood (Optional) [Bool]
'status' => true,
# 2. Set the messages to be sent (Required) [Number]
'messages' => 5,
# 3. Set the seconds to be sent (Required) [Number]
'seconds' => 2,
# 4. Ban time (Optional) [Number]
'ban_time' => 60,
# 5. Message displayed when ban (Optional) [Text]
'notice' => '‼️ You have been banned due to message flood for 1 minute!'
]
],
# 2. MySQL/SQLite/PostgreSQL (Optional)
'database' => [
# 1. Turn on/off the database (Optional) [Bool]
'status' => false,
# 2. Choose your database (Required) [Text: sqlite, mysql, pgsql]
'type' => '',
# 3. Database name (file for SQLite) (Required) [Text]
'database_name' => '',
# 4. MySQL/PostgreSQL user (Required for MySQL/PostgreSQL) [Text]
'user' => '',
# 5. MySQL/PostgreSQL password (Required for MySQL/PostgreSQL) [Text]
'password' => '',
# 6. Select Database host (Required for MySQL/PostgreSQL) [Database Server IP]
'host' => 'localhost'
],
# 4. NeleBotX configs
# 1. Bot Administrators (Optional) [Array of Telegram user ID]
'admins' => [
244432022 // Your ID
],
# 2. Plugins list (Optional) [Array of file name(text) => status(bool)]
'plugins' => [
'management.php' => true,
'commands.php' => true
],
# 2. Default requests response (Optional) [Bool]
'response' => false,
# 3. Default requests method (Optional) [Bool: true(POST)/false(GET)]
'post' => true,
# 4. Default requests timeout seconds (Optional) [Number]
'timeout' => 2,
# 5. NeleBotX Framework version
'version' => '1.1.0'
];
?>