Merged SChat and IRC support.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user