2016-08-04 02:41:02 +01:00
|
|
|
#ifndef BOT_JS_COMMANDHELPER
|
|
|
|
#define BOT_JS_COMMANDHELPER
|
|
|
|
|
2016-08-12 15:42:03 +01:00
|
|
|
#include <string>
|
2016-08-04 02:41:02 +01:00
|
|
|
#include <vector>
|
|
|
|
|
2016-08-10 17:07:41 +01:00
|
|
|
namespace CommandHelper {
|
|
|
|
struct Command {
|
|
|
|
std::string guild_id;
|
|
|
|
std::string command_name;
|
|
|
|
std::string script;
|
|
|
|
};
|
2016-08-04 02:41:02 +01:00
|
|
|
|
2016-08-10 17:07:41 +01:00
|
|
|
void init();
|
2016-08-04 02:41:02 +01:00
|
|
|
int insert_command(std::string guild_id, std::string command_name, std::string script);
|
|
|
|
bool get_command(std::string guild_id, std::string name, Command &command);
|
|
|
|
bool command_in_db(std::string guild_id, std::string command_name);
|
2016-08-10 17:07:41 +01:00
|
|
|
}
|
2016-08-04 02:41:02 +01:00
|
|
|
|
2016-08-12 15:42:03 +01:00
|
|
|
#endif
|