mirror of
https://github.com/WCBROW01/zblock.git
synced 2025-12-10 19:58:05 -05:00
28 lines
631 B
C
28 lines
631 B
C
#ifndef ZBLOCK_CONFIG_H
|
|
#define ZBLOCK_CONFIG_H
|
|
|
|
#include <concord/discord.h>
|
|
|
|
// the current zblock config
|
|
extern struct zblock_config {
|
|
char *conninfo;
|
|
u64snowflake tuesday_channel;
|
|
u64snowflake storytime_channel;
|
|
bool tuesday_enable;
|
|
} zblock_config;
|
|
|
|
typedef enum {
|
|
ZBLOCK_CONFIG_OK,
|
|
ZBLOCK_CONFIG_CONNINFO_ERROR,
|
|
ZBLOCK_CONFIG_NO_TUESDAY_CHANNEL,
|
|
ZBLOCK_CONFIG_ERRORCOUNT
|
|
} zblock_config_err;
|
|
|
|
// load config entries for zblock
|
|
zblock_config_err zblock_config_load(struct discord *client);
|
|
|
|
// returns a string about the result of a config function
|
|
const char *zblock_config_strerror(zblock_config_err error);
|
|
|
|
#endif
|