init config example

This commit is contained in:
ghost 2024-04-30 03:27:50 +03:00
parent 466e677858
commit d0a30825c6
2 changed files with 88 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
/vendor/
/composer.lock
/composer.lock
/config.json

86
example/config.json Normal file
View File

@ -0,0 +1,86 @@
{
"kevacoin":
{
"server":
{
"protocol":"http",
"host":"127.0.0.1",
"port":9992,
"username":"",
"password":""
}
},
"nps":
{
"server":
{
"host":"127.0.0.1",
"port":1915,
"size":3072,
"line":1024
},
"action":
{
"welcome":
{
"message":
[
"Welcome to KevaChat!",
"Enter captcha to confirm you are human:"
],
"debug":
{
"enabled":true,
"template":"[{time}] connected {host}:{port} captcha: {code}"
}
},
"pending":
{
"message":
{
"success":"Good, enter your message:",
"failure":"Something went wrong, try again later!"
},
"debug":
{
"enabled":true,
"template":"[{time}] connected {host}:{port} captcha: {code} sent: {sent}"
}
},
"handler":
{
"message":
{
"success":"Thanks, your message successfully sent!",
"failure":"Something went wrong, please make your feedback!"
},
"debug":
{
"enabled":true,
"template":"[{time}] [{code}] {host}:{port} {path} {size} bytes {data}"
}
}
},
"captcha":
{
"enabled":true,
"length":3,
"chars":"1234567890",
"dimensions":
{
"width":100,
"height":40
},
"background":
{
"r":0,
"g":0,
"b":0
},
"ascii":
{
"width": 80
}
}
}
}