mirror of
https://github.com/WCBROW01/zblock.git
synced 2025-12-11 20:18:07 -05:00
Do something special on Tuesday
Optional feature, can be enabled for a certain channel with a config flag. 
This commit is contained in:
15
config.h
15
config.h
@ -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
|
||||
|
||||
Reference in New Issue
Block a user