2024-04-30 03:27:50 +03:00
|
|
|
{
|
|
|
|
"kevacoin":
|
|
|
|
{
|
|
|
|
"server":
|
|
|
|
{
|
|
|
|
"protocol":"http",
|
|
|
|
"host":"127.0.0.1",
|
|
|
|
"port":9992,
|
|
|
|
"username":"",
|
|
|
|
"password":""
|
2024-04-30 17:27:12 +03:00
|
|
|
},
|
|
|
|
"wallet":
|
|
|
|
{
|
|
|
|
"namespace":"",
|
|
|
|
"account":null
|
2024-05-01 01:31:35 +03:00
|
|
|
},
|
|
|
|
"event":
|
|
|
|
{
|
|
|
|
"put":
|
|
|
|
{
|
|
|
|
"debug":
|
|
|
|
{
|
|
|
|
"enabled":true,
|
|
|
|
"template":"[{time}] [put] {host}#{crid} namespace: {name} transaction: {txid} left: {keva}"
|
|
|
|
}
|
|
|
|
}
|
2024-04-30 03:27:50 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"nps":
|
|
|
|
{
|
|
|
|
"server":
|
|
|
|
{
|
|
|
|
"host":"127.0.0.1",
|
2024-04-30 22:19:20 +03:00
|
|
|
"port":1915
|
2024-04-30 03:27:50 +03:00
|
|
|
},
|
2024-04-30 22:19:20 +03:00
|
|
|
"captcha":
|
2024-04-30 13:44:42 +03:00
|
|
|
{
|
2024-04-30 22:19:20 +03:00
|
|
|
"length":3,
|
|
|
|
"chars":"1234567890",
|
|
|
|
"dimensions":
|
2024-04-30 13:44:42 +03:00
|
|
|
{
|
2024-04-30 22:19:20 +03:00
|
|
|
"width":100,
|
|
|
|
"height":40
|
|
|
|
},
|
|
|
|
"background":
|
|
|
|
{
|
|
|
|
"r":0,
|
|
|
|
"g":0,
|
|
|
|
"b":0
|
|
|
|
},
|
|
|
|
"ascii":
|
|
|
|
{
|
|
|
|
"width": 50
|
2024-04-30 13:44:42 +03:00
|
|
|
}
|
|
|
|
},
|
2024-04-30 22:19:20 +03:00
|
|
|
"event":
|
2024-04-30 03:27:50 +03:00
|
|
|
{
|
2024-04-30 22:19:20 +03:00
|
|
|
"init":
|
2024-04-30 17:27:12 +03:00
|
|
|
{
|
|
|
|
"debug":
|
|
|
|
{
|
|
|
|
"enabled":true,
|
2024-04-30 22:19:20 +03:00
|
|
|
"template":"[{time}] [init] listen on {host}:{port} balance: {keva}"
|
2024-04-30 17:27:12 +03:00
|
|
|
}
|
|
|
|
},
|
2024-04-30 22:19:20 +03:00
|
|
|
"open":
|
2024-04-30 03:27:50 +03:00
|
|
|
{
|
2024-04-30 22:19:20 +03:00
|
|
|
"response":
|
2024-04-30 03:27:50 +03:00
|
|
|
[
|
2024-05-01 01:31:35 +03:00
|
|
|
"\u001b[36m\u001b[1mWelcome to KevaChat NPS!\u001b[0m",
|
2024-04-30 22:19:20 +03:00
|
|
|
"\u001b[34mEnter captcha to confirm you are human\u001b[0m"
|
2024-04-30 03:27:50 +03:00
|
|
|
],
|
|
|
|
"debug":
|
|
|
|
{
|
|
|
|
"enabled":true,
|
2024-04-30 22:19:20 +03:00
|
|
|
"template":"[{time}] [open] {host}#{crid} captcha: {code}"
|
2024-04-30 03:27:50 +03:00
|
|
|
}
|
|
|
|
},
|
2024-04-30 22:19:20 +03:00
|
|
|
"message":
|
2024-04-30 03:27:50 +03:00
|
|
|
{
|
2024-04-30 22:19:20 +03:00
|
|
|
"response":
|
2024-04-30 03:27:50 +03:00
|
|
|
{
|
2024-04-30 22:19:20 +03:00
|
|
|
"captcha":
|
|
|
|
{
|
|
|
|
"success":
|
|
|
|
[
|
2024-05-01 01:31:35 +03:00
|
|
|
"\u001b[34mWell, enter your message (dot to commit)\u001b[0m"
|
2024-04-30 22:19:20 +03:00
|
|
|
],
|
|
|
|
"failure":
|
|
|
|
[
|
|
|
|
"\u001b[31mIncorrect captcha code, try again later!\u001b[0m"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"submit":
|
|
|
|
{
|
|
|
|
"success":
|
|
|
|
[
|
2024-05-01 01:31:35 +03:00
|
|
|
"\u001b[34mThanks, your message successfully sent!\u001b[0m",
|
|
|
|
"\u001b[35mNS:{name}\u001b[0m",
|
|
|
|
"\u001b[35mID:{txid}\u001b[0m"
|
2024-04-30 22:19:20 +03:00
|
|
|
],
|
|
|
|
"failure":
|
|
|
|
{
|
2024-05-01 01:31:35 +03:00
|
|
|
"length":
|
|
|
|
[
|
|
|
|
"\u001b[31mReached message length limit!\u001b[0m"
|
|
|
|
],
|
2024-05-01 01:41:52 +03:00
|
|
|
"empty":
|
|
|
|
[
|
|
|
|
"\u001b[31mMessage could not be empty!\u001b[0m"
|
|
|
|
],
|
2024-05-01 16:38:06 +03:00
|
|
|
"encoding":
|
|
|
|
[
|
|
|
|
"\u001b[31mInvalid message encoding!\u001b[0m"
|
|
|
|
],
|
2024-04-30 22:19:20 +03:00
|
|
|
"internal":
|
|
|
|
[
|
2024-05-01 01:31:35 +03:00
|
|
|
"\u001b[31mSomething went wrong, please make your feedback!\u001b[0m",
|
|
|
|
"\u001b[36mhttps://github.com/kevachat/npsapp/issues\u001b[0m"
|
2024-04-30 22:19:20 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2024-04-30 03:27:50 +03:00
|
|
|
},
|
|
|
|
"debug":
|
|
|
|
{
|
|
|
|
"enabled":true,
|
2024-04-30 23:06:24 +03:00
|
|
|
"template":"[{time}] [message] {host}#{crid} captcha: {code} line: {iter} size: {size} bytes\n\r{sent}"
|
2024-04-30 03:27:50 +03:00
|
|
|
}
|
|
|
|
},
|
2024-04-30 22:19:20 +03:00
|
|
|
"close":
|
2024-04-30 03:27:50 +03:00
|
|
|
{
|
2024-04-30 22:19:20 +03:00
|
|
|
"debug":
|
2024-04-30 03:27:50 +03:00
|
|
|
{
|
2024-04-30 22:19:20 +03:00
|
|
|
"enabled":true,
|
|
|
|
"template":"[{time}] [close] {host}#{crid}"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"error":
|
|
|
|
{
|
2024-04-30 03:27:50 +03:00
|
|
|
"debug":
|
|
|
|
{
|
|
|
|
"enabled":true,
|
2024-04-30 22:19:20 +03:00
|
|
|
"template":"[{time}] [error] {host}#{crid} {info}"
|
2024-04-30 03:27:50 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|