decord/source/modules/poggermode/PoggermodeActionCreators.tsx

71 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 7183
// Function ID: 7184
2026-07-20 16:05:17 +00:00
// Name: updatePoggermodeSettings
2026-08-05 07:35:12 +00:00
// Dependencies: [1218, 7032, 7184, 709, 7186, 2]
2026-07-20 16:05:17 +00:00
// Exports: clearMessageCombo, updateCombo, updateComboOnMessageSend, updatePoggermodeSettings
2026-08-05 07:35:12 +00:00
// Module 7183 (updatePoggermodeSettings)
2026-07-29 08:29:29 +00:00
import fetchFingerprint from "fetchFingerprint";
import initialize from "initialize";
import updateCombo from "updateCombo";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const result = require("updateCombo").fileFinishedImporting("modules/poggermode/PoggermodeActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const updatePoggermodeSettings = function updatePoggermodeSettings(settings) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj = { type: "POGGERMODE_SETTINGS_UPDATE", settings };
obj.dispatch(obj);
obj = {};
const merged = Object.assign(state.getState());
const merged1 = Object.assign(settings);
2026-08-05 07:35:12 +00:00
importDefault(7186)(obj);
2026-07-20 16:05:17 +00:00
};
export const updateCombo = function updateCombo(arg0) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj = { type: "POGGERMODE_UPDATE_COMBO" };
const merged = Object.assign(arg0);
obj.dispatch(obj);
};
export const clearMessageCombo = function clearMessageCombo(arg0) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
obj = { type: "POGGERMODE_UPDATE_MESSAGE_COMBO", comboMessage: null };
2026-07-20 16:05:17 +00:00
obj = {};
const merged = Object.assign(arg0);
2026-07-29 08:29:29 +00:00
obj.displayed = true;
obj[1] = obj;
2026-07-20 16:05:17 +00:00
obj.dispatch(obj);
};
2026-07-29 08:29:29 +00:00
export const updateComboOnMessageSend = function updateComboOnMessageSend(throwTypeErrorResult, id) {
2026-07-20 16:05:17 +00:00
id = id.getId();
2026-07-29 08:29:29 +00:00
const iter = userCombo.getUserCombo(id, throwTypeErrorResult);
2026-07-20 16:05:17 +00:00
if (null != iter) {
2026-07-29 08:29:29 +00:00
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;
2026-07-20 16:05:17 +00:00
obj.dispatch(obj);
}
2026-07-29 08:29:29 +00:00
let num = 1;
2026-07-20 16:05:17 +00:00
if (null != iter) {
let value;
2026-07-29 08:29:29 +00:00
if (iter != null) {
2026-07-20 16:05:17 +00:00
value = iter.value;
}
2026-07-29 08:29:29 +00:00
num = 1;
2026-07-20 16:05:17 +00:00
if (value > 0) {
2026-07-29 08:29:29 +00:00
let num3;
if (iter != null) {
num3 = iter.multiplier;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (num3 == null) {
num3 = 0;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
num = num3 + 1;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
importDefault(709).dispatch({ type: "POGGERMODE_UPDATE_COMBO", channelId: throwTypeErrorResult, userId: id, multiplier: num, value: 0 });
2026-07-20 16:05:17 +00:00
};