Merged SChat and IRC support.

This commit is contained in:
2022-10-19 01:24:13 +02:00
parent 4580e9129f
commit ad782a5126
9 changed files with 442 additions and 496 deletions

View File

@@ -21,14 +21,18 @@ module.exports = (() => {
}
if (config.platform === 'schat') {
return {
const methods = {
bold: schatBold,
italic: schatItalic,
red: bypass,
getter(...args) {
console.log(args);
};
const handler = {
get(target, prop) {
return target[prop] || bypass;
},
};
return new Proxy(methods, handler);
}
return null;