Files
zblock/config.h
Will Brown 5164aed19d Do something special on Tuesday
Optional feature, can be enabled for a certain channel with a config flag.
![Happy Tuesday](https://tenor.com/view/happy-tuesday-its-tuesday-tuesday-dance-default-mario-gif-15064439)
2024-12-30 14:32:13 -05:00

27 lines
598 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;
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