-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Pajbot banned phrases check for bio.
- Loading branch information
Showing
4 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const PajbotConfig = { | ||
/** | ||
* Enable Pajbot checking. | ||
*/ | ||
enabled: true, | ||
|
||
/** | ||
* Custom pajbot channels - If length === 0 / unset, gets default values. | ||
* [See default values here.](https://github.com/KararTY/BeFriendlier-Shared/blob/master/src/pajbotList.ts) | ||
*/ | ||
channels: [], | ||
|
||
/** | ||
* HTTP request headers. | ||
*/ | ||
headers: { | ||
'content-type': 'application/json', | ||
'user-agent': 'befriendlierapp (https://github.com/kararty/befriendlier-web)', | ||
} | ||
} | ||
|
||
export default PajbotConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
declare module '@ioc:Befriendlier-Shared/PajbotAPI' { | ||
import { PajbotAPI } from 'befriendlier-shared' | ||
|
||
const pajbotAPI: PajbotAPI | ||
export default pajbotAPI | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters