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)
This commit is contained in:
2024-12-30 14:32:13 -05:00
parent 6cce5e129e
commit 5164aed19d
3 changed files with 91 additions and 12 deletions

View File

@ -6,8 +6,21 @@
// the current zblock config
extern struct zblock_config {
char *conninfo;
u64snowflake tuesday_channel;
bool tuesday_enable;
} zblock_config;
int zblock_config_load(struct discord *client);
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