You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tellme-bot/packages/server/parsers/kuma.js

28 lines
527 B

3 years ago
import Parser from './parser.js'
1 year ago
import * as DOMPurify from 'dompurify'
3 years ago
/**
* Parser for Kuma, getting only error message
3 years ago
*
3 years ago
* @author Björn Hase
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
3 years ago
* @link https://gitea.node001.net/HerrHase/tellme-bot.git
3 years ago
*
*/
1 year ago
class Kuma extends Parser {
/**
*
*
*/
parse() {
// check for msg and clean it
if (this.body.msg) {
this.message = DOMPurify.sanitize(this.body.msg)
}
3 years ago
}
}
1 year ago
export default Kuma