Commit 772a00c5 authored by Akari Labs's avatar Akari Labs

add discord userscript

parent 393d4039
const selfbot = require('tsundiscord.selfbot');
const ui = new (require('gltchrr.ui'))();
const gltchrr = ui.gltchrr;
// expose the control functions through window.gltchrr
window.gltchrr = ui.gltchrr.control;
var showing = false;
module.exports = {
selfbot: {
callbacks: [gltchrr.processText],
commands: {
gltoggle: {
description: 'Toggle showing the gltchrr UI',
action: m => {
if (showing) {
ui.hide();
showing = false;
}
else {
ui.show();
showing = true;
}
m.content = '';
}
}
}
}
};
\ No newline at end of file
......@@ -6,11 +6,9 @@ const gltchrr = ui.gltchrr;
window.gltchrr = ui.gltchrr.control;
module.exports = {
ready() {
ui.show();
},
cascade: {
postCtor: [
{
......@@ -26,5 +24,4 @@ module.exports = {
}
]
}
}
\ No newline at end of file
};
\ No newline at end of file
......@@ -94,20 +94,27 @@
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ="
},
"nanopack": {
"version": "git+https://git.agiri.ninja/lp0/nanopack.git#2148875150cea81ed57ae8b0929c20644e15e6ca",
"version": "git+https://git.agiri.ninja/lp0/nanopack.git#02a8bf07dd68348be39d4a3ba1e287ea1c47a191",
"from": "git+https://git.agiri.ninja/lp0/nanopack.git",
"requires": {
"buble": "^0.19.7"
}
},
"nanopack_cascade": {
"version": "git+https://git.agiri.ninja/lp0/cascade-webpack.git#5f4c634aa239aed95ac654c39de1bbcf6569df37",
"version": "git+https://git.agiri.ninja/lp0/cascade-webpack.git#d839a0c1f3936b7f0c3ded2241352b7067d8d96e",
"from": "git+https://git.agiri.ninja/lp0/cascade-webpack.git"
},
"nanopack_kwm": {
"version": "git+https://git.agiri.ninja/lp0/kwm.git#e02a586998a6d449e17c3a8279ed50853649edaf",
"version": "git+https://git.agiri.ninja/lp0/kwm.git#36bedf08b48e95fda6a15ef74b8657b0fea7581c",
"from": "git+https://git.agiri.ninja/lp0/kwm.git"
},
"nanopack_tsundiscord": {
"version": "git+https://git.agiri.ninja/lp0/tsundiscord.git#2dc2cbe1afef12ef5bc02b842aacfa2d8fcc8785",
"from": "git+https://git.agiri.ninja/lp0/tsundiscord.git",
"requires": {
"nanopack_cascade": "git+https://git.agiri.ninja/lp0/cascade-webpack.git"
}
},
"os-homedir": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
......
......@@ -16,6 +16,7 @@
"dependencies": {
"nanopack": "git+https://git.agiri.ninja/lp0/nanopack.git",
"nanopack_cascade": "git+https://git.agiri.ninja/lp0/cascade-webpack.git",
"nanopack_kwm": "git+https://git.agiri.ninja/lp0/kwm.git"
"nanopack_kwm": "git+https://git.agiri.ninja/lp0/kwm.git",
"nanopack_tsundiscord": "git+https://git.agiri.ninja/lp0/tsundiscord.git"
}
}
const target = {};
Object.assign(target, require('./shared.json'));
target.directories = target.directories.concat();
target.modules = target.modules.concat();
target.header = `// ==UserScript==
// @name gltchrr for Discord
// @namespace http://akari.vii/
// @version 1.2.5
// @description g̴̐͋litcc̣̟̭̿cch
// @author lp0 and nocebo
// @match https://discordapp.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
`;
target.directories.push('modules/discord');
target.modules.push('nanopack_tsundiscord');
target.meta = {
'gltchrr.hook': {
orchestrate: true
}
};
target.output = 'gltchrr_discord.userscript.js'
module.exports = () => target;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment