|
|
|
@ -1,12 +1,11 @@
|
|
|
|
|
import Plugin from '@goosemod/plugin';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { findByProps } from '@goosemod/webpack';
|
|
|
|
|
|
|
|
|
|
class LightySimulator extends Plugin {
|
|
|
|
|
onImport() {
|
|
|
|
|
const queue = goosemod.webpackModules.findByProps("enqueue");
|
|
|
|
|
const {getChannelId} = goosemod.webpackModules.findByProps("getChannelId", "getLastSelectedChannelId");
|
|
|
|
|
const {editMessage} = goosemod.webpackModules.findByProps("sendMessage", "editMessage");
|
|
|
|
|
const queue = findByProps("enqueue");
|
|
|
|
|
const {getChannelId} = findByProps("getChannelId", "getLastSelectedChannelId");
|
|
|
|
|
const {editMessage} = findByProps("sendMessage", "editMessage");
|
|
|
|
|
this.command('edit', 'Annoy message logger users', ({ text: [ { text } ] }) => {
|
|
|
|
|
const channel = getChannelId();
|
|
|
|
|
const msg = text.split('');
|
|
|
|
|