From 7425351d71670fa5c9051ecba5170a860535a7fb Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sun, 11 Jun 2017 18:11:05 +0100 Subject: Add help command --- cmd/cmd_help.c | 15 +++++++++++++++ cmd/cmd_help.h | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 cmd/cmd_help.c create mode 100644 cmd/cmd_help.h diff --git a/cmd/cmd_help.c b/cmd/cmd_help.c new file mode 100644 index 0000000..e62a8dd --- /dev/null +++ b/cmd/cmd_help.c @@ -0,0 +1,15 @@ +#include "cmd_help.h" + +void *cmd_help(void *data) +{ + char *ret = NULL; + + printf("HELP\n"); + + ret = alloc_new_str("This is greatest bot of all times." + "Have many cool features." + "Development style FUCK THE SYSTEM." + "Original ideas more accepted then mainstream ones."); + + return ret; +} \ No newline at end of file diff --git a/cmd/cmd_help.h b/cmd/cmd_help.h new file mode 100644 index 0000000..8bf393b --- /dev/null +++ b/cmd/cmd_help.h @@ -0,0 +1,15 @@ +#ifndef __CMD_HELP_H +#define __CMD_HELP_H + +#include +#include +#include +#include + +#include "sds.h" +#include "util.h" +#include "debug.h" + +void *cmd_help(void *data); + +#endif \ No newline at end of file -- cgit v1.2.3