diff options
author | FreeArtMan <dos21h@gmail.com> | 2017-06-11 18:11:05 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2017-06-11 18:11:05 +0100 |
commit | 7425351d71670fa5c9051ecba5170a860535a7fb (patch) | |
tree | d3b7b14346326982eff33cd9d1e2202bdc4158b9 /cmd | |
parent | 07f86a3d78720f616c5417da8b937e0d7691072d (diff) | |
download | agni-7425351d71670fa5c9051ecba5170a860535a7fb.tar.gz agni-7425351d71670fa5c9051ecba5170a860535a7fb.zip |
Add help command
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/cmd_help.c | 15 | ||||
-rw-r--r-- | cmd/cmd_help.h | 15 |
2 files changed, 30 insertions, 0 deletions
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 <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <math.h> + +#include "sds.h" +#include "util.h" +#include "debug.h" + +void *cmd_help(void *data); + +#endif
\ No newline at end of file |