2020-06-12 18:52:38 +03:00
|
|
|
//
|
2023-05-24 23:41:23 +03:00
|
|
|
// YaPB, based on PODBot by Markus Klinge ("CountFloyd").
|
|
|
|
|
// Copyright © YaPB Project Developers <yapb@jeefo.net>.
|
2020-06-12 18:52:38 +03:00
|
|
|
//
|
2020-11-03 08:57:12 +03:00
|
|
|
// SPDX-License-Identifier: MIT
|
2020-06-12 18:52:38 +03:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#ifdef VERSION_GENERATED
|
|
|
|
|
# define VERSION_HEADER <version.build.h>
|
|
|
|
|
#else
|
|
|
|
|
# define VERSION_HEADER <version.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include VERSION_HEADER
|
|
|
|
|
|
2025-03-16 18:25:15 +03:00
|
|
|
// compile time build string
|
|
|
|
|
#define CTS_BUILD_STR static inline constexpr StringRef
|
|
|
|
|
|
2020-06-12 18:52:38 +03:00
|
|
|
// simple class for bot internal information
|
2025-03-16 18:25:15 +03:00
|
|
|
static constexpr class Product final {
|
2023-05-12 20:00:06 +03:00
|
|
|
public:
|
|
|
|
|
explicit constexpr Product () = default;
|
|
|
|
|
~Product () = default;
|
|
|
|
|
|
2020-06-12 18:52:38 +03:00
|
|
|
public:
|
2025-03-16 18:25:15 +03:00
|
|
|
static constexpr struct BuildInfo {
|
|
|
|
|
CTS_BUILD_STR hash { MODULE_COMMIT_HASH };
|
|
|
|
|
CTS_BUILD_STR count { MODULE_COMMIT_COUNT };
|
|
|
|
|
CTS_BUILD_STR author { MODULE_AUTHOR };
|
|
|
|
|
CTS_BUILD_STR machine { MODULE_MACHINE };
|
|
|
|
|
CTS_BUILD_STR compiler { MODULE_COMPILER };
|
|
|
|
|
CTS_BUILD_STR id { MODULE_BUILD_ID };
|
|
|
|
|
} bi {};
|
2020-06-12 18:52:38 +03:00
|
|
|
|
|
|
|
|
public:
|
2025-03-16 18:25:15 +03:00
|
|
|
CTS_BUILD_STR name { "YaPB" };
|
|
|
|
|
CTS_BUILD_STR nameLower { "yapb" };
|
|
|
|
|
CTS_BUILD_STR year { &__DATE__[7] };
|
|
|
|
|
CTS_BUILD_STR author { "YaPB Project" };
|
|
|
|
|
CTS_BUILD_STR email { "yapb@jeefo.net" };
|
|
|
|
|
CTS_BUILD_STR url { "https://yapb.jeefo.net/" };
|
|
|
|
|
CTS_BUILD_STR download { "yapb.jeefo.net" };
|
|
|
|
|
CTS_BUILD_STR upload { "yapb.jeefo.net/upload" };
|
|
|
|
|
CTS_BUILD_STR httpScheme { "http" };
|
|
|
|
|
CTS_BUILD_STR logtag { "YB" };
|
|
|
|
|
CTS_BUILD_STR dtime { __DATE__ " " __TIME__ };
|
|
|
|
|
CTS_BUILD_STR date { __DATE__ };
|
|
|
|
|
CTS_BUILD_STR version { MODULE_VERSION "." MODULE_COMMIT_COUNT };
|
|
|
|
|
CTS_BUILD_STR cmdPri { "yb" };
|
|
|
|
|
CTS_BUILD_STR cmdSec { "yapb" };
|
|
|
|
|
} product {};
|
2023-05-12 20:00:06 +03:00
|
|
|
|
2025-03-16 18:25:15 +03:00
|
|
|
static constexpr class Folders final {
|
2023-05-12 20:00:06 +03:00
|
|
|
public:
|
|
|
|
|
explicit constexpr Folders () = default;
|
|
|
|
|
~Folders () = default;
|
|
|
|
|
|
|
|
|
|
public:
|
2025-09-01 23:20:36 +03:00
|
|
|
CTS_BUILD_STR bot { product.nameLower };
|
2025-03-16 18:25:15 +03:00
|
|
|
CTS_BUILD_STR addons { "addons" };
|
|
|
|
|
CTS_BUILD_STR config { "conf" };
|
|
|
|
|
CTS_BUILD_STR data { "data" };
|
|
|
|
|
CTS_BUILD_STR lang { "lang" };
|
|
|
|
|
CTS_BUILD_STR logs { "logs" };
|
|
|
|
|
CTS_BUILD_STR train { "train" };
|
|
|
|
|
CTS_BUILD_STR graph { "graph" };
|
|
|
|
|
CTS_BUILD_STR podbot { "pwf" };
|
2025-08-21 21:43:21 +03:00
|
|
|
CTS_BUILD_STR bin { "bin" };
|
2025-03-16 18:25:15 +03:00
|
|
|
} folders {};
|
2020-06-12 18:52:38 +03:00
|
|
|
|
2025-03-16 18:25:15 +03:00
|
|
|
#undef CTS_BUILD_STR
|
2025-12-28 21:22:13 -05:00
|
|
|
|