Constructor
new Hook(config, sourcePath)
- Source:
Initializes a new Hook
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| config | Object | Hook configuration object Properties
 | |||||||||||||||||||||||||||||||||||
| sourcePath | String | full path of Hook source file | 
Members
(static) github-redeploy :Hook
- Source:
- Tutorials:
Properties:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
| initConfig | Object | 
 Properties
 | 
Redeploys the Esdi instance after receiving a GitHub webhook
POST: /hook/github-redeploy
Type:
(static) ko-fi :Hook
- Source:
- Tutorials:
Properties:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
| initConfig | Object | 
 Properties
 | 
Converts a Ko-fi webhook into a discord.js MessageEmbed and posts it in a channel
POST: /hook/ko-fi/{channel}
Type:
Methods
(async) checkEnabledForContext(config) → {external:Guild|external:Channel|String|Object}
- Source:
Returns a context if this Hook is enabled for a provided context ID, or a hapi response object if not
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| config | Object | configuration object Properties
 | 
Returns:
hapi response object or Hook context
- Type
- external:Guild | external:Channel | String | Object