+
Text Color
+
+
Comment To Show: (Supports some HTML Tags)
diff --git a/actions/anchor_create_MOD.js b/actions/anchor_create_MOD.js
deleted file mode 100644
index 25fe12360..000000000
--- a/actions/anchor_create_MOD.js
+++ /dev/null
@@ -1,56 +0,0 @@
-module.exports = {
- name: 'Create Anchor',
- section: 'Other Stuff',
- meta: {
- version: '2.1.7',
- preciseCheck: false,
- author: 'DBM Mods',
- authorUrl: 'https://github.com/dbm-network/mods',
- downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/anchor_create_MOD.js',
- },
-
- subtitle(data) {
- return data.description
- ? `
${data.description} `
- : `Create ${
- data.anchor_id
- ? `the "
${data.anchor_id} " anchor at the current position!`
- : 'an anchor!'
- }`;
- },
-
- fields: ['anchor_id', 'color', 'description'],
-
- html() {
- return `
-
-
- Mod Info:
- This mod creates an anchor point for you to jump to without
- having to edit other jumps or skips.
-
-
-
- Anchor ID
-
-
-
- Anchor Color
-
-
-
`;
- },
-
- init() {},
-
- async action(cache) {
- this.callNextAction(cache);
- },
-
- mod() {},
-};
diff --git a/actions/anchor_jump_MOD.js b/actions/anchor_jump_MOD.js
deleted file mode 100644
index a4a0825d5..000000000
--- a/actions/anchor_jump_MOD.js
+++ /dev/null
@@ -1,71 +0,0 @@
-module.exports = {
- name: 'Jump to Anchor',
- section: 'Other Stuff',
- meta: {
- version: '2.1.7',
- preciseCheck: false,
- author: 'DBM Mods',
- authorUrl: 'https://github.com/dbm-network/mods',
- downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/anchor_jump_MOD.js',
- },
-
- subtitle(data) {
- return data.description
- ? `
${data.description} `
- : `Jump to ${
- data.jump_to_anchor
- ? `the "
${data.jump_to_anchor} " anchor in your command if it exists!`
- : 'an anchor!'
- }`;
- },
-
- fields: ['description', 'jump_to_anchor', 'color'],
-
- html() {
- return `
-
-
- Mod Info:
- This mod will jump to the specified anchor point
- without requiring you to edit any other skips or jumps.
- This is sensitive and must be exactly the same as your anchor name.
-
-
-
- Jump to Anchor ID
-
-
-
- Anchor Color
-
-
-
- Description
-
-
`;
- },
-
- init() {},
-
- async action(cache) {
- const id = this.evalMessage(cache.actions[cache.index].jump_to_anchor, cache);
- this.anchorJump(id, cache);
- },
-
- mod(DBM) {
- DBM.Actions.anchorJump = function anchorJump(id, cache) {
- const anchorIndex = cache.actions.findIndex((a) => a.name === 'Create Anchor' && a.anchor_id === id);
- if (anchorIndex === -1) throw new Error('There was not an anchor found with that exact anchor ID!');
- cache.index = anchorIndex - 1;
- this.callNextAction(cache);
- };
-
- DBM.Actions.anchorExist = function anchorExist(id, cache) {
- const anchorIndex = cache.actions.findIndex((a) => a.name === 'Create Anchor' && a.anchor_id === id);
- if (anchorIndex === -1) {
- return false;
- }
- return true;
- };
- },
-};
diff --git a/actions/attach_image_to_embed_MOD.js b/actions/attach_image_to_embed_MOD.js
deleted file mode 100644
index 0e07b7d78..000000000
--- a/actions/attach_image_to_embed_MOD.js
+++ /dev/null
@@ -1,74 +0,0 @@
-module.exports = {
- name: 'Attach Image To Embed',
- section: 'Embed Message',
- meta: {
- version: '2.1.7',
- preciseCheck: false,
- author: 'DBM Mods',
- authorUrl: 'https://github.com/dbm-network/mods',
- downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/attach_image_to_embed_MOD.js',
- },
-
- subtitle(data) {
- const array = ['Temp Variable', 'Server Variable', 'Global Variable'];
- return `Attach (${array[data.imagestorage - 1]} ${data.imagevarName}) to Embed (${array[data.embedstorage - 1]} ${
- data.embedvarName
- }) (${data.filename || 'image.png'})`;
- },
-
- fields: ['embedstorage', 'embedvarName', 'imagestorage', 'imagevarName', 'filename'],
-
- html() {
- return `
-
-
-
-
-
-
-
-
-
-
-
- Image File Name
-
-
-
-
-
-
`;
- },
-
- init() {},
-
- async action(cache) {
- const data = cache.actions[cache.index];
- const { Actions } = this.getDBM();
-
- const embedstorage = parseInt(data.embedstorage, 10);
- const embedvarName = this.evalMessage(data.embedvarName, cache);
- const embed = this.getVariable(embedstorage, embedvarName, cache);
-
- const imagestorage = parseInt(data.imagestorage, 10);
- const imagevarName = this.evalMessage(data.imagevarName, cache);
- const image = this.getVariable(imagestorage, imagevarName, cache);
-
- const filename = data.filename || 'image.png';
-
- const DBM = this.getDBM();
- const { Images } = DBM;
-
- Images.createBuffer(image).then((buffer) => {
- const attachment = new DBM.DiscordJS.MessageAttachment(buffer, filename);
- embed.attachFiles([attachment]);
-
- const storage = parseInt(data.storage, 10);
- const varName = Actions.evalMessage(data.varName, cache);
- Actions.storeValue(embed, storage, varName, cache);
- this.callNextAction(cache);
- });
- },
-
- mod() {},
-};
diff --git a/actions/auto_help_MOD.js b/actions/auto_help_MOD.js
index b884f9d28..facbd9427 100644
--- a/actions/auto_help_MOD.js
+++ b/actions/auto_help_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Auto Help',
section: 'Other Stuff',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
diff --git a/actions/await_reaction_call_action_MOD.js b/actions/await_reaction_call_action_MOD.js
index cb3a17595..41d8815b9 100644
--- a/actions/await_reaction_call_action_MOD.js
+++ b/actions/await_reaction_call_action_MOD.js
@@ -5,7 +5,7 @@ module.exports = {
displayName: 'Await Reaction',
section: 'Messaging',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
diff --git a/actions/await_response_call_action_MOD.js b/actions/await_response_call_action_MOD.js
index 58334e611..45192e91d 100644
--- a/actions/await_response_call_action_MOD.js
+++ b/actions/await_response_call_action_MOD.js
@@ -5,7 +5,7 @@ module.exports = {
displayName: 'Await Response',
section: 'Messaging',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
diff --git a/actions/base_convert_MOD.js b/actions/base_convert_MOD.js
index ffdc34a24..546acdb1c 100644
--- a/actions/base_convert_MOD.js
+++ b/actions/base_convert_MOD.js
@@ -1,9 +1,9 @@
module.exports = {
name: 'Base Convert MOD',
displayName: 'Base Convert',
- section: 'Other Stuff',
+ section: 'Conversions',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
diff --git a/actions/basic_math_operation_MOD.js b/actions/basic_math_operation_MOD.js
deleted file mode 100644
index 393190d25..000000000
--- a/actions/basic_math_operation_MOD.js
+++ /dev/null
@@ -1,85 +0,0 @@
-module.exports = {
- name: 'Basic Math Operation',
- section: 'Other Stuff',
- meta: {
- version: '2.1.7',
- preciseCheck: false,
- author: 'DBM Mods',
- authorUrl: 'https://github.com/dbm-network/mods',
- downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/basic_math_operation_MOD.js',
- },
-
- subtitle(data) {
- const info = ['Addition', 'Subtraction', 'Multiplication', 'Division'];
- return `${info[data.info]}`;
- },
-
- variableStorage(data, varType) {
- if (parseInt(data.storage, 10) !== varType) return;
- return [data.varName, 'Number'];
- },
-
- fields: ['FirstNumber', 'info', 'SecondNumber', 'storage', 'varName'],
-
- html() {
- return `
-
- First Number
-
-
-
-
- Math Operation
-
- Addition
- Subtraction
- Multiplication
- Division
-
-
-
- Second Number
-
-
-
-
-
-`;
- },
-
- init() {},
-
- async action(cache) {
- const data = cache.actions[cache.index];
- const FN = parseFloat(this.evalMessage(data.FirstNumber, cache).replace(/,/g, ''));
- const SN = parseFloat(this.evalMessage(data.SecondNumber, cache).replace(/,/g, ''));
- const info = parseInt(data.info, 10);
-
- let result;
- switch (info) {
- case 0:
- result = FN + SN;
- break;
- case 1:
- result = FN - SN;
- break;
- case 2:
- result = FN * SN;
- break;
- case 3:
- result = FN / SN;
- break;
- default:
- break;
- }
-
- if (result !== undefined) {
- const storage = parseInt(data.storage, 10);
- const varName = this.evalMessage(data.varName, cache);
- this.storeValue(result, storage, varName, cache);
- }
- this.callNextAction(cache);
- },
-
- mod() {},
-};
diff --git a/actions/botsfordiscord_stats_MOD.js b/actions/botsfordiscord_stats_MOD.js
index 80ac61315..cc86b675f 100644
--- a/actions/botsfordiscord_stats_MOD.js
+++ b/actions/botsfordiscord_stats_MOD.js
@@ -1,8 +1,8 @@
module.exports = {
name: 'Send Stats to BFD',
- section: 'Other Stuff',
+ section: 'Bot Stats',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
@@ -41,7 +41,9 @@ module.exports = {
const Mods = this.getMods();
const BFD = Mods.require('bfd-api');
const bfd = new BFD(token);
- bfd.postCount(this.getDBM().Bot.bot.guilds.cache.size, this.getDBM().Bot.bot.user.id);
+
+ const client = this.getDBM().Bot.bot;
+ bfd.postCount(client.guilds.cache.size, client.user.id);
this.callNextAction(cache);
},
diff --git a/actions/canvas_create_background_MOD.js b/actions/canvas_create_background_MOD.js
index 5b4781bce..5f4143915 100644
--- a/actions/canvas_create_background_MOD.js
+++ b/actions/canvas_create_background_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Canvas Create Background',
section: 'Image Editing',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
diff --git a/actions/canvas_create_image_MOD.js b/actions/canvas_create_image_MOD.js
index d20cfc01f..5a20dc2b5 100644
--- a/actions/canvas_create_image_MOD.js
+++ b/actions/canvas_create_image_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Canvas Create Image',
section: 'Image Editing',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
diff --git a/actions/canvas_crop_image_MOD.js b/actions/canvas_crop_image_MOD.js
index 68483acf0..675af0767 100644
--- a/actions/canvas_crop_image_MOD.js
+++ b/actions/canvas_crop_image_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Canvas Crop Image',
section: 'Image Editing',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
@@ -18,7 +18,7 @@ module.exports = {
html() {
return `
-
+
@@ -93,7 +93,6 @@ module.exports = {
}
};
- glob.refreshVariableList(document.getElementById('storage'));
glob.onChange0(document.getElementById('align'));
},
diff --git a/actions/canvas_draw_image_MOD.js b/actions/canvas_draw_image_MOD.js
index 75c918583..ff72b2fbd 100644
--- a/actions/canvas_draw_image_MOD.js
+++ b/actions/canvas_draw_image_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Canvas Draw Image on Image',
section: 'Image Editing',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
@@ -20,7 +20,7 @@ module.exports = {
html() {
return `
-
+
@@ -48,11 +48,7 @@ module.exports = {
`;
},
- init() {
- const { glob, document } = this;
-
- glob.refreshVariableList(document.getElementById('storage'));
- },
+ init() {},
async action(cache) {
const Canvas = require('canvas');
diff --git a/actions/canvas_draw_text_MOD.js b/actions/canvas_draw_text_MOD.js
index a8f400550..e82592ada 100644
--- a/actions/canvas_draw_text_MOD.js
+++ b/actions/canvas_draw_text_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Canvas Draw Text on Image',
section: 'Image Editing',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
@@ -17,7 +17,7 @@ module.exports = {
html() {
return `
-
+
@@ -56,11 +56,7 @@ module.exports = {
`;
},
- init() {
- const { glob, document } = this;
-
- glob.refreshVariableList(document.getElementById('storage'));
- },
+ init() {},
async action(cache) {
const Canvas = require('canvas');
diff --git a/actions/canvas_edit_image_border_MOD.js b/actions/canvas_edit_image_border_MOD.js
index 74f5841a0..4c8a0cab8 100644
--- a/actions/canvas_edit_image_border_MOD.js
+++ b/actions/canvas_edit_image_border_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Canvas Edit Image Border',
section: 'Image Editing',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
@@ -18,7 +18,7 @@ module.exports = {
html() {
return `
-
+
@@ -36,11 +36,7 @@ module.exports = {
`;
},
- init() {
- const { glob, document } = this;
-
- glob.refreshVariableList(document.getElementById('storage'));
- },
+ init() {},
async action(cache) {
const Canvas = require('canvas');
diff --git a/actions/canvas_generate_progress_bar_MOD.js b/actions/canvas_generate_progress_bar_MOD.js
index c7971ba13..6d75f03db 100644
--- a/actions/canvas_generate_progress_bar_MOD.js
+++ b/actions/canvas_generate_progress_bar_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Canvas Generate Progress Bar',
section: 'Image Editing',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
@@ -33,7 +33,9 @@ module.exports = {
Circle