Squash bugs and warnings, optimise CMake builds.
This commit is contained in:
parent
4b2d0ee50a
commit
9c7e4f5a6d
6
.gitignore
vendored
6
.gitignore
vendored
@ -15,3 +15,9 @@ config.json
|
||||
|
||||
# Compiled sqlite file
|
||||
sqlite3.obj
|
||||
|
||||
# V8 lib
|
||||
lib/v8
|
||||
|
||||
# Built files
|
||||
build/
|
||||
|
@ -52,3 +52,5 @@ include_directories(
|
||||
|
||||
# don't know if necessary, too scared to remove
|
||||
add_definitions(-D_WEBSOCKETPP_CPP11_STL_)
|
||||
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
|
@ -62,6 +62,5 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
Logger::write("Cleaned up", Logger::LogLevel::Info);
|
||||
|
||||
std::getchar();
|
||||
return exit_code;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include "Logger.hpp"
|
||||
#include "BotConfig.hpp"
|
||||
|
||||
TriviaGame::TriviaGame(BotConfig &c, GatewayHandler *gh, std::string channel_id, int total_questions, int delay) : interval(delay), config(c) {
|
||||
TriviaGame::TriviaGame(BotConfig &c, GatewayHandler *gh, std::string channel_id, int total_questions, int delay) : config(c), interval(delay) {
|
||||
this->gh = gh;
|
||||
this->channel_id = channel_id;
|
||||
|
||||
|
@ -14,7 +14,7 @@ namespace CommandHelper {
|
||||
sqlite3 *db; int return_code;
|
||||
return_code = sqlite3_open("bot/db/trivia.db", &db);
|
||||
|
||||
std::string sql = "SELECT * FROM CustomJS";
|
||||
std::string sql = "SELECT GuildID, CommandName, Script FROM CustomJS";
|
||||
|
||||
sqlite3_stmt *stmt;
|
||||
return_code = sqlite3_prepare_v2(db, sql.c_str(), -1, &stmt, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user