to release :)

master
const an teen 2021-05-27 12:27:48 +03:00
parent a1127b3139
commit ecf00c67a6
3 changed files with 26 additions and 24 deletions

View File

@ -1,26 +1,28 @@
{
"socket":
{
"address": "324:9de3:fea4:f6ac::41",
"address": "127.0.0.1",
"port": "6667",
"channel": "#ddd",
"nickname": "botbotbot",
"password": "x"
"channel": "#ircabot",
"nickname": "ircabot",
"password": ""
},
"handler":
{
"logpath": "D:\\irc-log",
"help": "available functions: 'search' and 'test'.",
"logpath": "/var/www/irc-log",
"admin": "acetone",
"success": "успешно.",
"error": "ошибка.",
"trylater": "попробуйте позже.",
"success": "success :)",
"error": "error :(",
"trylater": "try later.",
"find": "поиск",
"notfound": "ничего не найдено.",
"findzero": "краткий поиск: 'поиск <слово>', расширенный поиск с выдачей результата в ЛС: 'поиск <ГГГГ-ММ-ДД> [слово]'.",
"links": "http://acetone.i2p/doc/irc-log/ # http://[324:9de3:fea4:f6ac::ace]/doc/irc-log/ # http://acetonemadzhxzi2e5tomavam6xpucdfwn2g35vrsz6izgaxv5bmuhad.onion/doc/irc-log/",
"find": "search",
"notfound": "not found.",
"findzero": "quick search: 'search <word>', detailed search with output to PM: 'search <YYYY-MM-DD> [word]'.",
"links": "http://example.domain/irc-log/",
"help": "доступные команды: 'поиск'."
"test": "it's work!"
}
}

View File

@ -27,15 +27,15 @@ void log(std::string text)
std::map<std::string, std::string> conf =
{
{ "admin" , "acetone" }, // никнейм админа
{ "error" , "error" }, // сообщение об ошибке
{ "success" , "success" }, // сообщение об успехе
{ "logpath" , "" }, // директория с логами
{ "find" , "search" }, // команда поиска
{ "notfound", "not found" }, // поиск не увенчался успехом
{ "findzero", "what?.." }, // команда поиска без параметров
{ "links" , "" }, // ссылки на лог (в конце выдачи в ЛС)
{ "trylater", "try later" } // "перегрузка, попробуйте позже"
{ "admin" , "" }, // никнейм админа
{ "error" , "" }, // сообщение об ошибке
{ "success" , "" }, // сообщение об успехе
{ "logpath" , "" }, // директория с логами
{ "find" , "" }, // команда поиска
{ "notfound", "" }, // поиск не увенчался успехом
{ "findzero", "" }, // команда поиска без параметров
{ "links" , "" }, // ссылки на лог (в конце выдачи в ЛС)
{ "trylater", "" } // "перегрузка, попробуйте позже"
};
std::mutex mtx;

View File

@ -65,8 +65,8 @@ private:
std::string m_config_file = "ircbot.json";
const std::string m_user = "acetonebot";
const std::string m_realname = "IRC bot in C++";
const std::string m_user = "ircabot";
const std::string m_realname = "https://notabug.org/acetone/ircabot";
};
#endif // TCPSYNCCLIENT_H