npsapp/example/config.json

101 lines
2.6 KiB
JSON
Raw Normal View History

2024-04-30 03:27:50 +03:00
{
"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
},
2024-04-30 13:44:42 +03:00
"session":
{
2024-04-30 15:00:37 +03:00
"timeout":3600,
2024-04-30 13:44:42 +03:00
"captcha":
{
"length":3,
"chars":"1234567890",
"dimensions":
{
"width":100,
"height":40
},
"background":
{
"r":0,
"g":0,
"b":0
},
"ascii":
{
"width": 50
}
}
},
2024-04-30 03:27:50 +03:00
"action":
{
"welcome":
{
"message":
[
2024-04-30 14:22:25 +03:00
"\u001b[34m\u001b[1mWelcome to KevaChat!\u001b[0m",
"\u001b[34mEnter captcha to confirm you are human:\u001b[0m"
2024-04-30 03:27:50 +03:00
],
"debug":
{
"enabled":true,
2024-04-30 14:22:25 +03:00
"template":"[{time}] [welcome] {host}:{port} captcha: {code}"
2024-04-30 03:27:50 +03:00
}
},
"pending":
{
"message":
{
2024-04-30 03:34:00 +03:00
"success":
[
2024-04-30 14:22:25 +03:00
"\u001b[34mLooks good, now enter your message:\u001b[0m"
2024-04-30 03:34:00 +03:00
],
"failure":
[
2024-04-30 14:22:25 +03:00
"\u001b[31mSomething went wrong, try again later!\u001b[0m"
2024-04-30 03:34:00 +03:00
]
2024-04-30 03:27:50 +03:00
},
"debug":
{
"enabled":true,
2024-04-30 14:22:25 +03:00
"template":"[{time}] [pending] {host}:{port} captcha: {code} sent: {sent}"
2024-04-30 03:27:50 +03:00
}
},
"handler":
{
"message":
{
2024-04-30 03:34:00 +03:00
"success":
[
2024-04-30 14:22:25 +03:00
"\u001b[32mThanks, your message successfully sent!\u001b[0m"
2024-04-30 03:34:00 +03:00
],
"failure":
[
2024-04-30 14:22:25 +03:00
"\u001b[31mSomething went wrong, please make your feedback!\u001b[0m"
2024-04-30 03:34:00 +03:00
]
2024-04-30 03:27:50 +03:00
},
"debug":
{
"enabled":true,
2024-04-30 14:22:25 +03:00
"template":"[{time}] [handler] {host}:{port} captcha: {code} sent: {sent} length: {size} bytes {data}"
2024-04-30 03:27:50 +03:00
}
}
}
}
}