A virtual currency betting bot for Twitch chat. https://ddark.net/better
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
better/src/better_const.h

76 lines
1.5 KiB

#ifndef BETTER_CONST_H
#define BETTER_CONST_H
#include "imgui.h"
#define BETTER_VERSION_STR "0.1.0"
enum : u8
{
LOGLEVEL_DEBUG,
LOGLEVEL_INFO,
LOGLEVEL_WARN,
LOGLEVEL_ERROR,
LOGLEVEL_ENUM_SIZE
};
enum : u8
{
BETS_STATUS_OPEN,
BETS_STATUS_COYOTE,
BETS_STATUS_CLOSED
};
const size_t RECV_BUFLEN = 2100;
const size_t SEND_BUFLEN = 500;
const i32 LEADERBOARD_PAGE_SIZE = 500;
const i32 CHAT_BUFFER_MAX = 1000;
const i32 LOG_BUFFER_MAX = 1000;
const i32 CHANNEL_NAME_MAX = 100;
const i32 USERNAME_MAX = 100;
const i32 TOKEN_MAX = 100;
const u64 POINTS_STEP_SMALL = 100;
const u64 POINTS_STEP_BIG = 1000;
const i32 TIMER_MAX = 1000000;
const i32 TIMER_STEP_SMALL = 1;
const i32 TIMER_STEP_BIG = 5;
const u32 DEFAULT_COYOTE_TIME = 5;
const i32 CHAT_COMMAND_MAX = 50;
const i32 CHAT_PARAM_MAX = 50;
const i32 POINTS_NAME_MAX = 30;
const i32 OPTION_NAME_MAX = 20;
const f32 PRIVMSG_MIN_INTERVAL = 30.0f / 20.0f + 0.1f;
const f32 PRIVMSG_MIN_INTERVAL_AS_MOD = 30.0f / 100.0f + 0.1f;
const f32 MIN_RECONNECT_INTERVAL = 10.0f;
const ImVec4 TEXT_COLOR_WARN = ImVec4(1.0f, 0.8f, 0.4f, 1.0f);
const ImVec4 LOG_TEXT_COLORS[LOGLEVEL_ENUM_SIZE] =
{
ImVec4(0.8f, 0.8f, 0.8f, 1),
ImVec4(1 , 1 , 1 , 1),
TEXT_COLOR_WARN,
ImVec4(1 , 0.2f, 0.2f, 1)
};
const char *const LOG_LEVEL_ID_STR[LOGLEVEL_ENUM_SIZE] =
{
"dbg",
"inf",
"wrn",
"err"
};
static_assert(POINTS_NAME_MAX < CHAT_COMMAND_MAX);
static_assert(OPTION_NAME_MAX < CHAT_COMMAND_MAX);
#endif // BETTER_CONST_H