70 lines
2.2 KiB
TypeScript
70 lines
2.2 KiB
TypeScript
// Module ID: 7183
|
|
// Function ID: 7184
|
|
// Name: updatePoggermodeSettings
|
|
// Dependencies: [1218, 7032, 7184, 709, 7186, 2]
|
|
// Exports: clearMessageCombo, updateCombo, updateComboOnMessageSend, updatePoggermodeSettings
|
|
|
|
// Module 7183 (updatePoggermodeSettings)
|
|
import fetchFingerprint from "fetchFingerprint";
|
|
import initialize from "initialize";
|
|
import updateCombo from "updateCombo";
|
|
|
|
const result = require("updateCombo").fileFinishedImporting("modules/poggermode/PoggermodeActionCreators.tsx");
|
|
|
|
export const updatePoggermodeSettings = function updatePoggermodeSettings(settings) {
|
|
let obj = importDefault(709);
|
|
obj = { type: "POGGERMODE_SETTINGS_UPDATE", settings };
|
|
obj.dispatch(obj);
|
|
obj = {};
|
|
const merged = Object.assign(state.getState());
|
|
const merged1 = Object.assign(settings);
|
|
importDefault(7186)(obj);
|
|
};
|
|
export const updateCombo = function updateCombo(arg0) {
|
|
let obj = importDefault(709);
|
|
obj = { type: "POGGERMODE_UPDATE_COMBO" };
|
|
const merged = Object.assign(arg0);
|
|
obj.dispatch(obj);
|
|
};
|
|
export const clearMessageCombo = function clearMessageCombo(arg0) {
|
|
let obj = importDefault(709);
|
|
obj = { type: "POGGERMODE_UPDATE_MESSAGE_COMBO", comboMessage: null };
|
|
obj = {};
|
|
const merged = Object.assign(arg0);
|
|
obj.displayed = true;
|
|
obj[1] = obj;
|
|
obj.dispatch(obj);
|
|
};
|
|
export const updateComboOnMessageSend = function updateComboOnMessageSend(throwTypeErrorResult, id) {
|
|
id = id.getId();
|
|
const iter = userCombo.getUserCombo(id, throwTypeErrorResult);
|
|
if (null != iter) {
|
|
let obj = importDefault(709);
|
|
obj = { type: "POGGERMODE_UPDATE_MESSAGE_COMBO", comboMessage: null };
|
|
obj = { combo: null, channelId: null, messageId: null, displayed: false };
|
|
obj[0] = iter;
|
|
obj[1] = throwTypeErrorResult;
|
|
obj[2] = id;
|
|
obj[1] = obj;
|
|
obj.dispatch(obj);
|
|
}
|
|
let num = 1;
|
|
if (null != iter) {
|
|
let value;
|
|
if (iter != null) {
|
|
value = iter.value;
|
|
}
|
|
num = 1;
|
|
if (value > 0) {
|
|
let num3;
|
|
if (iter != null) {
|
|
num3 = iter.multiplier;
|
|
}
|
|
if (num3 == null) {
|
|
num3 = 0;
|
|
}
|
|
num = num3 + 1;
|
|
}
|
|
}
|
|
importDefault(709).dispatch({ type: "POGGERMODE_UPDATE_COMBO", channelId: throwTypeErrorResult, userId: id, multiplier: num, value: 0 });
|
|
};
|