From d0a30825c6d6bab5ac80c94df7deac3e2148aa8f Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 30 Apr 2024 03:27:50 +0300 Subject: [PATCH] init config example --- .gitignore | 3 +- example/config.json | 86 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 example/config.json diff --git a/.gitignore b/.gitignore index 94d6d75..1418e42 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor/ -/composer.lock \ No newline at end of file +/composer.lock +/config.json \ No newline at end of file diff --git a/example/config.json b/example/config.json new file mode 100644 index 0000000..f4c5cdc --- /dev/null +++ b/example/config.json @@ -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 + } + } + } +} \ No newline at end of file