forked from EQMacEmu/Server
-
Notifications
You must be signed in to change notification settings - Fork 57
/
world_boot.h
33 lines (28 loc) · 1.1 KB
/
world_boot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef EQEMU_WORLD_BOOT_H
#define EQEMU_WORLD_BOOT_H
#include <string>
#include "../common/types.h"
#include "../common/discord/discord.h"
extern UCSConnection UCSLink;
class WorldBoot {
public:
static void GMSayHookCallBackProcessWorld(uint16 log_category, const char* func, std::string message);
static bool HandleCommandInput(int argc, char** argv);
static bool LoadServerConfig();
static bool LoadDatabaseConnections();
static void CheckForServerScript(bool force_download = false);
static void CheckForXMLConfigUpgrade();
static void RegisterLoginservers();
static bool DatabaseLoadRoutines(int argc, char** argv);
static void CheckForPossibleConfigurationIssues();
static void SendDiscordMessage(int webhook_id, const std::string& message);
static void DiscordWebhookMessageHandler(uint16 log_category, int webhook_id, const std::string& message)
{
std::string message_prefix = fmt::format(
"[**{}**] **World** ",
Logs::LogCategoryName[log_category]
);
SendDiscordMessage(webhook_id, message_prefix + Discord::FormatDiscordMessage(log_category, message));
};
};
#endif //EQEMU_WORLD_BOOT_H