From 767138a4a8233a52e3c9a0949495f63c3c0566e0 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Thu, 1 Jun 2023 22:15:25 -0500
Subject: [PATCH 01/62] Initial commit - Change version to 2.2.0
---
actions/aaa_dbmmods_dependencies_MOD.js | 2 +-
actions/action_list_comment_MOD.js | 2 +-
actions/anchor_create_MOD.js | 2 +-
actions/anchor_jump_MOD.js | 2 +-
actions/attach_image_to_embed_MOD.js | 2 +-
actions/auto_help_MOD.js | 2 +-
actions/await_reaction_call_action_MOD.js | 2 +-
actions/await_response_call_action_MOD.js | 2 +-
actions/base_convert_MOD.js | 2 +-
actions/basic_math_operation_MOD.js | 2 +-
actions/botsfordiscord_stats_MOD.js | 2 +-
actions/canvas_create_background_MOD.js | 2 +-
actions/canvas_create_image_MOD.js | 2 +-
actions/canvas_crop_image_MOD.js | 2 +-
actions/canvas_draw_image_MOD.js | 2 +-
actions/canvas_draw_text_MOD.js | 2 +-
actions/canvas_edit_image_border_MOD.js | 2 +-
actions/canvas_generate_progress_bar_MOD.js | 2 +-
actions/canvas_image_filter_MOD.js | 2 +-
actions/canvas_image_options_MOD.js | 2 +-
actions/canvas_save_image_MOD.js | 2 +-
actions/canvas_send_image_MOD.js | 2 +-
actions/change_prefix_MOD.js | 2 +-
actions/check_dbl_voted_MOD.js | 2 +-
actions/check_global_data_MOD.js | 2 +-
actions/check_if_command_exists_MOD.js | 2 +-
actions/check_if_emoji_exists_MOD.js | 2 +-
actions/check_if_file_exists_MOD.js | 2 +-
actions/check_if_member_MOD.js | 2 +-
actions/check_if_message_MOD.js | 2 +-
actions/check_if_user_reacted_MOD.js | 2 +-
actions/check_permissions_MOD.js | 2 +-
actions/check_role_permissions_MOD.js | 2 +-
actions/cleverbot_MOD.js | 2 +-
actions/clone_channel_MOD.js | 2 +-
actions/color_from_image_MOD.js | 2 +-
actions/color_tool_MOD.js | 2 +-
actions/compare_permissions_MOD.js | 2 +-
actions/control_global_data_MOD.js | 2 +-
actions/control_music_MOD.js | 2 +-
actions/control_permissons_MOD.js | 2 +-
actions/control_server_prefix_MOD.js | 2 +-
actions/convert_seconds_to_days_MOD.js | 2 +-
actions/convert_text_to_list_MOD.js | 2 +-
actions/convert_timestamp_to_date_MOD.js | 2 +-
actions/convert_to_base64_MOD.js | 2 +-
actions/convert_to_morse_code_MOD.js | 2 +-
actions/convert_to_world_time_MOD.js | 2 +-
actions/convert_variable_MOD.js | 2 +-
actions/create_animated_emoji_MOD.js | 2 +-
actions/create_category_MOD.js | 2 +-
actions/create_gif_MOD.js | 2 +-
actions/create_permission_MOD.js | 2 +-
actions/create_server_MOD.js | 2 +-
actions/create_webhook_MOD.js | 2 +-
actions/crosspost_message_MOD.js | 2 +-
actions/custom_image_effects_MOD.js | 2 +-
actions/default_variable_MOD.js | 2 +-
actions/delete_global_data_MOD.js | 2 +-
actions/delete_invite_MOD.js | 2 +-
actions/delete_member_data_MOD.js | 2 +-
actions/delete_server_MOD.js | 2 +-
actions/delete_server_data_MOD.js | 2 +-
actions/delete_webhook_MOD.js | 2 +-
actions/description_MOD.js | 2 +-
actions/download_file_MOD.js | 2 +-
actions/edit_embed_object_MOD.js | 2 +-
actions/edit_emoji_MOD.js | 2 +-
actions/edit_item_from_list_MOD.js | 2 +-
actions/edit_webhook_MOD.js | 2 +-
actions/emit_event_MOD.js | 2 +-
actions/file_control_MOD.js | 2 +-
actions/filter_list_or_object_MOD.js | 2 +-
actions/find_category_MOD.js | 2 +-
actions/find_emoji_in_msg_server_MOD.js | 2 +-
actions/find_invite_MOD.js | 2 +-
actions/find_item_in_list_MOD.js | 2 +-
actions/find_message_MOD.js | 2 +-
actions/find_reaction_MOD.js | 2 +-
actions/find_text_MOD.js | 2 +-
actions/find_webhook_MOD.js | 2 +-
actions/game_server_MOD.js | 2 +-
actions/generate_random_emoji_MOD.js | 2 +-
actions/generate_random_hex_MOD.js | 2 +-
actions/generate_random_word_MOD.js | 2 +-
actions/get_command_description_MOD.js | 2 +-
actions/get_lyrics_MOD.js | 2 +-
actions/get_stats_from_dbl_MOD.js | 2 +-
actions/get_stats_from_dbxyz_MOD.js | 2 +-
actions/google_image_search_MOD.js | 2 +-
actions/google_search_MOD.js | 2 +-
actions/inspect_list_or_object_MOD.js | 2 +-
actions/jump_to_action_MOD.js | 2 +-
actions/leave_server_MOD.js | 2 +-
actions/local_database_MOD.js | 2 +-
actions/loop_through_folder_MOD.js | 2 +-
actions/math_operation_plus_MOD.js | 2 +-
actions/member_data_list_MOD.js | 2 +-
actions/merge_lists_MOD.js | 2 +-
actions/mod_info_MOD.js | 2 +-
actions/mod_info_license_MOD.js | 2 +-
actions/parse_from_stored_json_MOD.js | 2 +-
actions/parse_from_stored_webpage_MOD.js | 2 +-
actions/play_music_MOD.js | 2 +-
actions/play_youtube_playlist_MOD.js | 2 +-
actions/push_webhook_MOD.js | 2 +-
actions/randomize_letters_MOD.js | 2 +-
actions/read_file_MOD.js | 2 +-
actions/remove_from_queue_MOD.js | 2 +-
actions/remove_message_reactions_MOD.js | 2 +-
actions/remove_reaction_MOD.js | 2 +-
actions/repeat_string_MOD.js | 2 +-
actions/replace_text_MOD.js | 2 +-
actions/restart_bot_MOD.js | 2 +-
actions/revise_MOD.js | 2 +-
actions/run_action_sequence_once_MOD.js | 2 +-
actions/run_command_in_console_MOD.js | 2 +-
actions/run_script_too_MOD.js | 2 +-
actions/run_sql_query_MOD.js | 2 +-
actions/send_embed_to_webhook_MOD.js | 2 +-
actions/send_file_to_webhook_MOD.js | 2 +-
actions/send_gif_MOD.js | 2 +-
actions/send_json_to_webapi_MOD.js | 2 +-
actions/send_mail_MOD.js | 2 +-
actions/send_message_to_console_MOD.js | 2 +-
actions/send_message_to_twitch_chat_MOD.js | 2 +-
actions/send_stats_to_botlist.me_MOD.js | 2 +-
actions/send_stats_to_dbl_MOD.js | 2 +-
actions/set_afk_channel_MOD.js | 2 +-
actions/set_afk_timeout_MOD.js | 2 +-
actions/set_member_voice_channel_perms_MOD.js | 2 +-
actions/set_music_repeat_mode_MOD.js | 2 +-
actions/set_permissions_MOD.js | 2 +-
actions/set_role_perms_MOD.js | 2 +-
actions/set_role_voice_channel_perms_MOD.js | 2 +-
actions/set_server_owner_MOD.js | 2 +-
actions/set_slowmode_MOD.js | 2 +-
actions/set_time_restriction_MOD.js | 2 +-
actions/set_voice_channel_permissions_MOD.js | 2 +-
actions/skip_actions_MOD.js | 2 +-
actions/slice_MOD.js | 2 +-
actions/speed_test_MOD.js | 2 +-
actions/split_MOD.js | 2 +-
actions/spotify_search_MOD.js | 2 +-
actions/spreadsheet_MOD.js | 2 +-
actions/start_rss_feed_MOD.js | 2 +-
actions/stop_bot_MOD.js | 2 +-
actions/stop_rss_feed_MOD.js | 2 +-
actions/store_attachment_info_MOD.js | 2 +-
actions/store_audit_log_info_MOD.js | 2 +-
actions/store_audit_log_list_MOD.js | 2 +-
actions/store_bot_client_info_MOD.js | 2 +-
actions/store_category_info_MOD.js | 2 +-
actions/store_channel_permissions_MOD.js | 2 +-
actions/store_command_info_MOD.js | 2 +-
actions/store_data_list_MOD.js | 2 +-
actions/store_date_info_plus_MOD.js | 2 +-
actions/store_embed_info_MOD.js | 2 +-
actions/store_emoji_info_MOD.js | 2 +-
actions/store_file_info_MOD.js | 2 +-
actions/store_game_info_MOD.js | 2 +-
actions/store_global_data_MOD.js | 2 +-
actions/store_html_from_webpage_MOD.js | 2 +-
actions/store_invite_info_MOD.js | 2 +-
actions/store_json_from_webapi_MOD.js | 2 +-
actions/store_message_params_MOD.js | 2 +-
actions/store_permissions_Info_MOD.js | 2 +-
actions/store_playlist_info_MOD.js | 2 +-
actions/store_queue_info_MOD.js | 2 +-
actions/store_reaction_info_MOD.js | 2 +-
actions/store_regex_matched_variable_MOD.js | 2 +-
actions/store_shard_info_MOD.js | 2 +-
actions/store_twitch_info_MOD.js | 2 +-
actions/store_user_info_MOD.js | 2 +-
actions/store_utc_time_info_MOD.js | 2 +-
actions/store_webhook_info_MOD.js | 2 +-
actions/store_youtube_channel_info_MOD.js | 2 +-
actions/sync_channel_permissions_MOD.js | 2 +-
actions/text_to_speech_MOD.js | 2 +-
actions/transcript_MOD.js | 2 +-
actions/translate_MOD.js | 2 +-
actions/twitch_authentication_MOD.js | 2 +-
actions/typing_MOD.js | 2 +-
actions/un_pin_message_MOD.js | 2 +-
actions/urban_dictionary_MOD.js | 2 +-
actions/variable_pattern_MOD.js | 2 +-
actions/weather_MOD.js | 2 +-
actions/youtube_info_MOD.js | 2 +-
actions/youtube_search_MOD.js | 2 +-
create_forum_channel_MOD.js | 2 +-
190 files changed, 190 insertions(+), 190 deletions(-)
diff --git a/actions/aaa_dbmmods_dependencies_MOD.js b/actions/aaa_dbmmods_dependencies_MOD.js
index 0c074be9..51da9c7a 100644
--- a/actions/aaa_dbmmods_dependencies_MOD.js
+++ b/actions/aaa_dbmmods_dependencies_MOD.js
@@ -196,7 +196,7 @@ module.exports = {
displayName: 'Dependencies',
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/action_list_comment_MOD.js b/actions/action_list_comment_MOD.js
index 678721ac..40e47cb4 100644
--- a/actions/action_list_comment_MOD.js
+++ b/actions/action_list_comment_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Comment',
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/anchor_create_MOD.js b/actions/anchor_create_MOD.js
index 25fe1236..5d860efb 100644
--- a/actions/anchor_create_MOD.js
+++ b/actions/anchor_create_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Create Anchor',
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/anchor_jump_MOD.js b/actions/anchor_jump_MOD.js
index a4a0825d..4a87cd9c 100644
--- a/actions/anchor_jump_MOD.js
+++ b/actions/anchor_jump_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Jump to Anchor',
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/attach_image_to_embed_MOD.js b/actions/attach_image_to_embed_MOD.js
index 0e07b7d7..1afc0de4 100644
--- a/actions/attach_image_to_embed_MOD.js
+++ b/actions/attach_image_to_embed_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Attach Image To Embed',
section: 'Embed Message',
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/auto_help_MOD.js b/actions/auto_help_MOD.js
index b884f9d2..facbd942 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 cb3a1759..41d8815b 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 58334e61..45192e91 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 ffdc34a2..b6f38c6b 100644
--- a/actions/base_convert_MOD.js
+++ b/actions/base_convert_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Base Convert',
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/basic_math_operation_MOD.js b/actions/basic_math_operation_MOD.js
index 393190d2..81f421bd 100644
--- a/actions/basic_math_operation_MOD.js
+++ b/actions/basic_math_operation_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Basic Math Operation',
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/botsfordiscord_stats_MOD.js b/actions/botsfordiscord_stats_MOD.js
index 80ac6131..0520d5d9 100644
--- a/actions/botsfordiscord_stats_MOD.js
+++ b/actions/botsfordiscord_stats_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Send Stats to BFD',
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/canvas_create_background_MOD.js b/actions/canvas_create_background_MOD.js
index 5b4781bc..5f414391 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 d20cfc01..5a20dc2b 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 68483acf..00124c95 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',
diff --git a/actions/canvas_draw_image_MOD.js b/actions/canvas_draw_image_MOD.js
index 75c91858..46cf8b6f 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',
diff --git a/actions/canvas_draw_text_MOD.js b/actions/canvas_draw_text_MOD.js
index a8f40055..75f623c5 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',
diff --git a/actions/canvas_edit_image_border_MOD.js b/actions/canvas_edit_image_border_MOD.js
index 74f5841a..c0e152d2 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',
diff --git a/actions/canvas_generate_progress_bar_MOD.js b/actions/canvas_generate_progress_bar_MOD.js
index c7971ba1..777a316c 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',
diff --git a/actions/canvas_image_filter_MOD.js b/actions/canvas_image_filter_MOD.js
index 80aa12d3..1417797a 100644
--- a/actions/canvas_image_filter_MOD.js
+++ b/actions/canvas_image_filter_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Canvas Image Filter',
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_image_options_MOD.js b/actions/canvas_image_options_MOD.js
index bd41c052..ace82d85 100644
--- a/actions/canvas_image_options_MOD.js
+++ b/actions/canvas_image_options_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Canvas Image Options',
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_save_image_MOD.js b/actions/canvas_save_image_MOD.js
index bb3ab1ce..0a5fe58b 100644
--- a/actions/canvas_save_image_MOD.js
+++ b/actions/canvas_save_image_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Canvas Save 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_send_image_MOD.js b/actions/canvas_send_image_MOD.js
index 14ea2733..5daa066a 100644
--- a/actions/canvas_send_image_MOD.js
+++ b/actions/canvas_send_image_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Canvas Send 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/change_prefix_MOD.js b/actions/change_prefix_MOD.js
index 01dbac7d..8d763718 100644
--- a/actions/change_prefix_MOD.js
+++ b/actions/change_prefix_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Change Global Prefix',
section: 'Bot Client Control',
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/check_dbl_voted_MOD.js b/actions/check_dbl_voted_MOD.js
index 099aa37f..8d76f110 100644
--- a/actions/check_dbl_voted_MOD.js
+++ b/actions/check_dbl_voted_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayname: 'Check TopGG Voted',
section: 'Conditions',
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/check_global_data_MOD.js b/actions/check_global_data_MOD.js
index ac225790..81e1e9b1 100644
--- a/actions/check_global_data_MOD.js
+++ b/actions/check_global_data_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Check Global Data',
section: 'Data',
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/check_if_command_exists_MOD.js b/actions/check_if_command_exists_MOD.js
index f38a1b4e..e9ed897c 100644
--- a/actions/check_if_command_exists_MOD.js
+++ b/actions/check_if_command_exists_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Check If Command Exists',
section: 'Conditions',
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/check_if_emoji_exists_MOD.js b/actions/check_if_emoji_exists_MOD.js
index f7113981..b1eb17f4 100644
--- a/actions/check_if_emoji_exists_MOD.js
+++ b/actions/check_if_emoji_exists_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Check if Emoji Exists',
section: 'Conditions',
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/check_if_file_exists_MOD.js b/actions/check_if_file_exists_MOD.js
index e41ed01d..072f8070 100644
--- a/actions/check_if_file_exists_MOD.js
+++ b/actions/check_if_file_exists_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Check if File Exists',
section: 'File 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/check_if_member_MOD.js b/actions/check_if_member_MOD.js
index 38809999..d29a7429 100644
--- a/actions/check_if_member_MOD.js
+++ b/actions/check_if_member_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Check If Member',
section: 'Conditions',
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/check_if_message_MOD.js b/actions/check_if_message_MOD.js
index cc989644..a6444a04 100644
--- a/actions/check_if_message_MOD.js
+++ b/actions/check_if_message_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Check If Message',
section: 'Conditions',
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/check_if_user_reacted_MOD.js b/actions/check_if_user_reacted_MOD.js
index ed44f655..c502611a 100644
--- a/actions/check_if_user_reacted_MOD.js
+++ b/actions/check_if_user_reacted_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Check If User Reacted',
section: 'Conditions',
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/check_permissions_MOD.js b/actions/check_permissions_MOD.js
index 5c0beac3..6ba40903 100644
--- a/actions/check_permissions_MOD.js
+++ b/actions/check_permissions_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Check Permissions',
section: 'Permission Control',
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/check_role_permissions_MOD.js b/actions/check_role_permissions_MOD.js
index d88730a0..cf78e5d4 100644
--- a/actions/check_role_permissions_MOD.js
+++ b/actions/check_role_permissions_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Check Role Permissions',
section: 'Conditions',
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/cleverbot_MOD.js b/actions/cleverbot_MOD.js
index f748cf53..58f7bd2c 100644
--- a/actions/cleverbot_MOD.js
+++ b/actions/cleverbot_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Cleverbot',
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/clone_channel_MOD.js b/actions/clone_channel_MOD.js
index 6ca50e6c..97c6f8f0 100644
--- a/actions/clone_channel_MOD.js
+++ b/actions/clone_channel_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Clone Channel',
section: 'Channel Control',
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/color_from_image_MOD.js b/actions/color_from_image_MOD.js
index f534a325..db70ef8d 100644
--- a/actions/color_from_image_MOD.js
+++ b/actions/color_from_image_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Get Dominant Color',
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/color_tool_MOD.js b/actions/color_tool_MOD.js
index fabc2d4e..0e5faddb 100644
--- a/actions/color_tool_MOD.js
+++ b/actions/color_tool_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Color',
section: 'Tools',
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/compare_permissions_MOD.js b/actions/compare_permissions_MOD.js
index 0a1a5d16..e4c96eaa 100644
--- a/actions/compare_permissions_MOD.js
+++ b/actions/compare_permissions_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
section: 'Permission Control',
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/control_global_data_MOD.js b/actions/control_global_data_MOD.js
index 2b880cd0..b3c33c36 100644
--- a/actions/control_global_data_MOD.js
+++ b/actions/control_global_data_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Control Global Data',
section: 'Data',
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/control_music_MOD.js b/actions/control_music_MOD.js
index 9a5000f8..2f72ad8e 100644
--- a/actions/control_music_MOD.js
+++ b/actions/control_music_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Control Music',
section: 'Audio Control',
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/control_permissons_MOD.js b/actions/control_permissons_MOD.js
index 05ec9c52..82ca483b 100644
--- a/actions/control_permissons_MOD.js
+++ b/actions/control_permissons_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Control Permissions',
section: 'Permission Control',
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/control_server_prefix_MOD.js b/actions/control_server_prefix_MOD.js
index eec4b406..3a2dc455 100644
--- a/actions/control_server_prefix_MOD.js
+++ b/actions/control_server_prefix_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Control Server Prefix',
section: 'Server Control',
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/convert_seconds_to_days_MOD.js b/actions/convert_seconds_to_days_MOD.js
index 13a69467..66577bca 100644
--- a/actions/convert_seconds_to_days_MOD.js
+++ b/actions/convert_seconds_to_days_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Convert Seconds To D/H/M/S',
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/convert_text_to_list_MOD.js b/actions/convert_text_to_list_MOD.js
index c0702660..b35c4c96 100644
--- a/actions/convert_text_to_list_MOD.js
+++ b/actions/convert_text_to_list_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Convert Text to List',
section: 'Lists and Loops',
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/convert_timestamp_to_date_MOD.js b/actions/convert_timestamp_to_date_MOD.js
index 8714a46e..e1c7174a 100644
--- a/actions/convert_timestamp_to_date_MOD.js
+++ b/actions/convert_timestamp_to_date_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Convert Timestamp to Date',
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/convert_to_base64_MOD.js b/actions/convert_to_base64_MOD.js
index dd3dc7e4..32eb9069 100644
--- a/actions/convert_to_base64_MOD.js
+++ b/actions/convert_to_base64_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Convert to Base64',
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/convert_to_morse_code_MOD.js b/actions/convert_to_morse_code_MOD.js
index 80e2f35f..20133636 100644
--- a/actions/convert_to_morse_code_MOD.js
+++ b/actions/convert_to_morse_code_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Morse Code',
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/convert_to_world_time_MOD.js b/actions/convert_to_world_time_MOD.js
index 9eac3b0a..486fa416 100644
--- a/actions/convert_to_world_time_MOD.js
+++ b/actions/convert_to_world_time_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Convert To World Time',
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/convert_variable_MOD.js b/actions/convert_variable_MOD.js
index 8f00514d..90fe9d82 100644
--- a/actions/convert_variable_MOD.js
+++ b/actions/convert_variable_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Convert Variable',
section: 'Variable Things',
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/create_animated_emoji_MOD.js b/actions/create_animated_emoji_MOD.js
index 9a1b4fca..4d1eafbb 100644
--- a/actions/create_animated_emoji_MOD.js
+++ b/actions/create_animated_emoji_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Create Animated Emoji',
section: 'Emoji Control',
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/create_category_MOD.js b/actions/create_category_MOD.js
index e69bee6b..210f8dfb 100644
--- a/actions/create_category_MOD.js
+++ b/actions/create_category_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Create Category Channel',
section: 'Channel Control',
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/create_gif_MOD.js b/actions/create_gif_MOD.js
index 48194180..e2a64199 100644
--- a/actions/create_gif_MOD.js
+++ b/actions/create_gif_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Create GIF',
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/create_permission_MOD.js b/actions/create_permission_MOD.js
index 974ecc1b..51e28ed0 100644
--- a/actions/create_permission_MOD.js
+++ b/actions/create_permission_MOD.js
@@ -4,7 +4,7 @@ module.exports = {
name: 'Create Permissions',
section: 'Permission Control',
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/create_server_MOD.js b/actions/create_server_MOD.js
index 25440db0..a0bbb19f 100644
--- a/actions/create_server_MOD.js
+++ b/actions/create_server_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Create Server',
section: 'Server Control',
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/create_webhook_MOD.js b/actions/create_webhook_MOD.js
index 0b7574a5..0693d4fc 100644
--- a/actions/create_webhook_MOD.js
+++ b/actions/create_webhook_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Create Webhook',
section: 'Webhook Control',
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/crosspost_message_MOD.js b/actions/crosspost_message_MOD.js
index 35e78e0a..9e7f6174 100644
--- a/actions/crosspost_message_MOD.js
+++ b/actions/crosspost_message_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Crosspost Message',
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/custom_image_effects_MOD.js b/actions/custom_image_effects_MOD.js
index c6da433e..2f6717b2 100644
--- a/actions/custom_image_effects_MOD.js
+++ b/actions/custom_image_effects_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Custom Image Effects',
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/default_variable_MOD.js b/actions/default_variable_MOD.js
index 760e7254..da928e5a 100644
--- a/actions/default_variable_MOD.js
+++ b/actions/default_variable_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
section: 'Variable Things',
fields: ['storage', 'varName', 'mode', 'defaultTo'],
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/delete_global_data_MOD.js b/actions/delete_global_data_MOD.js
index c6051ecd..b94c5550 100644
--- a/actions/delete_global_data_MOD.js
+++ b/actions/delete_global_data_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Delete Global Data',
section: 'Data',
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/delete_invite_MOD.js b/actions/delete_invite_MOD.js
index 8a03c539..087d7322 100644
--- a/actions/delete_invite_MOD.js
+++ b/actions/delete_invite_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Delete Invite',
section: 'Invite Control',
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/delete_member_data_MOD.js b/actions/delete_member_data_MOD.js
index c98081d8..8925cc14 100644
--- a/actions/delete_member_data_MOD.js
+++ b/actions/delete_member_data_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Delete Member Data',
section: 'Data',
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/delete_server_MOD.js b/actions/delete_server_MOD.js
index 9795778d..363da38c 100644
--- a/actions/delete_server_MOD.js
+++ b/actions/delete_server_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Delete Server',
section: 'Server Control',
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/delete_server_data_MOD.js b/actions/delete_server_data_MOD.js
index 8d4d7a95..8bf4f7df 100644
--- a/actions/delete_server_data_MOD.js
+++ b/actions/delete_server_data_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Delete Server Data',
section: 'Data',
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/delete_webhook_MOD.js b/actions/delete_webhook_MOD.js
index 50e04424..b90342bc 100644
--- a/actions/delete_webhook_MOD.js
+++ b/actions/delete_webhook_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
name: 'Delete Webhook',
section: 'Webhook Control',
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/description_MOD.js b/actions/description_MOD.js
index f64a6502..d0dcaa90 100644
--- a/actions/description_MOD.js
+++ b/actions/description_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Command Description',
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/download_file_MOD.js b/actions/download_file_MOD.js
index 71eccc76..53499c7d 100644
--- a/actions/download_file_MOD.js
+++ b/actions/download_file_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Download File',
section: 'File 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/edit_embed_object_MOD.js b/actions/edit_embed_object_MOD.js
index 6ef0c455..709112a4 100644
--- a/actions/edit_embed_object_MOD.js
+++ b/actions/edit_embed_object_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Edit Embed Object',
section: 'Embed Message',
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/edit_emoji_MOD.js b/actions/edit_emoji_MOD.js
index a57bfa28..a7fb1d84 100644
--- a/actions/edit_emoji_MOD.js
+++ b/actions/edit_emoji_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Edit Emoji',
section: 'Emoji Control',
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/edit_item_from_list_MOD.js b/actions/edit_item_from_list_MOD.js
index 2b2d3123..5f7c0f20 100644
--- a/actions/edit_item_from_list_MOD.js
+++ b/actions/edit_item_from_list_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Edit Item from List',
section: 'Lists and Loops',
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/edit_webhook_MOD.js b/actions/edit_webhook_MOD.js
index 01a66a16..6b3bd094 100644
--- a/actions/edit_webhook_MOD.js
+++ b/actions/edit_webhook_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Edit Webhook',
section: 'Webhook Control',
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/emit_event_MOD.js b/actions/emit_event_MOD.js
index bc135910..67b57bd8 100644
--- a/actions/emit_event_MOD.js
+++ b/actions/emit_event_MOD.js
@@ -4,7 +4,7 @@ module.exports = {
section: 'Bot Client Control',
fields: ['eventType', 'firstArg', 'secondArg'],
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/file_control_MOD.js b/actions/file_control_MOD.js
index 81ebf780..133d89bd 100644
--- a/actions/file_control_MOD.js
+++ b/actions/file_control_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
section: 'File Stuff',
fields: ['input', 'format', 'filename', 'filepath', 'filepath2', 'filetask', 'input2', 'togglestatus'],
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/filter_list_or_object_MOD.js b/actions/filter_list_or_object_MOD.js
index 8e867faf..652a8dcf 100644
--- a/actions/filter_list_or_object_MOD.js
+++ b/actions/filter_list_or_object_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Filter List or Object',
section: 'Lists and Loops',
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/find_category_MOD.js b/actions/find_category_MOD.js
index 4294f26e..42a603c5 100644
--- a/actions/find_category_MOD.js
+++ b/actions/find_category_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Find Category',
section: 'Channel Control',
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/find_emoji_in_msg_server_MOD.js b/actions/find_emoji_in_msg_server_MOD.js
index 04c91c50..1b005c5e 100644
--- a/actions/find_emoji_in_msg_server_MOD.js
+++ b/actions/find_emoji_in_msg_server_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Find Custom Emoji/Sticker in Server',
section: 'Emoji Control',
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/find_invite_MOD.js b/actions/find_invite_MOD.js
index e41bb661..5795d8a4 100644
--- a/actions/find_invite_MOD.js
+++ b/actions/find_invite_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Find Invite',
section: 'Invite Control',
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/find_item_in_list_MOD.js b/actions/find_item_in_list_MOD.js
index ca75ee3e..b1b077fd 100644
--- a/actions/find_item_in_list_MOD.js
+++ b/actions/find_item_in_list_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Find Item in List',
section: 'Lists and Loops',
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/find_message_MOD.js b/actions/find_message_MOD.js
index 294f1c5e..86a2550d 100644
--- a/actions/find_message_MOD.js
+++ b/actions/find_message_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Find Message',
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/find_reaction_MOD.js b/actions/find_reaction_MOD.js
index 8499bea3..bd6ae3d7 100644
--- a/actions/find_reaction_MOD.js
+++ b/actions/find_reaction_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Find Reaction',
section: 'Reaction Control',
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/find_text_MOD.js b/actions/find_text_MOD.js
index 7235d0c9..d0be29f3 100644
--- a/actions/find_text_MOD.js
+++ b/actions/find_text_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Find Text',
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/find_webhook_MOD.js b/actions/find_webhook_MOD.js
index 40583e76..44e222ee 100644
--- a/actions/find_webhook_MOD.js
+++ b/actions/find_webhook_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Find Webhook',
section: 'Webhook Control',
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/game_server_MOD.js b/actions/game_server_MOD.js
index 9fe10649..f634094c 100644
--- a/actions/game_server_MOD.js
+++ b/actions/game_server_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Game Server Info',
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/generate_random_emoji_MOD.js b/actions/generate_random_emoji_MOD.js
index d1b53089..befcd558 100644
--- a/actions/generate_random_emoji_MOD.js
+++ b/actions/generate_random_emoji_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Generate Random Emoji',
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/generate_random_hex_MOD.js b/actions/generate_random_hex_MOD.js
index e76606c4..cd9307d9 100644
--- a/actions/generate_random_hex_MOD.js
+++ b/actions/generate_random_hex_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Generate Random Hex Color',
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/generate_random_word_MOD.js b/actions/generate_random_word_MOD.js
index 941b0c5a..aba3184b 100644
--- a/actions/generate_random_word_MOD.js
+++ b/actions/generate_random_word_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Generate Random Word(s)',
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/get_command_description_MOD.js b/actions/get_command_description_MOD.js
index 8813b5c0..c4d9a679 100644
--- a/actions/get_command_description_MOD.js
+++ b/actions/get_command_description_MOD.js
@@ -4,7 +4,7 @@ module.exports = {
section: 'Other Stuff',
fields: ['findBy', 'commandData', 'saveTo', 'varName'],
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/get_lyrics_MOD.js b/actions/get_lyrics_MOD.js
index 6a7e6a91..d3227eba 100644
--- a/actions/get_lyrics_MOD.js
+++ b/actions/get_lyrics_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Get Song Lyrics',
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/get_stats_from_dbl_MOD.js b/actions/get_stats_from_dbl_MOD.js
index b8f2a0eb..ecf9874d 100644
--- a/actions/get_stats_from_dbl_MOD.js
+++ b/actions/get_stats_from_dbl_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Get Bot Stats From TopGG',
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/get_stats_from_dbxyz_MOD.js b/actions/get_stats_from_dbxyz_MOD.js
index d985ee53..7a0257a0 100644
--- a/actions/get_stats_from_dbxyz_MOD.js
+++ b/actions/get_stats_from_dbxyz_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Get Bot Stats From Discord Boats',
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/google_image_search_MOD.js b/actions/google_image_search_MOD.js
index c07e79d2..bbe7d82b 100644
--- a/actions/google_image_search_MOD.js
+++ b/actions/google_image_search_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Google Image Search',
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/google_search_MOD.js b/actions/google_search_MOD.js
index e1b9011d..b16824bf 100644
--- a/actions/google_search_MOD.js
+++ b/actions/google_search_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Google Search',
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/inspect_list_or_object_MOD.js b/actions/inspect_list_or_object_MOD.js
index 1a6c2469..7fac57b4 100644
--- a/actions/inspect_list_or_object_MOD.js
+++ b/actions/inspect_list_or_object_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Inspect List/Object',
section: 'Lists and Loops',
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/jump_to_action_MOD.js b/actions/jump_to_action_MOD.js
index b2488c20..b1ba06e5 100644
--- a/actions/jump_to_action_MOD.js
+++ b/actions/jump_to_action_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Jump to Action',
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/leave_server_MOD.js b/actions/leave_server_MOD.js
index 24b84276..453db04a 100644
--- a/actions/leave_server_MOD.js
+++ b/actions/leave_server_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Leave Server',
section: 'Bot Client Control',
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/local_database_MOD.js b/actions/local_database_MOD.js
index 74ea915e..2150e278 100644
--- a/actions/local_database_MOD.js
+++ b/actions/local_database_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Local Database',
section: 'Database',
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/loop_through_folder_MOD.js b/actions/loop_through_folder_MOD.js
index a78a5f9f..5c63c790 100644
--- a/actions/loop_through_folder_MOD.js
+++ b/actions/loop_through_folder_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Loop through Folder',
section: 'Lists and Loops',
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/math_operation_plus_MOD.js b/actions/math_operation_plus_MOD.js
index b68a4298..b864fa02 100644
--- a/actions/math_operation_plus_MOD.js
+++ b/actions/math_operation_plus_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Math Operation Plus',
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/member_data_list_MOD.js b/actions/member_data_list_MOD.js
index e2627cf0..93d66167 100644
--- a/actions/member_data_list_MOD.js
+++ b/actions/member_data_list_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Member Data List',
section: 'Member Control',
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/merge_lists_MOD.js b/actions/merge_lists_MOD.js
index 0b950f89..f2c432fc 100644
--- a/actions/merge_lists_MOD.js
+++ b/actions/merge_lists_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Merge Lists',
section: 'Lists and Loops',
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/mod_info_MOD.js b/actions/mod_info_MOD.js
index 61e8825a..4b72f10d 100644
--- a/actions/mod_info_MOD.js
+++ b/actions/mod_info_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
section: '#DBM Mods',
version: '1.9.8',
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/mod_info_license_MOD.js b/actions/mod_info_license_MOD.js
index 0dba2434..bf8fe602 100644
--- a/actions/mod_info_license_MOD.js
+++ b/actions/mod_info_license_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'License',
section: '#DBM Mods',
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/parse_from_stored_json_MOD.js b/actions/parse_from_stored_json_MOD.js
index 12c1e7b1..f6673515 100644
--- a/actions/parse_from_stored_json_MOD.js
+++ b/actions/parse_from_stored_json_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Parse From Stored Json',
section: 'JSON Things',
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/parse_from_stored_webpage_MOD.js b/actions/parse_from_stored_webpage_MOD.js
index c5cda738..a9aace60 100644
--- a/actions/parse_from_stored_webpage_MOD.js
+++ b/actions/parse_from_stored_webpage_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Parse From Stored Webpage',
section: 'HTML/XML Things',
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/play_music_MOD.js b/actions/play_music_MOD.js
index c65994c2..e99e1a1b 100644
--- a/actions/play_music_MOD.js
+++ b/actions/play_music_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Play Music',
section: 'Audio Control',
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/play_youtube_playlist_MOD.js b/actions/play_youtube_playlist_MOD.js
index ebc79411..c826bfcf 100644
--- a/actions/play_youtube_playlist_MOD.js
+++ b/actions/play_youtube_playlist_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Play YouTube Playlist',
section: 'Audio Control',
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/push_webhook_MOD.js b/actions/push_webhook_MOD.js
index c1b5467d..bdf8e07b 100644
--- a/actions/push_webhook_MOD.js
+++ b/actions/push_webhook_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Send Message To Webhook',
section: 'Webhook Control',
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/randomize_letters_MOD.js b/actions/randomize_letters_MOD.js
index c9fa21c8..af917132 100644
--- a/actions/randomize_letters_MOD.js
+++ b/actions/randomize_letters_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Randomize Letters',
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/read_file_MOD.js b/actions/read_file_MOD.js
index c6dc0e6e..bc7d7265 100644
--- a/actions/read_file_MOD.js
+++ b/actions/read_file_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Read File',
section: 'File 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/remove_from_queue_MOD.js b/actions/remove_from_queue_MOD.js
index 568c52bb..4ac232bc 100644
--- a/actions/remove_from_queue_MOD.js
+++ b/actions/remove_from_queue_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Remove from Queue',
section: 'Audio Control',
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/remove_message_reactions_MOD.js b/actions/remove_message_reactions_MOD.js
index aff0258f..515bbc3e 100644
--- a/actions/remove_message_reactions_MOD.js
+++ b/actions/remove_message_reactions_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Clear reactions from message',
section: 'Reaction Control',
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/remove_reaction_MOD.js b/actions/remove_reaction_MOD.js
index b2333ab2..3e396727 100644
--- a/actions/remove_reaction_MOD.js
+++ b/actions/remove_reaction_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Remove Reaction',
section: 'Reaction Control',
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/repeat_string_MOD.js b/actions/repeat_string_MOD.js
index f2d4cd56..0df046b1 100644
--- a/actions/repeat_string_MOD.js
+++ b/actions/repeat_string_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Repeat String',
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/replace_text_MOD.js b/actions/replace_text_MOD.js
index a3fc172b..49e37c19 100644
--- a/actions/replace_text_MOD.js
+++ b/actions/replace_text_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Replace Text',
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/restart_bot_MOD.js b/actions/restart_bot_MOD.js
index 4f6534c3..bd631066 100644
--- a/actions/restart_bot_MOD.js
+++ b/actions/restart_bot_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
name: 'Restart Bot',
section: 'Bot Client Control',
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/revise_MOD.js b/actions/revise_MOD.js
index 1aa8ea88..b2b757e3 100644
--- a/actions/revise_MOD.js
+++ b/actions/revise_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Revise',
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/run_action_sequence_once_MOD.js b/actions/run_action_sequence_once_MOD.js
index e7532518..d197e7dc 100644
--- a/actions/run_action_sequence_once_MOD.js
+++ b/actions/run_action_sequence_once_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Run Action Sequence Once',
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/run_command_in_console_MOD.js b/actions/run_command_in_console_MOD.js
index e56db9b2..e423e84d 100644
--- a/actions/run_command_in_console_MOD.js
+++ b/actions/run_command_in_console_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Run Command in Console',
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/run_script_too_MOD.js b/actions/run_script_too_MOD.js
index 12448880..9dba2090 100644
--- a/actions/run_script_too_MOD.js
+++ b/actions/run_script_too_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Run Script Too',
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/run_sql_query_MOD.js b/actions/run_sql_query_MOD.js
index 437b81af..8f4a30ac 100644
--- a/actions/run_sql_query_MOD.js
+++ b/actions/run_sql_query_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Run SQL Query',
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/send_embed_to_webhook_MOD.js b/actions/send_embed_to_webhook_MOD.js
index 3aa9f9c9..2ea4ad14 100644
--- a/actions/send_embed_to_webhook_MOD.js
+++ b/actions/send_embed_to_webhook_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Send Embed to Webhook',
section: 'Webhook Control',
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/send_file_to_webhook_MOD.js b/actions/send_file_to_webhook_MOD.js
index 93a5bcc5..0f68960f 100644
--- a/actions/send_file_to_webhook_MOD.js
+++ b/actions/send_file_to_webhook_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Send File To Webhook',
section: 'Webhook Control',
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/send_gif_MOD.js b/actions/send_gif_MOD.js
index ed88a94a..865b4bbc 100644
--- a/actions/send_gif_MOD.js
+++ b/actions/send_gif_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Send GIF',
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/send_json_to_webapi_MOD.js b/actions/send_json_to_webapi_MOD.js
index a1ff4795..91e58604 100644
--- a/actions/send_json_to_webapi_MOD.js
+++ b/actions/send_json_to_webapi_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Send Json to WebAPI',
section: 'JSON Things',
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/send_mail_MOD.js b/actions/send_mail_MOD.js
index a783609d..d60822aa 100644
--- a/actions/send_mail_MOD.js
+++ b/actions/send_mail_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
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/send_message_to_console_MOD.js b/actions/send_message_to_console_MOD.js
index a7940c87..7e4ce02e 100644
--- a/actions/send_message_to_console_MOD.js
+++ b/actions/send_message_to_console_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Send Message to Console',
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/send_message_to_twitch_chat_MOD.js b/actions/send_message_to_twitch_chat_MOD.js
index 9a14107a..3009bca7 100644
--- a/actions/send_message_to_twitch_chat_MOD.js
+++ b/actions/send_message_to_twitch_chat_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Send Message to Twitch Chat',
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/send_stats_to_botlist.me_MOD.js b/actions/send_stats_to_botlist.me_MOD.js
index a1063e36..cb98bf97 100644
--- a/actions/send_stats_to_botlist.me_MOD.js
+++ b/actions/send_stats_to_botlist.me_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayname: 'Send Stats to Botlist.me',
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/send_stats_to_dbl_MOD.js b/actions/send_stats_to_dbl_MOD.js
index 35c5a439..cb9a907e 100644
--- a/actions/send_stats_to_dbl_MOD.js
+++ b/actions/send_stats_to_dbl_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Send Stats to TopGG',
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/set_afk_channel_MOD.js b/actions/set_afk_channel_MOD.js
index 5089dd31..fb904f14 100644
--- a/actions/set_afk_channel_MOD.js
+++ b/actions/set_afk_channel_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Set AFK Channel',
section: 'Server Control',
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/set_afk_timeout_MOD.js b/actions/set_afk_timeout_MOD.js
index 64733079..4c28d4e5 100644
--- a/actions/set_afk_timeout_MOD.js
+++ b/actions/set_afk_timeout_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Set AFK Timeout',
section: 'Server Control',
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/set_member_voice_channel_perms_MOD.js b/actions/set_member_voice_channel_perms_MOD.js
index 4bfe416e..6cbef05b 100644
--- a/actions/set_member_voice_channel_perms_MOD.js
+++ b/actions/set_member_voice_channel_perms_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Set Member Voice Channel Perms',
section: 'Channel Control',
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/set_music_repeat_mode_MOD.js b/actions/set_music_repeat_mode_MOD.js
index 973e6beb..2260e1a7 100644
--- a/actions/set_music_repeat_mode_MOD.js
+++ b/actions/set_music_repeat_mode_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Set Music Repeat Mode',
section: 'Audio Control',
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/set_permissions_MOD.js b/actions/set_permissions_MOD.js
index ea5ae16b..1f6467a4 100644
--- a/actions/set_permissions_MOD.js
+++ b/actions/set_permissions_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
section: 'Permission Control',
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/set_role_perms_MOD.js b/actions/set_role_perms_MOD.js
index e715a26d..90002c2e 100644
--- a/actions/set_role_perms_MOD.js
+++ b/actions/set_role_perms_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Set Role Permissions',
section: 'Role Control',
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/set_role_voice_channel_perms_MOD.js b/actions/set_role_voice_channel_perms_MOD.js
index 5961ee17..72788fbd 100644
--- a/actions/set_role_voice_channel_perms_MOD.js
+++ b/actions/set_role_voice_channel_perms_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Set Role Voice Channel Perms',
section: 'Channel Control',
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/set_server_owner_MOD.js b/actions/set_server_owner_MOD.js
index daac47cf..d480aabf 100644
--- a/actions/set_server_owner_MOD.js
+++ b/actions/set_server_owner_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Set Server Owner',
section: 'Server Control',
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/set_slowmode_MOD.js b/actions/set_slowmode_MOD.js
index da299cae..318d7924 100644
--- a/actions/set_slowmode_MOD.js
+++ b/actions/set_slowmode_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Set slowmode',
section: 'Channel Control',
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/set_time_restriction_MOD.js b/actions/set_time_restriction_MOD.js
index 484bd6a1..e2455aa1 100644
--- a/actions/set_time_restriction_MOD.js
+++ b/actions/set_time_restriction_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Set Time Restriction',
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/set_voice_channel_permissions_MOD.js b/actions/set_voice_channel_permissions_MOD.js
index e66b101c..7fde3934 100644
--- a/actions/set_voice_channel_permissions_MOD.js
+++ b/actions/set_voice_channel_permissions_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Set Voice Channel Perms',
section: 'Channel Control',
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/skip_actions_MOD.js b/actions/skip_actions_MOD.js
index f99ef4f8..e7ed1208 100644
--- a/actions/skip_actions_MOD.js
+++ b/actions/skip_actions_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Skip Actions',
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/slice_MOD.js b/actions/slice_MOD.js
index a1e13f01..07abbe9a 100644
--- a/actions/slice_MOD.js
+++ b/actions/slice_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Slice',
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/speed_test_MOD.js b/actions/speed_test_MOD.js
index 55c57035..32848fac 100644
--- a/actions/speed_test_MOD.js
+++ b/actions/speed_test_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Speed Test',
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/split_MOD.js b/actions/split_MOD.js
index aa7bd3e9..7507b712 100644
--- a/actions/split_MOD.js
+++ b/actions/split_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Split',
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/spotify_search_MOD.js b/actions/spotify_search_MOD.js
index faeabec4..ce11ec5a 100644
--- a/actions/spotify_search_MOD.js
+++ b/actions/spotify_search_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Spotify Search',
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/spreadsheet_MOD.js b/actions/spreadsheet_MOD.js
index 07dd4214..c0ab77b6 100644
--- a/actions/spreadsheet_MOD.js
+++ b/actions/spreadsheet_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Spreadsheets',
section: 'Data',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: null,
diff --git a/actions/start_rss_feed_MOD.js b/actions/start_rss_feed_MOD.js
index 7f320f44..28a5ee96 100644
--- a/actions/start_rss_feed_MOD.js
+++ b/actions/start_rss_feed_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'RSS Feed Watcher',
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/stop_bot_MOD.js b/actions/stop_bot_MOD.js
index 6c6a9021..27dae8d4 100644
--- a/actions/stop_bot_MOD.js
+++ b/actions/stop_bot_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Stop Bot',
section: 'Bot Client Control',
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/stop_rss_feed_MOD.js b/actions/stop_rss_feed_MOD.js
index 524abcdd..18433a10 100644
--- a/actions/stop_rss_feed_MOD.js
+++ b/actions/stop_rss_feed_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Stop RSS Feed Watcher',
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/store_attachment_info_MOD.js b/actions/store_attachment_info_MOD.js
index fa25ec3a..1919154f 100644
--- a/actions/store_attachment_info_MOD.js
+++ b/actions/store_attachment_info_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
section: 'Messaging',
fields: ['storage', 'varName', 'info', 'storage2', 'varName2'],
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/store_audit_log_info_MOD.js b/actions/store_audit_log_info_MOD.js
index d9ee4547..57a101fe 100644
--- a/actions/store_audit_log_info_MOD.js
+++ b/actions/store_audit_log_info_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Store Audit Log Info',
section: 'Server Control',
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/store_audit_log_list_MOD.js b/actions/store_audit_log_list_MOD.js
index bd59dfb9..783504b9 100644
--- a/actions/store_audit_log_list_MOD.js
+++ b/actions/store_audit_log_list_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Store Audit Log List',
section: 'Server Control',
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/store_bot_client_info_MOD.js b/actions/store_bot_client_info_MOD.js
index e4173f28..b53e0f27 100644
--- a/actions/store_bot_client_info_MOD.js
+++ b/actions/store_bot_client_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Bot Client Info',
section: 'Bot Client Control',
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/store_category_info_MOD.js b/actions/store_category_info_MOD.js
index ba8ceda6..8c94a7d9 100644
--- a/actions/store_category_info_MOD.js
+++ b/actions/store_category_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Category Info',
section: 'Channel Control',
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/store_channel_permissions_MOD.js b/actions/store_channel_permissions_MOD.js
index 4580d6aa..f549a8da 100644
--- a/actions/store_channel_permissions_MOD.js
+++ b/actions/store_channel_permissions_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
section: 'Permission Control',
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/store_command_info_MOD.js b/actions/store_command_info_MOD.js
index 2deb0ea7..fdae1343 100644
--- a/actions/store_command_info_MOD.js
+++ b/actions/store_command_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Command Info',
section: 'Bot Client Control',
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/store_data_list_MOD.js b/actions/store_data_list_MOD.js
index d1a13ec8..b550d40e 100644
--- a/actions/store_data_list_MOD.js
+++ b/actions/store_data_list_MOD.js
@@ -4,7 +4,7 @@ module.exports = {
displayName: 'Store Data List',
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/store_date_info_plus_MOD.js b/actions/store_date_info_plus_MOD.js
index da273f60..1b13ab21 100644
--- a/actions/store_date_info_plus_MOD.js
+++ b/actions/store_date_info_plus_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Date Info Plus',
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/store_embed_info_MOD.js b/actions/store_embed_info_MOD.js
index 8278a930..1b94caf5 100644
--- a/actions/store_embed_info_MOD.js
+++ b/actions/store_embed_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Embed Info',
section: 'Embed Message',
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/store_emoji_info_MOD.js b/actions/store_emoji_info_MOD.js
index 06f05feb..8ac25e56 100644
--- a/actions/store_emoji_info_MOD.js
+++ b/actions/store_emoji_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Emoji Info',
section: 'Emoji Control',
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/store_file_info_MOD.js b/actions/store_file_info_MOD.js
index 23b7a8ab..91b39bcd 100644
--- a/actions/store_file_info_MOD.js
+++ b/actions/store_file_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store File Info',
section: 'File 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/store_game_info_MOD.js b/actions/store_game_info_MOD.js
index aaf0f2a8..73ac2de2 100644
--- a/actions/store_game_info_MOD.js
+++ b/actions/store_game_info_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Store Member Game Info',
section: 'Member Control',
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/store_global_data_MOD.js b/actions/store_global_data_MOD.js
index 798d7b15..c31d09c5 100644
--- a/actions/store_global_data_MOD.js
+++ b/actions/store_global_data_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Global Data',
section: 'Data',
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/store_html_from_webpage_MOD.js b/actions/store_html_from_webpage_MOD.js
index 9bee101c..9c1cd2aa 100644
--- a/actions/store_html_from_webpage_MOD.js
+++ b/actions/store_html_from_webpage_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store HTML From Webpage',
section: 'HTML/XML Things',
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/store_invite_info_MOD.js b/actions/store_invite_info_MOD.js
index b7694608..d34fa00e 100644
--- a/actions/store_invite_info_MOD.js
+++ b/actions/store_invite_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Invite Info',
section: 'Channel Control',
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/store_json_from_webapi_MOD.js b/actions/store_json_from_webapi_MOD.js
index d802cb72..33ea7ddc 100644
--- a/actions/store_json_from_webapi_MOD.js
+++ b/actions/store_json_from_webapi_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Json From WebAPI',
section: 'JSON Things',
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/store_message_params_MOD.js b/actions/store_message_params_MOD.js
index d49df3d8..cc7d6db6 100644
--- a/actions/store_message_params_MOD.js
+++ b/actions/store_message_params_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Message Params',
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/store_permissions_Info_MOD.js b/actions/store_permissions_Info_MOD.js
index 3051618d..369a0a41 100644
--- a/actions/store_permissions_Info_MOD.js
+++ b/actions/store_permissions_Info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Permissions Info',
section: 'Permission Control',
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/store_playlist_info_MOD.js b/actions/store_playlist_info_MOD.js
index 9ccd666e..ba5c515a 100644
--- a/actions/store_playlist_info_MOD.js
+++ b/actions/store_playlist_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Playlist Info',
section: 'YouTube Tools',
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/store_queue_info_MOD.js b/actions/store_queue_info_MOD.js
index 18cfb0b3..9b168980 100644
--- a/actions/store_queue_info_MOD.js
+++ b/actions/store_queue_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Queue Info',
section: 'Audio Control',
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/store_reaction_info_MOD.js b/actions/store_reaction_info_MOD.js
index 3bbeb33a..41638002 100644
--- a/actions/store_reaction_info_MOD.js
+++ b/actions/store_reaction_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Reaction Info',
section: 'Reaction Control',
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/store_regex_matched_variable_MOD.js b/actions/store_regex_matched_variable_MOD.js
index dc0f4c06..5991d0e7 100644
--- a/actions/store_regex_matched_variable_MOD.js
+++ b/actions/store_regex_matched_variable_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Regex Matched Variable',
section: 'Variable Things',
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/store_shard_info_MOD.js b/actions/store_shard_info_MOD.js
index a04ccea7..44dfe2c6 100644
--- a/actions/store_shard_info_MOD.js
+++ b/actions/store_shard_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Shard Info',
section: 'Bot Client Control',
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/store_twitch_info_MOD.js b/actions/store_twitch_info_MOD.js
index 1796c453..ba8b4ff6 100644
--- a/actions/store_twitch_info_MOD.js
+++ b/actions/store_twitch_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Twitch Info',
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/store_user_info_MOD.js b/actions/store_user_info_MOD.js
index e75212ba..4d31a729 100644
--- a/actions/store_user_info_MOD.js
+++ b/actions/store_user_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store User Info',
section: 'User Control',
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/store_utc_time_info_MOD.js b/actions/store_utc_time_info_MOD.js
index 4147929a..415e940e 100644
--- a/actions/store_utc_time_info_MOD.js
+++ b/actions/store_utc_time_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store UTC Time Info',
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/store_webhook_info_MOD.js b/actions/store_webhook_info_MOD.js
index fb5240ac..11c079f3 100644
--- a/actions/store_webhook_info_MOD.js
+++ b/actions/store_webhook_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store Webhook Info',
section: 'Webhook Control',
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/store_youtube_channel_info_MOD.js b/actions/store_youtube_channel_info_MOD.js
index 464445a9..14e21b33 100644
--- a/actions/store_youtube_channel_info_MOD.js
+++ b/actions/store_youtube_channel_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store YouTube Channel Info',
section: 'YouTube Tools',
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/sync_channel_permissions_MOD.js b/actions/sync_channel_permissions_MOD.js
index c8ac3e28..bfd5ee8f 100644
--- a/actions/sync_channel_permissions_MOD.js
+++ b/actions/sync_channel_permissions_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Sync Channel Permissions',
section: 'Permission Control',
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/text_to_speech_MOD.js b/actions/text_to_speech_MOD.js
index fe530daa..b6397787 100644
--- a/actions/text_to_speech_MOD.js
+++ b/actions/text_to_speech_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Text To Speech',
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/transcript_MOD.js b/actions/transcript_MOD.js
index cf48d9df..6d483a26 100644
--- a/actions/transcript_MOD.js
+++ b/actions/transcript_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Transcript',
section: 'Other Stuff',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: null,
diff --git a/actions/translate_MOD.js b/actions/translate_MOD.js
index d6c50655..40625f8b 100644
--- a/actions/translate_MOD.js
+++ b/actions/translate_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
name: 'Translate',
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/twitch_authentication_MOD.js b/actions/twitch_authentication_MOD.js
index 81e9f84d..30436863 100644
--- a/actions/twitch_authentication_MOD.js
+++ b/actions/twitch_authentication_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Twitch Authentication',
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/typing_MOD.js b/actions/typing_MOD.js
index 798b8142..8b6d4cca 100644
--- a/actions/typing_MOD.js
+++ b/actions/typing_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Bot Typing',
section: 'Bot Client Control',
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/un_pin_message_MOD.js b/actions/un_pin_message_MOD.js
index 4e6792cb..76699587 100644
--- a/actions/un_pin_message_MOD.js
+++ b/actions/un_pin_message_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Un-Pin Message',
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/urban_dictionary_MOD.js b/actions/urban_dictionary_MOD.js
index 34343c6a..230fdcc2 100644
--- a/actions/urban_dictionary_MOD.js
+++ b/actions/urban_dictionary_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Urban Dictionary Search',
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/variable_pattern_MOD.js b/actions/variable_pattern_MOD.js
index ed913b12..ed0024cb 100644
--- a/actions/variable_pattern_MOD.js
+++ b/actions/variable_pattern_MOD.js
@@ -3,7 +3,7 @@ module.exports = {
displayName: 'Variable Pattern',
section: 'Variable Things',
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/weather_MOD.js b/actions/weather_MOD.js
index 2b179ae0..301ad2e4 100644
--- a/actions/weather_MOD.js
+++ b/actions/weather_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Weather',
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/youtube_info_MOD.js b/actions/youtube_info_MOD.js
index 1e88eaeb..245c811f 100644
--- a/actions/youtube_info_MOD.js
+++ b/actions/youtube_info_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Store YouTube Info',
section: 'YouTube Tools',
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/youtube_search_MOD.js b/actions/youtube_search_MOD.js
index 1cee5da5..7f9c51ce 100644
--- a/actions/youtube_search_MOD.js
+++ b/actions/youtube_search_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'YouTube Search',
section: 'Audio Control',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
diff --git a/create_forum_channel_MOD.js b/create_forum_channel_MOD.js
index e6e08079..80f2c31b 100644
--- a/create_forum_channel_MOD.js
+++ b/create_forum_channel_MOD.js
@@ -2,7 +2,7 @@ module.exports = {
name: 'Create Forum Channel',
section: 'Channel Control',
meta: {
- version: '2.1.7',
+ version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
authorUrl: 'https://github.com/dbm-network/mods',
From e82b047e48ca667cc26513aeff942df876658c0f Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Fri, 2 Jun 2023 13:53:24 -0500
Subject: [PATCH 02/62] Update image attachments
---
actions/attach_image_to_embed_MOD.js | 2 +-
actions/canvas_send_image_MOD.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/actions/attach_image_to_embed_MOD.js b/actions/attach_image_to_embed_MOD.js
index 1afc0de4..425438ab 100644
--- a/actions/attach_image_to_embed_MOD.js
+++ b/actions/attach_image_to_embed_MOD.js
@@ -60,7 +60,7 @@ module.exports = {
const { Images } = DBM;
Images.createBuffer(image).then((buffer) => {
- const attachment = new DBM.DiscordJS.MessageAttachment(buffer, filename);
+ const attachment = new DBM.DiscordJS.AttachmentBuilder(buffer, { name: filename });
embed.attachFiles([attachment]);
const storage = parseInt(data.storage, 10);
diff --git a/actions/canvas_send_image_MOD.js b/actions/canvas_send_image_MOD.js
index 5daa066a..1b8bb258 100644
--- a/actions/canvas_send_image_MOD.js
+++ b/actions/canvas_send_image_MOD.js
@@ -101,7 +101,7 @@ module.exports = {
ctx.drawImage(image, 0, 0, image.width, image.height);
const name = `${parseInt(data.spoiler, 10) === 1 ? 'SPOILER_' : ''}image.png`;
const buffer = canvas.toBuffer('image/png', { compressionLevel: compress });
- const attachment = new DiscordJS.MessageAttachment(buffer, name);
+ const attachment = new DiscordJS.AttachmentBuilder(buffer, { name });
const content = this.evalMessage(data.message, cache);
const options = { files: [attachment] };
if (content) options.content = content;
From 368b67f525700090b34bb093d02db5fcf4052130 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Fri, 2 Jun 2023 14:19:40 -0500
Subject: [PATCH 03/62] create/edit to object and BitField suffix
---
actions/compare_permissions_MOD.js | 6 +++---
actions/control_permissons_MOD.js | 6 +++---
actions/create_animated_emoji_MOD.js | 2 +-
actions/create_category_MOD.js | 3 ++-
actions/create_permission_MOD.js | 8 ++++----
actions/create_server_MOD.js | 2 +-
actions/edit_emoji_MOD.js | 4 ++--
actions/edit_webhook_MOD.js | 6 +++---
actions/set_member_voice_channel_perms_MOD.js | 2 +-
actions/set_permissions_MOD.js | 4 ++--
actions/set_role_voice_channel_perms_MOD.js | 2 +-
actions/set_voice_channel_permissions_MOD.js | 3 ++-
actions/store_channel_permissions_MOD.js | 4 ++--
create_forum_channel_MOD.js | 9 +++++----
14 files changed, 32 insertions(+), 29 deletions(-)
diff --git a/actions/compare_permissions_MOD.js b/actions/compare_permissions_MOD.js
index e4c96eaa..ac2182ad 100644
--- a/actions/compare_permissions_MOD.js
+++ b/actions/compare_permissions_MOD.js
@@ -43,7 +43,7 @@ module.exports = {
async action(cache) {
const data = cache.actions[cache.index];
- const { Permissions } = this.getDBM().DiscordJS;
+ const { PermissionsBitField } = this.getDBM().DiscordJS;
const varName = this.evalMessage(data.varName, cache);
const storage = parseInt(data.storage, 10);
let oldPermissions = this.getVariable(storage, varName, cache);
@@ -55,12 +55,12 @@ module.exports = {
if (oldPermissions.allow && oldPermissions.allow.bitfield) {
oldPermissions = oldPermissions.allow;
} else if (!isNaN(oldPermissions)) {
- oldPermissions = new Permissions(oldPermissions);
+ oldPermissions = new PermissionsBitField(oldPermissions);
}
if (newPermissions.allow && newPermissions.allow.bitfield) {
newPermissions = newPermissions.allow;
} else if (!isNaN(newPermissions)) {
- newPermissions = new Permissions(newPermissions);
+ newPermissions = new PermissionsBitField(newPermissions);
}
if (oldPermissions.bitfield && newPermissions.bitfield) {
diff --git a/actions/control_permissons_MOD.js b/actions/control_permissons_MOD.js
index 82ca483b..2a4c01bf 100644
--- a/actions/control_permissons_MOD.js
+++ b/actions/control_permissons_MOD.js
@@ -307,7 +307,7 @@ module.exports = {
async action(cache) {
const data = cache.actions[cache.index];
- const { Permissions } = this.getDBM().DiscordJS;
+ const { PermissionsBitField } = this.getDBM().DiscordJS;
const storage = parseInt(data.storage, 10);
const varName = this.evalMessage(data.varName, cache);
let permissions = this.getVariable(storage, varName, cache);
@@ -351,7 +351,7 @@ module.exports = {
permsArray.forEach((perms) => {
if (data[perms] === 'Allow') {
if (!permissions.allow || !permissions.allow.has(perms)) {
- if (!permissions.allow) permissions.allow = new Permissions();
+ if (!permissions.allow) permissions.allow = new PermissionsBitField();
permissions.allow.add(perms);
}
if (permissions.disallow && permissions.disallow.has(perms)) permissions.disallow.remove(perms);
@@ -359,7 +359,7 @@ module.exports = {
permissions.inherit.splice(permissions.inherit.indexOf(perms), 1);
} else if (data[perms] === 'Disallow') {
if (!permissions.disallow || !permissions.disallow.has(perms)) {
- if (!permissions.disallow) permissions.disallow = new Permissions();
+ if (!permissions.disallow) permissions.disallow = new PermissionsBitField();
permissions.disallow.add(perms);
}
if (permissions.allow && permissions.allow.has(perms)) permissions.allow.remove(perms);
diff --git a/actions/create_animated_emoji_MOD.js b/actions/create_animated_emoji_MOD.js
index 4d1eafbb..f8775572 100644
--- a/actions/create_animated_emoji_MOD.js
+++ b/actions/create_animated_emoji_MOD.js
@@ -52,7 +52,7 @@ module.exports = {
const name = this.evalMessage(data.emojiName, cache);
server.emojis
- .create(gif, name)
+ .create({ attachment: gif, name })
.then((emoji) => {
const varName2 = this.evalMessage(data.varName2, cache);
const storage = parseInt(data.storage2, 10);
diff --git a/actions/create_category_MOD.js b/actions/create_category_MOD.js
index 210f8dfb..7d40a1fe 100644
--- a/actions/create_category_MOD.js
+++ b/actions/create_category_MOD.js
@@ -48,8 +48,9 @@ module.exports = {
const name = this.evalMessage(data.channelName, cache);
const position = this.evalMessage(data.position, cache);
const storage = parseInt(data.storage, 10);
+
server.channels
- .create(name, { type: 'GUILD_CATEGORY' })
+ .create({ name, type: 'GuildCategory' })
.then((channel) => {
channel.setPosition(position);
const varName = this.evalMessage(data.varName, cache);
diff --git a/actions/create_permission_MOD.js b/actions/create_permission_MOD.js
index 51e28ed0..0bad90c9 100644
--- a/actions/create_permission_MOD.js
+++ b/actions/create_permission_MOD.js
@@ -355,11 +355,11 @@ module.exports = {
async action(cache) {
const data = cache.actions[cache.index];
const type = parseInt(data.type, 10);
- const { Permissions } = this.getDBM().DiscordJS;
+ const { PermissionsBitField } = this.getDBM().DiscordJS;
let permissions = {};
switch (type) {
case 0: {
- permissions = new Permissions(this.evalMessage(data.bitFields, cache));
+ permissions = new PermissionsBitField(this.evalMessage(data.bitFields, cache));
break;
}
case 1: {
@@ -407,8 +407,8 @@ module.exports = {
inherit.push(perms);
}
});
- if (allow.length !== 0) permissions.allow = new Permissions(allow);
- if (disallow.length !== 0) permissions.disallow = new Permissions(disallow);
+ if (allow.length !== 0) permissions.allow = new PermissionsBitField(allow);
+ if (disallow.length !== 0) permissions.disallow = new PermissionsBitField(disallow);
if (inherit.length !== 0) permissions.inherit = inherit;
break;
}
diff --git a/actions/create_server_MOD.js b/actions/create_server_MOD.js
index a0bbb19f..c450f853 100644
--- a/actions/create_server_MOD.js
+++ b/actions/create_server_MOD.js
@@ -52,7 +52,7 @@ module.exports = {
if (!serverName) return this.callNextAction(cache);
botClient.guilds
- .create(serverName)
+ .create({ name: serverName })
.then((server) => {
const storage = parseInt(data.storage, 10);
const varName = this.evalMessage(data.varName, cache);
diff --git a/actions/edit_emoji_MOD.js b/actions/edit_emoji_MOD.js
index a7fb1d84..fd132f48 100644
--- a/actions/edit_emoji_MOD.js
+++ b/actions/edit_emoji_MOD.js
@@ -40,10 +40,10 @@ module.exports = {
const emoji = Mods.getEmoji(storage, varName, cache);
if (Array.isArray(emoji)) {
- this.callListFunc(emoji, 'edit', [emojiData]).then(() => this.callNextAction(cache));
+ this.callListFunc(emoji, 'edit', [{ emojiData }]).then(() => this.callNextAction(cache));
} else if (emoji && emoji.edit) {
emoji
- .edit(emojiData)
+ .edit({ emojiData })
.then(() => this.callNextAction(cache))
.catch(this.displayError.bind(this, data, cache));
}
diff --git a/actions/edit_webhook_MOD.js b/actions/edit_webhook_MOD.js
index 6b3bd094..5b5bec75 100644
--- a/actions/edit_webhook_MOD.js
+++ b/actions/edit_webhook_MOD.js
@@ -22,13 +22,13 @@ module.exports = {
Webhook Name
-
+
Webhook Icon URL
-
+
`;
},
@@ -47,7 +47,7 @@ module.exports = {
const avatar = this.evalMessage(data.webhookIcon, cache);
const name = this.evalMessage(data.webhookName, cache);
if (avatar && name) {
- wh.edit({ avatar, name });
+ wh.edit({ name, avatar });
} else if (avatar) {
wh.edit({ avatar });
} else if (name) {
diff --git a/actions/set_member_voice_channel_perms_MOD.js b/actions/set_member_voice_channel_perms_MOD.js
index 6cbef05b..d19894f8 100644
--- a/actions/set_member_voice_channel_perms_MOD.js
+++ b/actions/set_member_voice_channel_perms_MOD.js
@@ -57,7 +57,7 @@ module.exports = {
options[data.permission] = data.state === '0' ? true : data.state === '2' ? false : null;
channel.permissionOverwrites
- .edit(member.id, options, { type: 1 })
+ .edit(member, options, { type: 1 })
.then(() => this.callNextAction(cache))
.catch((err) => this.displayError(data, cache, err));
},
diff --git a/actions/set_permissions_MOD.js b/actions/set_permissions_MOD.js
index 1f6467a4..c2cf34a8 100644
--- a/actions/set_permissions_MOD.js
+++ b/actions/set_permissions_MOD.js
@@ -72,8 +72,8 @@ module.exports = {
const way = parseInt(data.way, 10);
if (way === 0) {
- const { Permissions } = this.getDBM().DiscordJS;
- const tempPermissions = new Permissions();
+ const { PermissionsBitField } = this.getDBM().DiscordJS;
+ const tempPermissions = new PermissionsBitField();
tempPermissions.add(role.permissions);
if (permissions.allow) {
tempPermissions.add(permissions.allow);
diff --git a/actions/set_role_voice_channel_perms_MOD.js b/actions/set_role_voice_channel_perms_MOD.js
index 72788fbd..1c3b6997 100644
--- a/actions/set_role_voice_channel_perms_MOD.js
+++ b/actions/set_role_voice_channel_perms_MOD.js
@@ -57,7 +57,7 @@ module.exports = {
if (role?.id) {
channel.permissionOverwrites
- .edit(role.id, options, { type: 0 })
+ .edit(role, options, { type: 0 })
.then(() => this.callNextAction(cache))
.catch((err) => this.displayError(data, cache, err));
} else {
diff --git a/actions/set_voice_channel_permissions_MOD.js b/actions/set_voice_channel_permissions_MOD.js
index 7fde3934..eb5c8ad0 100644
--- a/actions/set_voice_channel_permissions_MOD.js
+++ b/actions/set_voice_channel_permissions_MOD.js
@@ -56,11 +56,12 @@ module.exports = {
const channel = await this.getVoiceChannel(storage, varName, cache);
if (!server) return this.callNextAction(cache);
+ const role = server.roles.cache.get(server.id);
const options = {};
options[data.permission] = data.state === '0' ? true : data.state === '1' ? false : null;
channel.permissionOverwrites
- .edit(server.id, options, { type: 0 })
+ .edit(role, options, { type: 0 })
.then(() => this.callNextAction(cache))
.catch((err) => this.displayError(data, cache, err));
},
diff --git a/actions/store_channel_permissions_MOD.js b/actions/store_channel_permissions_MOD.js
index f549a8da..e709febd 100644
--- a/actions/store_channel_permissions_MOD.js
+++ b/actions/store_channel_permissions_MOD.js
@@ -70,8 +70,8 @@ module.exports = {
const permissions = {};
permissions.allow = allow;
- const { Permissions } = this.getDBM().DiscordJS;
- const disallow = new Permissions();
+ const { PermissionsBitField } = this.getDBM().DiscordJS;
+ const disallow = new PermissionsBitField();
disallow.add(target.permissions);
disallow.remove(allow);
permissions.disallow = disallow;
diff --git a/create_forum_channel_MOD.js b/create_forum_channel_MOD.js
index 80f2c31b..3669e34d 100644
--- a/create_forum_channel_MOD.js
+++ b/create_forum_channel_MOD.js
@@ -69,9 +69,10 @@ module.exports = {
const data = cache.actions[cache.index];
const { server } = cache;
- const name = this.evalMessage(data.channelName, cache);
-
- const channelData = { reason: this.evalMessage(data.reason, cache) };
+ const channelData = {
+ reason: this.evalMessage(data.reason, cache),
+ name: this.evalMessage(data.channelName, cache),
+ };
if (data.topic) {
channelData.topic = this.evalMessage(data.topic, cache);
@@ -88,7 +89,7 @@ module.exports = {
channelData.type = 15;
server.channels
- .create(name, channelData)
+ .create({ channelData })
.then((channel) => {
const storage = parseInt(data.storage, 10);
const varName = this.evalMessage(data.varName, cache);
From 2909e597db5f2c5052a7a8326de3112ec064adb4 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Fri, 2 Jun 2023 14:40:24 -0500
Subject: [PATCH 04/62] .deleted has been deleted, avatar change, missed init
---
actions/check_if_message_MOD.js | 4 ----
actions/find_message_MOD.js | 5 +----
actions/store_emoji_info_MOD.js | 4 ----
actions/store_user_info_MOD.js | 3 +--
4 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/actions/check_if_message_MOD.js b/actions/check_if_message_MOD.js
index a6444a04..2a115c99 100644
--- a/actions/check_if_message_MOD.js
+++ b/actions/check_if_message_MOD.js
@@ -27,7 +27,6 @@ module.exports = {
Is Pinnable?
Is Pinned?
Is Deletable?
- Is Deleted?
Is TTS?
Is Of Discord?
Includes @everyone Mention?
@@ -61,9 +60,6 @@ module.exports = {
case 2:
result = msg.deletable;
break;
- case 3:
- result = msg.deleted;
- break;
case 4:
result = msg.tts;
break;
diff --git a/actions/find_message_MOD.js b/actions/find_message_MOD.js
index 86a2550d..aa084708 100644
--- a/actions/find_message_MOD.js
+++ b/actions/find_message_MOD.js
@@ -57,10 +57,7 @@ module.exports = {
`;
},
- init() {
- const { glob, document } = this;
- glob.channelChange(document.getElementById('channel'), 'varNameContainer');
- },
+ init() {},
async action(cache) {
const data = cache.actions[cache.index];
diff --git a/actions/store_emoji_info_MOD.js b/actions/store_emoji_info_MOD.js
index 8ac25e56..975bb197 100644
--- a/actions/store_emoji_info_MOD.js
+++ b/actions/store_emoji_info_MOD.js
@@ -98,7 +98,6 @@ module.exports = {
Emoji URL
Emoji ID
Emoji Is Deletable?
- Emoji Has Been Deleted?
Emoji Server
Emoji Identifier
Emoji Is Managed By An External Service?
@@ -156,9 +155,6 @@ module.exports = {
case 7:
result = emo.deletable;
break;
- case 8:
- result = emo.deleted;
- break;
case 9:
result = emo.guild;
break;
diff --git a/actions/store_user_info_MOD.js b/actions/store_user_info_MOD.js
index 4d31a729..5a56bed7 100644
--- a/actions/store_user_info_MOD.js
+++ b/actions/store_user_info_MOD.js
@@ -144,8 +144,7 @@ module.exports = {
break;
case 4: // User Avatar
result = user.displayAvatarURL({
- dynamic: true,
- format: 'png',
+ extension: 'png',
size: 4096,
});
break;
From 65bff86056b4bef68e6fccc6d8a5dd16de14f9c0 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Fri, 2 Jun 2023 18:38:54 -0500
Subject: [PATCH 05/62] Update create_permission_MOD.js
---
actions/create_permission_MOD.js | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/actions/create_permission_MOD.js b/actions/create_permission_MOD.js
index 0bad90c9..7970bad5 100644
--- a/actions/create_permission_MOD.js
+++ b/actions/create_permission_MOD.js
@@ -101,17 +101,21 @@ module.exports = {
Voice Channel
-
+
+
+
+
+
Store In:
@@ -251,6 +255,7 @@ module.exports = {
'USE_VAD',
'PRIORITY_SPEAKER',
];
+
glob.typeChange = function typeChange(type) {
switch (parseInt(type.value, 10)) {
case 0:
@@ -348,6 +353,7 @@ module.exports = {
break;
}
};
+
glob.targetChange(document.getElementById('targetType'));
glob.typeChange(document.getElementById('type'));
},
@@ -357,6 +363,7 @@ module.exports = {
const type = parseInt(data.type, 10);
const { PermissionsBitField } = this.getDBM().DiscordJS;
let permissions = {};
+
switch (type) {
case 0: {
permissions = new PermissionsBitField(this.evalMessage(data.bitFields, cache));
@@ -415,6 +422,7 @@ module.exports = {
default:
break;
}
+
const storage = parseInt(data.storage, 10);
const varName = this.evalMessage(data.varName, cache);
this.storeValue(permissions, storage, varName, cache);
From 7b89ef321b6de46e313c167373c0a51623adebca Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Sat, 3 Jun 2023 20:31:30 -0500
Subject: [PATCH 06/62] Fix data
---
actions/edit_emoji_MOD.js | 2 +-
create_forum_channel_MOD.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/actions/edit_emoji_MOD.js b/actions/edit_emoji_MOD.js
index fd132f48..d8a486fa 100644
--- a/actions/edit_emoji_MOD.js
+++ b/actions/edit_emoji_MOD.js
@@ -43,7 +43,7 @@ module.exports = {
this.callListFunc(emoji, 'edit', [{ emojiData }]).then(() => this.callNextAction(cache));
} else if (emoji && emoji.edit) {
emoji
- .edit({ emojiData })
+ .edit(emojiData)
.then(() => this.callNextAction(cache))
.catch(this.displayError.bind(this, data, cache));
}
diff --git a/create_forum_channel_MOD.js b/create_forum_channel_MOD.js
index 3669e34d..0fe4d3ce 100644
--- a/create_forum_channel_MOD.js
+++ b/create_forum_channel_MOD.js
@@ -89,7 +89,7 @@ module.exports = {
channelData.type = 15;
server.channels
- .create({ channelData })
+ .create(channelData)
.then((channel) => {
const storage = parseInt(data.storage, 10);
const varName = this.evalMessage(data.varName, cache);
From 96700d2af74114a21b26b9718772e0e57f4c0732 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Sun, 4 Jun 2023 07:30:39 -0500
Subject: [PATCH 07/62] Remove forum channel MOD, update clone channel
---
actions/clone_channel_MOD.js | 3 +-
create_forum_channel_MOD.js | 103 -----------------------------------
2 files changed, 2 insertions(+), 104 deletions(-)
delete mode 100644 create_forum_channel_MOD.js
diff --git a/actions/clone_channel_MOD.js b/actions/clone_channel_MOD.js
index 6fa1bf6d..ec8b6cb8 100644
--- a/actions/clone_channel_MOD.js
+++ b/actions/clone_channel_MOD.js
@@ -152,6 +152,7 @@ module.exports = {
nsfw: data.nsfw === '1' ? channel.nsfw : false,
rateLimitPerUser: data.slowmode === '1' ? channel.rateLimitPerUser : 0,
defaultReactionEmoji: channel.defaultReactionEmoji,
+ name: channel.name,
};
if (channel.type === 'GUILD_VOICE') {
@@ -169,7 +170,7 @@ module.exports = {
}
channel.guild.channels
- .create(channel.name, options)
+ .create(options)
.then((newChannel) => {
const storage2 = parseInt(data.storage2, 10);
const varName2 = this.evalMessage(data.varName2, cache);
diff --git a/create_forum_channel_MOD.js b/create_forum_channel_MOD.js
deleted file mode 100644
index 0fe4d3ce..00000000
--- a/create_forum_channel_MOD.js
+++ /dev/null
@@ -1,103 +0,0 @@
-module.exports = {
- name: 'Create Forum Channel',
- section: 'Channel Control',
- meta: {
- version: '2.2.0',
- preciseCheck: false,
- author: 'DBM Mods',
- authorUrl: 'https://github.com/dbm-network/mods',
- downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/create_forum_channel_MOD.js',
- },
-
- subtitle(data) {
- return `${data.channelName}`;
- },
-
- variableStorage(data, varType) {
- const type = parseInt(data.storage, 10);
- if (type !== varType) return;
- return [data.varName, 'Channel'];
- },
-
- fields: ['channelName', 'topic', 'position', 'storage', 'varName', 'categoryID', 'slowmodepost', 'reason'],
-
- html() {
- return `
-
-
- Name
-
-
-
-
- Guidelines
-
-
-
-
-
-
- Slowmode
-
-
-
-
- Reason
-
-
-
-
-
-
-
-`;
- },
-
- init() {},
-
- async action(cache) {
- const data = cache.actions[cache.index];
- const { server } = cache;
-
- const channelData = {
- reason: this.evalMessage(data.reason, cache),
- name: this.evalMessage(data.channelName, cache),
- };
-
- if (data.topic) {
- channelData.topic = this.evalMessage(data.topic, cache);
- }
- if (data.position) {
- channelData.position = parseInt(this.evalMessage(data.position, cache), 10);
- }
- if (data.categoryID) {
- channelData.parent = this.evalMessage(data.categoryID, cache);
- }
- if (data.slowmodepost) {
- channelData.rateLimitPerUser = parseInt(this.evalMessage(data.slowmodepost, cache), 10);
- }
- channelData.type = 15;
-
- server.channels
- .create(channelData)
- .then((channel) => {
- const storage = parseInt(data.storage, 10);
- const varName = this.evalMessage(data.varName, cache);
- this.storeValue(channel, storage, varName, cache);
- this.executeResults(true, data?.branch ?? data, cache);
- })
- .catch((err) => this.displayError(data, cache, err));
- },
-
- mod() {},
-};
From 5c61b5531a4d93e942580f43335e64a3c7c88a81 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Fri, 9 Jun 2023 09:59:26 -0500
Subject: [PATCH 08/62] add try...catch to control music
---
actions/control_music_MOD.js | 54 +++++++++++++++++++-----------------
1 file changed, 29 insertions(+), 25 deletions(-)
diff --git a/actions/control_music_MOD.js b/actions/control_music_MOD.js
index 2f72ad8e..2f4fdbad 100644
--- a/actions/control_music_MOD.js
+++ b/actions/control_music_MOD.js
@@ -88,31 +88,35 @@ module.exports = {
if (!queue) return this.callNextAction(cache);
- switch (action) {
- case 0:
- queue.destroy();
- break;
- case 1:
- queue.setPaused(true);
- break;
- case 2:
- queue.setPaused(false);
- break;
- case 3:
- queue.skip();
- break;
- case 4:
- queue.back();
- break;
- case 5:
- queue.destroy(false);
- break;
- case 6:
- queue.shuffle();
- break;
- case 7:
- queue.setVolume(volume);
- break;
+ try {
+ switch (action) {
+ case 0:
+ queue.destroy();
+ break;
+ case 1:
+ queue.setPaused(true);
+ break;
+ case 2:
+ queue.setPaused(false);
+ break;
+ case 3:
+ queue.skip();
+ break;
+ case 4:
+ queue.back();
+ break;
+ case 5:
+ queue.destroy(false);
+ break;
+ case 6:
+ queue.shuffle();
+ break;
+ case 7:
+ queue.setVolume(volume);
+ break;
+ }
+ } catch (err) {
+ return this.callNextAction(cache);
}
this.callNextAction(cache);
From 703b61ef5fd6d385aed42acdbe7ce8e6b3a44200 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Fri, 9 Jun 2023 13:12:17 -0500
Subject: [PATCH 09/62] Fix color inputs inside html
---
actions/action_list_comment_MOD.js | 6 +++---
actions/color_tool_MOD.js | 12 +++++++-----
actions/send_message_to_console_MOD.js | 4 ++--
3 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/actions/action_list_comment_MOD.js b/actions/action_list_comment_MOD.js
index 40e47cb4..c719dc78 100644
--- a/actions/action_list_comment_MOD.js
+++ b/actions/action_list_comment_MOD.js
@@ -17,9 +17,9 @@ module.exports = {
html() {
return `
-
-
Text Color
-
+
+
Text Color
+
Comment To Show: (Supports some HTML Tags)
diff --git a/actions/color_tool_MOD.js b/actions/color_tool_MOD.js
index 0e5faddb..9d1f87c6 100644
--- a/actions/color_tool_MOD.js
+++ b/actions/color_tool_MOD.js
@@ -22,11 +22,13 @@ module.exports = {
html() {
return `
-Color:
-
-
-
-
`;
+
Text Color
+
+
+
+
+
+
`;
},
init() {},
diff --git a/actions/send_message_to_console_MOD.js b/actions/send_message_to_console_MOD.js
index 7e4ce02e..13836546 100644
--- a/actions/send_message_to_console_MOD.js
+++ b/actions/send_message_to_console_MOD.js
@@ -21,8 +21,8 @@ module.exports = {
html() {
return `
- Color
-
+ Color
+
From fd5d2b98f0c7fc8c9d95e36fbbe226f996894117 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Fri, 9 Jun 2023 15:46:41 -0500
Subject: [PATCH 10/62] Start updating music to v14
---
actions/control_music_MOD.js | 26 +++++-----
actions/play_music_MOD.js | 94 ++++++++++++++++++++----------------
events/on_track_start_EVT.js | 23 ++++++---
3 files changed, 81 insertions(+), 62 deletions(-)
diff --git a/actions/control_music_MOD.js b/actions/control_music_MOD.js
index 2f4fdbad..4b144641 100644
--- a/actions/control_music_MOD.js
+++ b/actions/control_music_MOD.js
@@ -8,7 +8,6 @@ module.exports = {
authorUrl: 'https://github.com/dbm-network/mods',
downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/control_music_MOD.js',
},
- requiresAudioLibraries: true,
fields: ['action', 'volume'],
subtitle(data) {
@@ -74,42 +73,45 @@ module.exports = {
glob.onChange(document.getElementById('action'));
},
- action(cache) {
- const { Bot } = this.getDBM();
+ async action(cache) {
const data = cache.actions[cache.index];
- const queue = Bot.bot.player.getQueue(cache.server);
const action = parseInt(data.action, 10);
const volume = parseInt(this.evalMessage(data.volume, cache), 10);
+ const { useQueue, useHistory } = require('discord-player');
+
+ const server = cache.server;
+ if (!server) return this.callNextAction(cache);
+
+ const queue = useQueue(server.id);
+ const history = useHistory(server.id);
if (volume && isNaN(volume)) {
console.log('Invalid volume number in Control Music');
return this.callNexAction(cache);
}
- if (!queue) return this.callNextAction(cache);
-
try {
switch (action) {
case 0:
- queue.destroy();
+ queue.delete(); // Stop playing
break;
case 1:
- queue.setPaused(true);
+ queue.node.pause();
break;
case 2:
- queue.setPaused(false);
+ queue.node.resume();
break;
case 3:
- queue.skip();
+ queue.node.skip();
break;
case 4:
- queue.back();
+ await history.previous();
break;
case 5:
queue.destroy(false);
break;
case 6:
- queue.shuffle();
+ queue.tracks.shuffle();
break;
case 7:
queue.setVolume(volume);
diff --git a/actions/play_music_MOD.js b/actions/play_music_MOD.js
index e99e1a1b..bbb779fe 100644
--- a/actions/play_music_MOD.js
+++ b/actions/play_music_MOD.js
@@ -9,7 +9,7 @@ module.exports = {
downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/play_music_MOD.js',
},
requiresAudioLibraries: true,
- fields: ['query', 'voiceChannel', 'varName', 'storage', 'varName2', 'type'],
+ fields: ['query', 'voiceChannel', 'varName', 'storage', 'varName2', '', 'volume', 'leaveOnEmpty', 'leaveOnEnd'],
subtitle(data) {
return `${data.query}`;
@@ -22,33 +22,42 @@ module.exports = {
html() {
return `
+
YouTube Search
-
+
+
+
-
-
Play Type
-
- Add to Queue
- Play Immediately
-
+
+
+ Default Volume
+
+
+
+
+
+
-
+
+
+
-
+
NOTE:
Youtube URLs and IDs are hit and miss due to using ytdl-core.
In theory you should be able to use the following:
Soundcloud URL, YouTube Search, YouTube song/playlist URL, YouTube ID,
Spotify Song/playlist/album, vimeo, facebook and reverbnation.
+
`;
},
@@ -58,44 +67,45 @@ module.exports = {
const data = cache.actions[cache.index];
const server = cache.server;
const channel = cache.msg?.channel ?? cache.interaction?.channel;
- const { Bot } = this.getDBM();
- const Mods = this.getMods();
- const playdl = Mods.require('play-dl');
- const player = Bot.bot.player;
+ const { Files } = this.getDBM();
const voiceChannel = await this.getVoiceChannelFromData(data.voiceChannel, data.varName2, cache);
+ const Mods = this.getMods();
+ // Setup Music
+ const { useMasterPlayer } = Mods.require('discord-player');
+ const player = useMasterPlayer();
const query = this.evalMessage(data.query, cache);
- const queue = player.createQueue(server, {
- metadata: {
- channel,
- },
- async onBeforeCreateStream(track, source) {
- if (source === 'youtube') {
- return (await playdl.stream(track.url, { discordPlayerCompatibility: true })).stream;
- }
- },
- });
+ if (!server ?? !query) return this.callNextAction();
+
+ let volume = 80;
+ if (data.volume) volume = parseInt(this.evalMessage(data.volume, cache), 10) ?? 80;
- const track = await player.search(query, {
- requestedBy: cache.getUser(),
+ // leaveOnEnd & leaveOnEmpty Cooldowns from DBM Settings
+ const leaveVoiceTimeout = Files.data.settings.leaveVoiceTimeout ?? '0';
+ let seconds = parseInt(leaveVoiceTimeout, 10);
+
+ if (isNaN(seconds) || seconds < 0) seconds = 0;
+ if (leaveVoiceTimeout === '' || !isFinite(seconds)) seconds = 0;
+ // Needs to be converted to Milliseconds, keeping the same variable.
+ if (seconds > 0) seconds *= 1000;
+
+ const { track } = await player.play(voiceChannel, query, {
+ nodeOptions: {
+ metadata: {
+ channel,
+ client: server.members.me,
+ requestedBy: cache.getUser(),
+ },
+ selfDeaf: (Files.data.settings.autoDeafen ?? 'true') === 'true',
+ volume,
+ leaveOnEmpty: data.leaveOnEmpty,
+ leaveOnEmptyCooldown: seconds,
+ leaveOnEnd: data.leaveOnEnd,
+ leaveOnEndCooldown: seconds,
+ },
});
- if (track.tracks.length > 0) {
- try {
- if (!queue.connection) await queue.connect(voiceChannel);
- } catch {
- queue.destroy();
- console.log('Could not join voice channel');
- return this.callNextAction(cache);
- }
-
- track.playlist ? queue.addTracks(track.tracks) : queue.addTrack(track.tracks[0]);
- if (data.type === '1') {
- await queue.play();
- }
- if (data.type === '0') {
- if (!queue.playing) await queue.play();
- }
+ if (track) {
const storage = parseInt(data.storage, 10);
const varName2 = this.evalMessage(data.varName2, cache);
this.storeValue(track, storage, varName2, cache);
diff --git a/events/on_track_start_EVT.js b/events/on_track_start_EVT.js
index d6b551c6..dedd0c99 100644
--- a/events/on_track_start_EVT.js
+++ b/events/on_track_start_EVT.js
@@ -7,7 +7,11 @@ module.exports = {
mod(DBM) {
const { Bot, Actions, Events } = DBM;
const Mods = Actions.getMods();
- const { Player } = Mods.require('@themondon/discord-player-v13');
+
+ // Require all the needed modules for discord-player
+ const { Player } = Mods.require('discord-player');
+ Mods.require('@discord-player/extractor');
+ Mods.require('play-dl');
DBM.Events.onTrackStart = function onTrackStart(queue, track) {
if (!Bot.$evts['On Track Start']) return;
@@ -21,30 +25,33 @@ module.exports = {
};
const { onReady } = Bot;
- Bot.onReady = function onTrackStartOnReady(...params) {
+ Bot.onReady = async function onTrackStartOnReady(...params) {
Bot.bot.player = new Player(Bot.bot);
+ // This method will load all the extractors from the @discord-player/extractor package
+ await Bot.bot.player.extractors.loadDefault();
+
Bot.bot.on('onTrackStart', DBM.Events.onTrackStart);
- Bot.bot.player
- .on('trackStart', async (queue, track) => {
+ Bot.bot.player.events
+ .on('playerStart', async (queue, track) => {
Events.onTrackStart(queue, track);
})
- .on('trackAdd', async (queue, track) => {
+ .on('audioTrackAdd', async (queue, track) => {
Events.onTrackAdd(queue, track);
})
- .on('tracksAdd', async (queue, track) => {
+ .on('audioTracksAdd', async (queue, track) => {
Events.onTracksAdd(queue, track);
})
.on('noResults', async (queue, track) => {
Events.onPlayerNoResults(queue, track);
})
- .on('queueEnd', async (queue) => {
+ .on('emptyQueue', async (queue) => {
Events.onQueueEnd(queue);
})
.on('error', async (queue, error) => {
Events.onPlayerError(queue, error);
})
- .on('connectionError', async (queue, error) => {
+ .on('playerError', async (queue, error) => {
Events.onPlayerConnectionError(queue, error);
});
From d8fb7139ae24902e58268981e488ee4376b4ec65 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Fri, 9 Jun 2023 23:22:22 -0500
Subject: [PATCH 11/62] Remove Anchor Actions (Now default)
---
actions/anchor_create_MOD.js | 56 ----------------------------
actions/anchor_jump_MOD.js | 71 ------------------------------------
2 files changed, 127 deletions(-)
delete mode 100644 actions/anchor_create_MOD.js
delete mode 100644 actions/anchor_jump_MOD.js
diff --git a/actions/anchor_create_MOD.js b/actions/anchor_create_MOD.js
deleted file mode 100644
index 5d860efb..00000000
--- a/actions/anchor_create_MOD.js
+++ /dev/null
@@ -1,56 +0,0 @@
-module.exports = {
- name: 'Create Anchor',
- section: 'Other Stuff',
- meta: {
- version: '2.2.0',
- 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 4a87cd9c..00000000
--- a/actions/anchor_jump_MOD.js
+++ /dev/null
@@ -1,71 +0,0 @@
-module.exports = {
- name: 'Jump to Anchor',
- section: 'Other Stuff',
- meta: {
- version: '2.2.0',
- 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;
- };
- },
-};
From 2c2a8c79770422df0c9a4132b153a71a1d91f845 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Sat, 10 Jun 2023 01:38:59 -0500
Subject: [PATCH 12/62] A lot of music for v14 fixes/updates
---
actions/control_music_MOD.js | 9 ++--
actions/play_music_MOD.js | 55 ++++++++++++------------
actions/set_music_repeat_mode_MOD.js | 7 +++-
actions/store_queue_info_MOD.js | 62 ++++++++++++++++------------
events/on_player_no_results_EVT.js | 22 ----------
events/on_track_start_EVT.js | 3 --
6 files changed, 71 insertions(+), 87 deletions(-)
delete mode 100644 events/on_player_no_results_EVT.js
diff --git a/actions/control_music_MOD.js b/actions/control_music_MOD.js
index 4b144641..e1163f5c 100644
--- a/actions/control_music_MOD.js
+++ b/actions/control_music_MOD.js
@@ -77,13 +77,13 @@ module.exports = {
const data = cache.actions[cache.index];
const action = parseInt(data.action, 10);
const volume = parseInt(this.evalMessage(data.volume, cache), 10);
- const { useQueue, useHistory } = require('discord-player');
+ const { useQueue } = require('discord-player');
const server = cache.server;
if (!server) return this.callNextAction(cache);
const queue = useQueue(server.id);
- const history = useHistory(server.id);
+ if (!queue) this.callNextAction(cache);
if (volume && isNaN(volume)) {
console.log('Invalid volume number in Control Music');
@@ -105,10 +105,10 @@ module.exports = {
queue.node.skip();
break;
case 4:
- await history.previous();
+ queue.history.back();
break;
case 5:
- queue.destroy(false);
+ queue.clear();
break;
case 6:
queue.tracks.shuffle();
@@ -118,6 +118,7 @@ module.exports = {
break;
}
} catch (err) {
+ console.log(err);
return this.callNextAction(cache);
}
diff --git a/actions/play_music_MOD.js b/actions/play_music_MOD.js
index bbb779fe..bfb1b5d4 100644
--- a/actions/play_music_MOD.js
+++ b/actions/play_music_MOD.js
@@ -17,7 +17,7 @@ module.exports = {
variableStorage(data, varType) {
if (parseInt(data.storage, 10) !== varType) return;
- return [data.varName3, 'Music Track'];
+ return [data.varName2, 'Music Track'];
},
html() {
@@ -48,15 +48,6 @@ module.exports = {
-
-
-
- NOTE:
- Youtube URLs and IDs are hit and miss due to using ytdl-core.
- In theory you should be able to use the following:
- Soundcloud URL, YouTube Search, YouTube song/playlist URL, YouTube ID,
- Spotify Song/playlist/album, vimeo, facebook and reverbnation.
-
`;
},
@@ -89,27 +80,33 @@ module.exports = {
// Needs to be converted to Milliseconds, keeping the same variable.
if (seconds > 0) seconds *= 1000;
- const { track } = await player.play(voiceChannel, query, {
- nodeOptions: {
- metadata: {
- channel,
- client: server.members.me,
- requestedBy: cache.getUser(),
+ try {
+ const { track } = await player.play(voiceChannel, query, {
+ nodeOptions: {
+ metadata: {
+ channel,
+ client: server.members.me,
+ requestedBy: cache.getUser(),
+ },
+ selfDeaf: (Files.data.settings.autoDeafen ?? 'true') === 'true',
+ volume,
+ leaveOnEmpty: data.leaveOnEmpty,
+ leaveOnEmptyCooldown: seconds,
+ leaveOnEnd: data.leaveOnEnd,
+ leaveOnEndCooldown: seconds,
},
- selfDeaf: (Files.data.settings.autoDeafen ?? 'true') === 'true',
- volume,
- leaveOnEmpty: data.leaveOnEmpty,
- leaveOnEmptyCooldown: seconds,
- leaveOnEnd: data.leaveOnEnd,
- leaveOnEndCooldown: seconds,
- },
- });
-
- if (track) {
- const storage = parseInt(data.storage, 10);
- const varName2 = this.evalMessage(data.varName2, cache);
- this.storeValue(track, storage, varName2, cache);
+ });
+
+ if (track) {
+ const storage = parseInt(data.storage, 10);
+ const varName2 = this.evalMessage(data.varName2, cache);
+ this.storeValue(track, storage, varName2, cache);
+ }
+ } catch (err) {
+ console.log(err);
+ this.callNextAction(cache);
}
+
this.callNextAction(cache);
},
diff --git a/actions/set_music_repeat_mode_MOD.js b/actions/set_music_repeat_mode_MOD.js
index 2260e1a7..c4a67e32 100644
--- a/actions/set_music_repeat_mode_MOD.js
+++ b/actions/set_music_repeat_mode_MOD.js
@@ -32,11 +32,14 @@ module.exports = {
init() {},
action(cache) {
- const { Bot } = this.getDBM();
const data = cache.actions[cache.index];
- const queue = Bot.bot.player.getQueue(cache.server);
const action = parseInt(data.action, 10);
+ const { useQueue } = require('discord-player');
+ const server = cache.server;
+ if (!server) return this.callNextAction(cache);
+
+ const queue = useQueue(server.id);
if (!queue) return this.callNextAction(cache);
switch (action) {
diff --git a/actions/store_queue_info_MOD.js b/actions/store_queue_info_MOD.js
index 9b168980..2820e659 100644
--- a/actions/store_queue_info_MOD.js
+++ b/actions/store_queue_info_MOD.js
@@ -9,7 +9,7 @@ module.exports = {
downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/store_queue_info_MOD.js',
},
requiresAudioLibraries: true,
- fields: ['info', 'storage', 'varName'],
+ fields: ['queueObject', 'varName0', 'info', 'storage', 'varName'],
subtitle({ info }) {
const names = [
@@ -18,8 +18,8 @@ module.exports = {
'Is Playing?',
'Repeat Mode',
'Progress Bar',
- 'Formatted Track List',
- 'Now Playing',
+ 'Current Track',
+ 'Queue Channel',
];
return `${names[parseInt(info, 10)]}`;
},
@@ -28,21 +28,20 @@ module.exports = {
if (parseInt(data.storage, 10) !== varType) return;
return [
data.varName,
- [
- 'Tracks',
- 'Previous Tracks',
- 'Is Playing?',
- 'Repeat Mode',
- 'Progress Bar',
- 'Formatted Track List',
- 'Now Playing',
- ][parseInt(data.info, 10)] || 'Queue Info',
+ ['Tracks', 'Previous Tracks', 'Is Playing?', 'Repeat Mode', 'Progress Bar', 'Current Track', 'Queue Channel'][
+ parseInt(data.info, 10)
+ ] || 'Queue Info',
];
},
- html() {
+ html(isEvent) {
return `
-
+ ${
+ isEvent &&
+ '
'
+ }
+
+
Queue Info
Tracks
@@ -50,13 +49,13 @@ module.exports = {
Is Playing?
Repeat Mode
Progress Bar
- Formatted Track List
- Now Playing
+ Current Track
+ Queue Channel
-
+
`;
@@ -65,36 +64,45 @@ module.exports = {
init() {},
async action(cache) {
- const { Bot } = this.getDBM();
const data = cache.actions[cache.index];
- const server = cache.msg?.guildId ?? cache.interaction?.guildId;
- const queue = Bot.bot.player.getQueue(server);
const info = parseInt(data.info, 10);
- let result;
- if (!queue) return this.callNextAction(cache);
+ const type = parseInt(data.storage, 10);
+ const varName = this.evalMessage(data.varName, cache);
+ let queue = this.getVariable(type, varName, cache);
+
+ if (!queue) {
+ const { useQueue } = require('discord-player');
+
+ const server = cache.server;
+ if (!server) return this.callNextAction(cache);
+ queue = useQueue(server.id);
+ if (!queue) return this.callNextAction(cache);
+ }
+
+ let result;
switch (info) {
case 0:
result = queue.tracks;
break;
case 1:
- result = queue.previousTracks;
+ result = queue.history.tracks;
break;
case 2:
- result = queue.playing;
+ result = queue.node.isPlaying();
break;
case 3:
result = queue.repeatMode;
break;
case 4:
- result = queue.createProgressBar({ timecodes: true });
+ result = queue.node.createProgressBar({ timecodes: true });
break;
case 5:
- result = queue.toString();
+ result = queue.currentTrack;
break;
case 6:
- result = queue.nowPlaying();
+ result = queue.metadata.channel;
break;
}
diff --git a/events/on_player_no_results_EVT.js b/events/on_player_no_results_EVT.js
deleted file mode 100644
index 2fb40050..00000000
--- a/events/on_player_no_results_EVT.js
+++ /dev/null
@@ -1,22 +0,0 @@
-module.exports = {
- name: 'On Player No Results',
- isEvent: true,
-
- fields: ['Temp Variable Name (stores the queue):', 'Temp Variable Name (stores the query):'],
-
- mod(DBM) {
- const { Bot, Actions } = DBM;
- DBM.Events = DBM.Events || {};
-
- DBM.Events.onPlayerNoResults = function onPlayerNoResults(queue, query) {
- if (!Bot.$evts['On Player No Results']) return;
-
- for (const event of Bot.$evts['On Player No Results']) {
- const temp = {};
- if (event.temp) temp[event.temp] = queue;
- if (event.temp2) temp[event.temp2] = query;
- Actions.invokeEvent(event, queue.metadata.guild, temp);
- }
- };
- },
-};
diff --git a/events/on_track_start_EVT.js b/events/on_track_start_EVT.js
index dedd0c99..8acd7630 100644
--- a/events/on_track_start_EVT.js
+++ b/events/on_track_start_EVT.js
@@ -42,9 +42,6 @@ module.exports = {
.on('audioTracksAdd', async (queue, track) => {
Events.onTracksAdd(queue, track);
})
- .on('noResults', async (queue, track) => {
- Events.onPlayerNoResults(queue, track);
- })
.on('emptyQueue', async (queue) => {
Events.onQueueEnd(queue);
})
From 802e425fe95d5ffa218d0c83dbcca0cffdf65a7c Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Sat, 10 Jun 2023 08:46:01 -0500
Subject: [PATCH 13/62] Replace store-in-variable with retrieve-from-variable
Last time I did not know if these were different, SRD confirmed they are different.
---
actions/attach_image_to_embed_MOD.js | 4 ++--
actions/canvas_draw_image_MOD.js | 2 +-
actions/canvas_send_image_MOD.js | 2 +-
actions/cleverbot_MOD.js | 2 +-
actions/compare_permissions_MOD.js | 4 ++--
actions/convert_text_to_list_MOD.js | 2 +-
actions/convert_variable_MOD.js | 2 +-
actions/create_animated_emoji_MOD.js | 2 +-
actions/filter_list_or_object_MOD.js | 2 +-
actions/find_item_in_list_MOD.js | 2 +-
actions/inspect_list_or_object_MOD.js | 2 +-
actions/parse_from_stored_json_MOD.js | 2 +-
actions/parse_from_stored_webpage_MOD.js | 2 +-
actions/send_embed_to_webhook_MOD.js | 2 +-
actions/store_audit_log_info_MOD.js | 2 +-
actions/store_category_info_MOD.js | 2 +-
actions/store_emoji_info_MOD.js | 2 +-
actions/store_permissions_Info_MOD.js | 2 +-
actions/store_reaction_info_MOD.js | 2 +-
actions/store_regex_matched_variable_MOD.js | 2 +-
actions/store_webhook_info_MOD.js | 2 +-
actions/variable_pattern_MOD.js | 2 +-
22 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/actions/attach_image_to_embed_MOD.js b/actions/attach_image_to_embed_MOD.js
index 425438ab..b12e2d8e 100644
--- a/actions/attach_image_to_embed_MOD.js
+++ b/actions/attach_image_to_embed_MOD.js
@@ -21,12 +21,12 @@ module.exports = {
html() {
return `
-
+
-
+
diff --git a/actions/canvas_draw_image_MOD.js b/actions/canvas_draw_image_MOD.js
index 46cf8b6f..3c87340b 100644
--- a/actions/canvas_draw_image_MOD.js
+++ b/actions/canvas_draw_image_MOD.js
@@ -20,7 +20,7 @@ module.exports = {
html() {
return `
-
+
diff --git a/actions/canvas_send_image_MOD.js b/actions/canvas_send_image_MOD.js
index 1b8bb258..dd3316f3 100644
--- a/actions/canvas_send_image_MOD.js
+++ b/actions/canvas_send_image_MOD.js
@@ -32,7 +32,7 @@ module.exports = {
html() {
return `
-
+
diff --git a/actions/cleverbot_MOD.js b/actions/cleverbot_MOD.js
index 58f7bd2c..cd8dec89 100644
--- a/actions/cleverbot_MOD.js
+++ b/actions/cleverbot_MOD.js
@@ -37,7 +37,7 @@ module.exports = {
-
+
diff --git a/actions/compare_permissions_MOD.js b/actions/compare_permissions_MOD.js
index ac2182ad..cd5ffed3 100644
--- a/actions/compare_permissions_MOD.js
+++ b/actions/compare_permissions_MOD.js
@@ -25,12 +25,12 @@ module.exports = {
html() {
return `
-
+
-
+
diff --git a/actions/convert_text_to_list_MOD.js b/actions/convert_text_to_list_MOD.js
index b35c4c96..47ac5707 100644
--- a/actions/convert_text_to_list_MOD.js
+++ b/actions/convert_text_to_list_MOD.js
@@ -26,7 +26,7 @@ module.exports = {
html() {
return `
-
+
diff --git a/actions/convert_variable_MOD.js b/actions/convert_variable_MOD.js
index 90fe9d82..bc79e2a2 100644
--- a/actions/convert_variable_MOD.js
+++ b/actions/convert_variable_MOD.js
@@ -33,7 +33,7 @@ module.exports = {
html() {
return `
-
+
diff --git a/actions/create_animated_emoji_MOD.js b/actions/create_animated_emoji_MOD.js
index f8775572..128e96be 100644
--- a/actions/create_animated_emoji_MOD.js
+++ b/actions/create_animated_emoji_MOD.js
@@ -29,7 +29,7 @@ module.exports = {
-
+
diff --git a/actions/filter_list_or_object_MOD.js b/actions/filter_list_or_object_MOD.js
index 652a8dcf..b9aaee43 100644
--- a/actions/filter_list_or_object_MOD.js
+++ b/actions/filter_list_or_object_MOD.js
@@ -25,7 +25,7 @@ module.exports = {
return `
-
+
diff --git a/actions/find_item_in_list_MOD.js b/actions/find_item_in_list_MOD.js
index b1b077fd..a470b2fe 100644
--- a/actions/find_item_in_list_MOD.js
+++ b/actions/find_item_in_list_MOD.js
@@ -35,7 +35,7 @@ module.exports = {
html() {
return `
-
+
diff --git a/actions/inspect_list_or_object_MOD.js b/actions/inspect_list_or_object_MOD.js
index 7fac57b4..149d0fed 100644
--- a/actions/inspect_list_or_object_MOD.js
+++ b/actions/inspect_list_or_object_MOD.js
@@ -24,7 +24,7 @@ module.exports = {
return `
-
+
diff --git a/actions/parse_from_stored_json_MOD.js b/actions/parse_from_stored_json_MOD.js
index f6673515..f21348c9 100644
--- a/actions/parse_from_stored_json_MOD.js
+++ b/actions/parse_from_stored_json_MOD.js
@@ -32,7 +32,7 @@ module.exports = {
-
+
diff --git a/actions/parse_from_stored_webpage_MOD.js b/actions/parse_from_stored_webpage_MOD.js
index a9aace60..62921b5a 100644
--- a/actions/parse_from_stored_webpage_MOD.js
+++ b/actions/parse_from_stored_webpage_MOD.js
@@ -32,7 +32,7 @@ module.exports = {
-
+
diff --git a/actions/send_embed_to_webhook_MOD.js b/actions/send_embed_to_webhook_MOD.js
index 2ea4ad14..2e5c24f0 100644
--- a/actions/send_embed_to_webhook_MOD.js
+++ b/actions/send_embed_to_webhook_MOD.js
@@ -18,7 +18,7 @@ module.exports = {
html() {
return `
-
+
diff --git a/actions/store_audit_log_info_MOD.js b/actions/store_audit_log_info_MOD.js
index 57a101fe..c450cff5 100644
--- a/actions/store_audit_log_info_MOD.js
+++ b/actions/store_audit_log_info_MOD.js
@@ -67,7 +67,7 @@ module.exports = {
html() {
return `
-
+
diff --git a/actions/store_category_info_MOD.js b/actions/store_category_info_MOD.js
index 8c94a7d9..41902350 100644
--- a/actions/store_category_info_MOD.js
+++ b/actions/store_category_info_MOD.js
@@ -70,7 +70,7 @@ module.exports = {
html() {
return `
-
+
diff --git a/actions/store_emoji_info_MOD.js b/actions/store_emoji_info_MOD.js
index 975bb197..ce19bdc4 100644
--- a/actions/store_emoji_info_MOD.js
+++ b/actions/store_emoji_info_MOD.js
@@ -82,7 +82,7 @@ module.exports = {
html() {
return `
-
+
diff --git a/actions/store_permissions_Info_MOD.js b/actions/store_permissions_Info_MOD.js
index 369a0a41..430200f4 100644
--- a/actions/store_permissions_Info_MOD.js
+++ b/actions/store_permissions_Info_MOD.js
@@ -77,7 +77,7 @@ module.exports = {
html() {
return `
-
+
diff --git a/actions/store_reaction_info_MOD.js b/actions/store_reaction_info_MOD.js
index 41638002..2bc8b882 100644
--- a/actions/store_reaction_info_MOD.js
+++ b/actions/store_reaction_info_MOD.js
@@ -66,7 +66,7 @@ module.exports = {
html() {
return `
-
+
diff --git a/actions/store_regex_matched_variable_MOD.js b/actions/store_regex_matched_variable_MOD.js
index 5991d0e7..63e97521 100644
--- a/actions/store_regex_matched_variable_MOD.js
+++ b/actions/store_regex_matched_variable_MOD.js
@@ -35,7 +35,7 @@ module.exports = {
-
+
diff --git a/actions/store_webhook_info_MOD.js b/actions/store_webhook_info_MOD.js
index 11c079f3..10ccc89f 100644
--- a/actions/store_webhook_info_MOD.js
+++ b/actions/store_webhook_info_MOD.js
@@ -51,7 +51,7 @@ module.exports = {
html() {
return `
-
+
diff --git a/actions/variable_pattern_MOD.js b/actions/variable_pattern_MOD.js
index ed0024cb..61160b19 100644
--- a/actions/variable_pattern_MOD.js
+++ b/actions/variable_pattern_MOD.js
@@ -24,7 +24,7 @@ module.exports = {
html() {
return `
-
+
From f8135a1e68f5606a4d437310b23206856af958d3 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Sat, 10 Jun 2023 09:31:26 -0500
Subject: [PATCH 14/62] html fixes, check if member fix, music fix & new music
actions
---
actions/action_list_comment_MOD.js | 2 +-
actions/check_if_member_MOD.js | 12 ++--
actions/find_reaction_MOD.js | 2 +-
actions/send_message_to_console_MOD.js | 4 +-
actions/store_queue_info_MOD.js | 2 +-
actions/store_track_info_MOD.js | 94 ++++++++++++++++++++++++++
6 files changed, 104 insertions(+), 12 deletions(-)
create mode 100644 actions/store_track_info_MOD.js
diff --git a/actions/action_list_comment_MOD.js b/actions/action_list_comment_MOD.js
index c719dc78..57a39d8e 100644
--- a/actions/action_list_comment_MOD.js
+++ b/actions/action_list_comment_MOD.js
@@ -20,7 +20,7 @@ module.exports = {
Text Color
-
+
Comment To Show: (Supports some HTML Tags)
diff --git a/actions/check_if_member_MOD.js b/actions/check_if_member_MOD.js
index d29a7429..3a9291c1 100644
--- a/actions/check_if_member_MOD.js
+++ b/actions/check_if_member_MOD.js
@@ -35,7 +35,7 @@ module.exports = {
-
+
Check If Member
@@ -60,21 +60,19 @@ module.exports = {
-
`;
+
`;
},
init() {},
async action(cache) {
- let member;
const data = cache.actions[cache.index];
const info = parseInt(data.info, 10);
const { Files } = this.getDBM();
const { msg, interaction } = cache;
+ const member = await this.getMemberFromData(data.member, data.varName, cache);
- try {
- member = await this.getMemberFromData(data.member, data.varName, cache);
- } catch (_err) {
+ if (!member) {
console.error('You need to provide a member of some sort to the "Check If Member" action');
return this.executeResults(false, data?.branch ?? data, cache);
}
@@ -82,7 +80,7 @@ module.exports = {
let result = false;
switch (info) {
case 0:
- result = member.user?.bot || member.bot;
+ result = member.user?.bot;
break;
case 1:
result = member.bannable;
diff --git a/actions/find_reaction_MOD.js b/actions/find_reaction_MOD.js
index bd6ae3d7..b4cd93b0 100644
--- a/actions/find_reaction_MOD.js
+++ b/actions/find_reaction_MOD.js
@@ -27,7 +27,7 @@ module.exports = {
-
+
Source Emoji
diff --git a/actions/send_message_to_console_MOD.js b/actions/send_message_to_console_MOD.js
index 13836546..210730cc 100644
--- a/actions/send_message_to_console_MOD.js
+++ b/actions/send_message_to_console_MOD.js
@@ -21,8 +21,8 @@ module.exports = {
html() {
return `
- Color
-
+ Text Color
+
diff --git a/actions/store_queue_info_MOD.js b/actions/store_queue_info_MOD.js
index 2820e659..12a6c89e 100644
--- a/actions/store_queue_info_MOD.js
+++ b/actions/store_queue_info_MOD.js
@@ -67,7 +67,7 @@ module.exports = {
const data = cache.actions[cache.index];
const info = parseInt(data.info, 10);
- const type = parseInt(data.storage, 10);
+ const type = parseInt(data.queueObject, 10);
const varName = this.evalMessage(data.varName, cache);
let queue = this.getVariable(type, varName, cache);
diff --git a/actions/store_track_info_MOD.js b/actions/store_track_info_MOD.js
new file mode 100644
index 00000000..a7ee7280
--- /dev/null
+++ b/actions/store_track_info_MOD.js
@@ -0,0 +1,94 @@
+module.exports = {
+ name: 'Store Queue Info',
+ section: 'Audio Control',
+ meta: {
+ version: '2.2.0',
+ preciseCheck: false,
+ author: 'DBM Mods',
+ authorUrl: 'https://github.com/dbm-network/mods',
+ downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/store_track_info_MOD.js',
+ },
+ requiresAudioLibraries: true,
+ fields: ['trackObject', 'varName', 'info', 'storage', 'varName1'],
+
+ subtitle({ info }) {
+ const names = ['Track Title', 'Track Thumbnail', 'Track URL', 'Track Author', 'Track Duration', 'Requested By'];
+ return `${names[parseInt(info, 10)]}`;
+ },
+
+ variableStorage(data, varType) {
+ if (parseInt(data.storage, 10) !== varType) return;
+ return [
+ data.varName,
+ ['Track Title', 'Track Thumbnail', 'Track URL', 'Track Author', 'Track Duration', 'Requested By'][
+ parseInt(data.info, 10)
+ ] || 'Track Info',
+ ];
+ },
+
+ html() {
+ return `
+
+
+
+Track Info
+
+ Track Title
+ Track Thumbnail
+ Track URL
+ Track Author
+ Track Duration
+ Requested By
+
+
+
+
+
+
+
+`;
+ },
+
+ init() {},
+
+ async action(cache) {
+ const data = cache.actions[cache.index];
+ const info = parseInt(data.info, 10);
+
+ const type = parseInt(data.trackObject, 10);
+ const varName = this.evalMessage(data.varName, cache);
+ const track = this.getVariable(type, varName, cache);
+ if (!track) return this.callNextAction(cache);
+
+ let result;
+ switch (info) {
+ case 0:
+ result = track.title;
+ break;
+ case 1:
+ result = track.thumbnail;
+ break;
+ case 2:
+ result = track.url;
+ break;
+ case 3:
+ result = track.author;
+ break;
+ case 4:
+ result = track.duration;
+ break;
+ case 5:
+ result = track.requestedBy;
+ 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() {},
+};
From af9647f8b0d8eb223a725e075c4b5be35d6b7368 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Sat, 10 Jun 2023 13:23:36 -0500
Subject: [PATCH 15/62] Force rgb-hex to use 3.0.0
---
actions/color_from_image_MOD.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/actions/color_from_image_MOD.js b/actions/color_from_image_MOD.js
index db70ef8d..99ba456a 100644
--- a/actions/color_from_image_MOD.js
+++ b/actions/color_from_image_MOD.js
@@ -47,7 +47,7 @@ module.exports = {
async action(cache) {
const Mods = this.getMods();
const { getColorFromURL } = Mods.require('color-thief-node');
- const rgbToHex = Mods.require('rgb-hex');
+ const rgbToHex = Mods.require('rgb-hex', '3.0.0');
const data = cache.actions[cache.index];
const info = parseInt(data.info, 10);
const url = this.evalMessage(data.find, cache);
From 0e2ea2e661e3974514e5a6c1d5641577070a2165 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Sun, 11 Jun 2023 00:31:24 -0500
Subject: [PATCH 16/62] Music Updates/Fixes
---
actions/play_music_MOD.js | 16 +++++++++------
actions/store_queue_info_MOD.js | 36 +++++++++++++++++++++------------
actions/store_track_info_MOD.js | 8 ++++----
3 files changed, 37 insertions(+), 23 deletions(-)
diff --git a/actions/play_music_MOD.js b/actions/play_music_MOD.js
index bfb1b5d4..40fb60a6 100644
--- a/actions/play_music_MOD.js
+++ b/actions/play_music_MOD.js
@@ -57,6 +57,7 @@ module.exports = {
async action(cache) {
const data = cache.actions[cache.index];
const server = cache.server;
+ const { Actions } = this.getDBM();
const channel = cache.msg?.channel ?? cache.interaction?.channel;
const { Files } = this.getDBM();
const voiceChannel = await this.getVoiceChannelFromData(data.voiceChannel, data.varName2, cache);
@@ -81,13 +82,16 @@ module.exports = {
if (seconds > 0) seconds *= 1000;
try {
- const { track } = await player.play(voiceChannel, query, {
+ const searchResult = await player.search(query, { requestedBy: cache.getUser() });
+
+ if (!searchResult.hasTracks()) {
+ // If player didn't find any songs for this query
+ return Actions.callNextAction();
+ }
+
+ const { track } = await player.play(voiceChannel, searchResult, {
nodeOptions: {
- metadata: {
- channel,
- client: server.members.me,
- requestedBy: cache.getUser(),
- },
+ metadata: channel,
selfDeaf: (Files.data.settings.autoDeafen ?? 'true') === 'true',
volume,
leaveOnEmpty: data.leaveOnEmpty,
diff --git a/actions/store_queue_info_MOD.js b/actions/store_queue_info_MOD.js
index 12a6c89e..7e45fb4b 100644
--- a/actions/store_queue_info_MOD.js
+++ b/actions/store_queue_info_MOD.js
@@ -18,6 +18,7 @@ module.exports = {
'Is Playing?',
'Repeat Mode',
'Progress Bar',
+ 'REMOVED OPTION',
'Current Track',
'Queue Channel',
];
@@ -28,32 +29,39 @@ module.exports = {
if (parseInt(data.storage, 10) !== varType) return;
return [
data.varName,
- ['Tracks', 'Previous Tracks', 'Is Playing?', 'Repeat Mode', 'Progress Bar', 'Current Track', 'Queue Channel'][
- parseInt(data.info, 10)
- ] || 'Queue Info',
+ [
+ 'Tracks',
+ 'Previous Tracks',
+ 'Is Playing?',
+ 'Repeat Mode',
+ 'Progress Bar',
+ 'REMOVED OPTION',
+ 'Current Track',
+ 'Queue Channel',
+ ][parseInt(data.info, 10)] || 'Queue Info',
];
},
html(isEvent) {
return `
${
- isEvent &&
- ' '
+ isEvent
+ ? ' '
+ : ''
}
-
+
-Queue Info
+ Queue Info
Tracks
Previous Tracks
Is Playing?
Repeat Mode
Progress Bar
- Current Track
- Queue Channel
+ Current Track
+ Queue Channel
-
@@ -98,11 +106,13 @@ module.exports = {
case 4:
result = queue.node.createProgressBar({ timecodes: true });
break;
- case 5:
+ case 6:
result = queue.currentTrack;
break;
- case 6:
- result = queue.metadata.channel;
+ case 7:
+ result = queue.metadata;
+ break;
+ default:
break;
}
diff --git a/actions/store_track_info_MOD.js b/actions/store_track_info_MOD.js
index a7ee7280..8cac24ef 100644
--- a/actions/store_track_info_MOD.js
+++ b/actions/store_track_info_MOD.js
@@ -1,5 +1,5 @@
module.exports = {
- name: 'Store Queue Info',
+ name: 'Store Track Info',
section: 'Audio Control',
meta: {
version: '2.2.0',
@@ -19,7 +19,7 @@ module.exports = {
variableStorage(data, varType) {
if (parseInt(data.storage, 10) !== varType) return;
return [
- data.varName,
+ data.varName1,
['Track Title', 'Track Thumbnail', 'Track URL', 'Track Author', 'Track Duration', 'Requested By'][
parseInt(data.info, 10)
] || 'Track Info',
@@ -84,8 +84,8 @@ module.exports = {
if (result !== undefined) {
const storage = parseInt(data.storage, 10);
- const varName = this.evalMessage(data.varName, cache);
- this.storeValue(result, storage, varName, cache);
+ const varName1 = this.evalMessage(data.varName1, cache);
+ this.storeValue(result, storage, varName1, cache);
}
this.callNextAction(cache);
},
From a3b93937e7f43d7fc352da07be50b432f71d2b1e Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Mon, 12 Jun 2023 16:33:57 -0500
Subject: [PATCH 17/62] Music Action Updates
---
actions/control_music_MOD.js | 25 +++++++++++++++++++------
actions/store_queue_info_MOD.js | 6 ++++++
2 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/actions/control_music_MOD.js b/actions/control_music_MOD.js
index e1163f5c..a7ed07ec 100644
--- a/actions/control_music_MOD.js
+++ b/actions/control_music_MOD.js
@@ -8,7 +8,7 @@ module.exports = {
authorUrl: 'https://github.com/dbm-network/mods',
downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/control_music_MOD.js',
},
- fields: ['action', 'volume'],
+ fields: ['action', 'volume', 'skip'],
subtitle(data) {
const actions = [
@@ -43,27 +43,38 @@ module.exports = {
Volume Level
-
`;
+
+
+ Skip Amount
+
+
+`;
},
init() {
const { glob, document } = this;
const volume = document.getElementById('volumeDiv');
+ const skip = document.getElementById('skipDiv');
glob.onChange = function onChange(event) {
switch (parseInt(event.value, 10)) {
+ case 3:
+ skip.style.display = null;
+ volume.style.display = 'none';
+ break;
case 0:
case 1:
case 2:
- case 3:
case 4:
case 5:
case 6:
volume.style.display = 'none';
+ skip.style.display = 'none';
break;
case 7:
volume.style.display = null;
+ skip.style.display = 'none';
break;
default:
break;
@@ -83,7 +94,7 @@ module.exports = {
if (!server) return this.callNextAction(cache);
const queue = useQueue(server.id);
- if (!queue) this.callNextAction(cache);
+ if (!queue) return this.callNextAction(cache);
if (volume && isNaN(volume)) {
console.log('Invalid volume number in Control Music');
@@ -101,9 +112,11 @@ module.exports = {
case 2:
queue.node.resume();
break;
- case 3:
- queue.node.skip();
+ case 3: {
+ const amount = parseInt(this.evalMessage(data.skip, cache), 10) ?? 1;
+ amount === 1 ? queue.node.skip() : queue.node.skipTo(amount);
break;
+ }
case 4:
queue.history.back();
break;
diff --git a/actions/store_queue_info_MOD.js b/actions/store_queue_info_MOD.js
index 7e45fb4b..0c5c7f2e 100644
--- a/actions/store_queue_info_MOD.js
+++ b/actions/store_queue_info_MOD.js
@@ -21,6 +21,7 @@ module.exports = {
'REMOVED OPTION',
'Current Track',
'Queue Channel',
+ 'Queue Object',
];
return `${names[parseInt(info, 10)]}`;
},
@@ -38,6 +39,7 @@ module.exports = {
'REMOVED OPTION',
'Current Track',
'Queue Channel',
+ 'Queue Object',
][parseInt(data.info, 10)] || 'Queue Info',
];
},
@@ -60,6 +62,7 @@ module.exports = {
Progress Bar
Current Track
Queue Channel
+ Queue Object
@@ -112,6 +115,9 @@ module.exports = {
case 7:
result = queue.metadata;
break;
+ case 8:
+ result = queue;
+ break;
default:
break;
}
From 7223e0b285346f01306e7be2b1b7e801236a3b0f Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Mon, 12 Jun 2023 16:44:08 -0500
Subject: [PATCH 18/62] Remove forum channel mod: new default action
---
actions/create_forum_channel_MOD.js | 86 -----------------------------
1 file changed, 86 deletions(-)
delete mode 100644 actions/create_forum_channel_MOD.js
diff --git a/actions/create_forum_channel_MOD.js b/actions/create_forum_channel_MOD.js
deleted file mode 100644
index 6afe7c06..00000000
--- a/actions/create_forum_channel_MOD.js
+++ /dev/null
@@ -1,86 +0,0 @@
-module.exports = {
- name: 'Create Forum Channel',
- section: 'Channel Control',
- 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/create_forum_channel_MOD.js',
- },
- subtitle(data) {
- return `${data.channelName}`;
- },
- variableStorage(data, varType) {
- const type = parseInt(data.storage, 10);
- if (type !== varType) return;
- return [data.varName, 'Channel'];
- },
- fields: ['channelName', 'topic', 'position', 'storage', 'varName', 'categoryID', 'slowmodepost', 'reason'],
- html() {
- return `
-
-
- Name
-
-
-
- Guidelines
-
-
-
-
-
- Slowmode
-
-
-
- Reason
-
-
-
-
-
-
-`;
- },
- init() {},
- async action(cache) {
- const data = cache.actions[cache.index];
- const { server } = cache;
- const name = this.evalMessage(data.channelName, cache);
- const channelData = { reason: this.evalMessage(data.reason, cache) };
- if (data.topic) {
- channelData.topic = this.evalMessage(data.topic, cache);
- }
- if (data.position) {
- channelData.position = parseInt(this.evalMessage(data.position, cache), 10);
- }
- if (data.categoryID) {
- channelData.parent = this.evalMessage(data.categoryID, cache);
- }
- if (data.slowmodepost) {
- channelData.rateLimitPerUser = parseInt(this.evalMessage(data.slowmodepost, cache), 10);
- }
- channelData.type = 15;
- server.channels
- .create(name, channelData)
- .then((channel) => {
- const storage = parseInt(data.storage, 10);
- const varName = this.evalMessage(data.varName, cache);
- this.storeValue(channel, storage, varName, cache);
- this.executeResults(true, data?.branch ?? data, cache);
- })
- .catch((err) => this.displayError(data, cache, err));
- },
- mod() {},
-};
From db77a7d10d53de61ce0f3c1149ab7343d09718e5 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Mon, 12 Jun 2023 17:48:19 -0500
Subject: [PATCH 19/62] Minor code changes
---
actions/delete_webhook_MOD.js | 2 +-
actions/generate_random_emoji_MOD.js | 2 +-
actions/generate_random_word_MOD.js | 6 +++---
actions/get_lyrics_MOD.js | 9 +--------
actions/google_search_MOD.js | 4 +---
5 files changed, 7 insertions(+), 16 deletions(-)
diff --git a/actions/delete_webhook_MOD.js b/actions/delete_webhook_MOD.js
index b90342bc..86645f95 100644
--- a/actions/delete_webhook_MOD.js
+++ b/actions/delete_webhook_MOD.js
@@ -17,7 +17,7 @@ module.exports = {
fields: ['webhook', 'varName'],
html() {
- return `
`;
+ return `
`;
},
init() {},
diff --git a/actions/generate_random_emoji_MOD.js b/actions/generate_random_emoji_MOD.js
index befcd558..3609b375 100644
--- a/actions/generate_random_emoji_MOD.js
+++ b/actions/generate_random_emoji_MOD.js
@@ -34,7 +34,7 @@ module.exports = {
const storage = parseInt(data.storage, 10);
const varName = this.evalMessage(data.varName, cache);
const Mods = this.getMods();
- const emoji = Mods.require('node-emoji');
+ const emoji = Mods.require('node-emoji', '1.11.0'); // Last version that isn't ESM only.
const res = emoji.random();
this.storeValue(res.emoji, storage, varName, cache);
diff --git a/actions/generate_random_word_MOD.js b/actions/generate_random_word_MOD.js
index aba3184b..de418059 100644
--- a/actions/generate_random_word_MOD.js
+++ b/actions/generate_random_word_MOD.js
@@ -53,7 +53,7 @@ module.exports = {
const data = cache.actions[cache.index];
const type = parseInt(data.storage, 10);
const varName = this.evalMessage(data.varName, cache);
- const wps = parseInt(this.evalMessage(data.wps, cache), 10);
+ const wordsPerString = parseInt(this.evalMessage(data.wps, cache), 10);
const min = parseInt(this.evalMessage(data.min, cache), 10);
const max = parseInt(this.evalMessage(data.max, cache), 10) + 1;
@@ -63,12 +63,12 @@ module.exports = {
} else if (isNaN(max)) {
console.log(`Error with Generate Random Word(s), Action #${cache.index}: max is not a number`);
return this.callNextAction(cache);
- } else if (isNaN(wps)) {
+ } else if (isNaN(wordsPerString)) {
console.log(`Error with Generate Random Word(s), Action #${cache.index}: Words Per Sentence is not a number`);
return this.callNextAction(cache);
}
- const words = randomWords({ min, max, wordsPerString: wps });
+ const words = randomWords({ min, max, wordsPerString });
this.storeValue(words, type, varName, cache);
this.callNextAction(cache);
},
diff --git a/actions/get_lyrics_MOD.js b/actions/get_lyrics_MOD.js
index d3227eba..a8b059a7 100644
--- a/actions/get_lyrics_MOD.js
+++ b/actions/get_lyrics_MOD.js
@@ -19,11 +19,7 @@ module.exports = {
let dataType = 'Unknown Type';
switch (parseInt(data.info, 10)) {
case 0:
- dataType = 'String';
- break;
case 1:
- dataType = 'String';
- break;
case 2:
dataType = 'String';
break;
@@ -105,10 +101,7 @@ module.exports = {
`;
},
- init() {
- const { glob, document } = this;
- glob.variableChange(document.getElementById('storage'), 'varNameContainer');
- },
+ init() {},
async action(cache) {
const { Actions } = this.getDBM();
diff --git a/actions/google_search_MOD.js b/actions/google_search_MOD.js
index b16824bf..b0b3397d 100644
--- a/actions/google_search_MOD.js
+++ b/actions/google_search_MOD.js
@@ -102,10 +102,8 @@ module.exports = {
const storage = parseInt(data.storage, 10);
const varName2 = this.evalMessage(data.varName, cache);
this.storeValue(result, storage, varName2, cache);
- this.callNextAction(cache);
- } else {
- this.callNextAction(cache);
}
+ this.callNextAction(cache);
})
.catch((e) => {
console.log(`An error in Google Search MOD: ${e}`);
From dd382496bc6bc8316720521d7d2c82fe5e4ac422 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Mon, 12 Jun 2023 18:21:47 -0500
Subject: [PATCH 20/62] Mod Section Changes
---
actions/base_convert_MOD.js | 2 +-
actions/control_music_MOD.js | 2 +-
actions/convert_seconds_to_days_MOD.js | 2 +-
actions/convert_timestamp_to_date_MOD.js | 2 +-
actions/convert_to_base64_MOD.js | 2 +-
actions/convert_to_morse_code_MOD.js | 2 +-
actions/convert_to_world_time_MOD.js | 2 +-
actions/play_music_MOD.js | 2 +-
actions/set_music_repeat_mode_MOD.js | 2 +-
actions/store_queue_info_MOD.js | 2 +-
actions/store_track_info_MOD.js | 2 +-
11 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/actions/base_convert_MOD.js b/actions/base_convert_MOD.js
index b6f38c6b..546acdb1 100644
--- a/actions/base_convert_MOD.js
+++ b/actions/base_convert_MOD.js
@@ -1,7 +1,7 @@
module.exports = {
name: 'Base Convert MOD',
displayName: 'Base Convert',
- section: 'Other Stuff',
+ section: 'Conversions',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/control_music_MOD.js b/actions/control_music_MOD.js
index a7ed07ec..73dbcb6c 100644
--- a/actions/control_music_MOD.js
+++ b/actions/control_music_MOD.js
@@ -1,6 +1,6 @@
module.exports = {
name: 'Control Music',
- section: 'Audio Control',
+ section: 'Music Control',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/convert_seconds_to_days_MOD.js b/actions/convert_seconds_to_days_MOD.js
index 66577bca..7f6b4514 100644
--- a/actions/convert_seconds_to_days_MOD.js
+++ b/actions/convert_seconds_to_days_MOD.js
@@ -1,6 +1,6 @@
module.exports = {
name: 'Convert Seconds To D/H/M/S',
- section: 'Other Stuff',
+ section: 'Conversions',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/convert_timestamp_to_date_MOD.js b/actions/convert_timestamp_to_date_MOD.js
index e1c7174a..05d1dc9b 100644
--- a/actions/convert_timestamp_to_date_MOD.js
+++ b/actions/convert_timestamp_to_date_MOD.js
@@ -1,6 +1,6 @@
module.exports = {
name: 'Convert Timestamp to Date',
- section: 'Other Stuff',
+ section: 'Conversions',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/convert_to_base64_MOD.js b/actions/convert_to_base64_MOD.js
index 32eb9069..36eb4883 100644
--- a/actions/convert_to_base64_MOD.js
+++ b/actions/convert_to_base64_MOD.js
@@ -1,6 +1,6 @@
module.exports = {
name: 'Convert to Base64',
- section: 'Other Stuff',
+ section: 'Conversions',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/convert_to_morse_code_MOD.js b/actions/convert_to_morse_code_MOD.js
index 20133636..18059bcf 100644
--- a/actions/convert_to_morse_code_MOD.js
+++ b/actions/convert_to_morse_code_MOD.js
@@ -1,6 +1,6 @@
module.exports = {
name: 'Morse Code',
- section: 'Other Stuff',
+ section: 'Conversions',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/convert_to_world_time_MOD.js b/actions/convert_to_world_time_MOD.js
index 486fa416..c57aa2b6 100644
--- a/actions/convert_to_world_time_MOD.js
+++ b/actions/convert_to_world_time_MOD.js
@@ -1,6 +1,6 @@
module.exports = {
name: 'Convert To World Time',
- section: 'Other Stuff',
+ section: 'Conversions',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/play_music_MOD.js b/actions/play_music_MOD.js
index 40fb60a6..6e61b887 100644
--- a/actions/play_music_MOD.js
+++ b/actions/play_music_MOD.js
@@ -1,6 +1,6 @@
module.exports = {
name: 'Play Music',
- section: 'Audio Control',
+ section: 'Music Control',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/set_music_repeat_mode_MOD.js b/actions/set_music_repeat_mode_MOD.js
index c4a67e32..1fda12b0 100644
--- a/actions/set_music_repeat_mode_MOD.js
+++ b/actions/set_music_repeat_mode_MOD.js
@@ -1,6 +1,6 @@
module.exports = {
name: 'Set Music Repeat Mode',
- section: 'Audio Control',
+ section: 'Music Control',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/store_queue_info_MOD.js b/actions/store_queue_info_MOD.js
index 0c5c7f2e..129e8a7d 100644
--- a/actions/store_queue_info_MOD.js
+++ b/actions/store_queue_info_MOD.js
@@ -1,6 +1,6 @@
module.exports = {
name: 'Store Queue Info',
- section: 'Audio Control',
+ section: 'Music Control',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/store_track_info_MOD.js b/actions/store_track_info_MOD.js
index 8cac24ef..2832e036 100644
--- a/actions/store_track_info_MOD.js
+++ b/actions/store_track_info_MOD.js
@@ -1,6 +1,6 @@
module.exports = {
name: 'Store Track Info',
- section: 'Audio Control',
+ section: 'Music Control',
meta: {
version: '2.2.0',
preciseCheck: false,
From 2a3fae9be5bdaa58da173dda38a7543de0ab3bfb Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Mon, 12 Jun 2023 18:32:57 -0500
Subject: [PATCH 21/62] Section changes & minor code changes
---
actions/botsfordiscord_stats_MOD.js | 6 ++++--
actions/get_command_description_MOD.js | 2 +-
actions/get_stats_from_dbl_MOD.js | 2 +-
actions/get_stats_from_dbxyz_MOD.js | 2 +-
actions/send_stats_to_botlist.me_MOD.js | 2 +-
actions/send_stats_to_dbl_MOD.js | 2 +-
actions/store_command_info_MOD.js | 2 +-
7 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/actions/botsfordiscord_stats_MOD.js b/actions/botsfordiscord_stats_MOD.js
index 0520d5d9..cc86b675 100644
--- a/actions/botsfordiscord_stats_MOD.js
+++ b/actions/botsfordiscord_stats_MOD.js
@@ -1,6 +1,6 @@
module.exports = {
name: 'Send Stats to BFD',
- section: 'Other Stuff',
+ section: 'Bot Stats',
meta: {
version: '2.2.0',
preciseCheck: false,
@@ -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/get_command_description_MOD.js b/actions/get_command_description_MOD.js
index c4d9a679..94b26cd8 100644
--- a/actions/get_command_description_MOD.js
+++ b/actions/get_command_description_MOD.js
@@ -1,7 +1,7 @@
module.exports = {
name: 'Get Command Description',
displayName: 'Get Command Description',
- section: 'Other Stuff',
+ section: 'Command Control',
fields: ['findBy', 'commandData', 'saveTo', 'varName'],
meta: {
version: '2.2.0',
diff --git a/actions/get_stats_from_dbl_MOD.js b/actions/get_stats_from_dbl_MOD.js
index ecf9874d..4c399683 100644
--- a/actions/get_stats_from_dbl_MOD.js
+++ b/actions/get_stats_from_dbl_MOD.js
@@ -1,7 +1,7 @@
module.exports = {
name: 'Get Bot Stats From DBL',
displayName: 'Get Bot Stats From TopGG',
- section: 'Other Stuff',
+ section: 'Bot Stats',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/get_stats_from_dbxyz_MOD.js b/actions/get_stats_from_dbxyz_MOD.js
index 7a0257a0..905bc1b7 100644
--- a/actions/get_stats_from_dbxyz_MOD.js
+++ b/actions/get_stats_from_dbxyz_MOD.js
@@ -1,7 +1,7 @@
module.exports = {
name: 'Get Bot Stats From DBXYZ',
displayName: 'Get Bot Stats From Discord Boats',
- section: 'Other Stuff',
+ section: 'Bot Stats',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/send_stats_to_botlist.me_MOD.js b/actions/send_stats_to_botlist.me_MOD.js
index cb98bf97..870ca5b3 100644
--- a/actions/send_stats_to_botlist.me_MOD.js
+++ b/actions/send_stats_to_botlist.me_MOD.js
@@ -1,7 +1,7 @@
module.exports = {
name: 'Sends Stats to Botlist.me',
displayname: 'Send Stats to Botlist.me',
- section: 'Other Stuff',
+ section: 'Bot Stats',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/send_stats_to_dbl_MOD.js b/actions/send_stats_to_dbl_MOD.js
index cb9a907e..0ed8fecb 100644
--- a/actions/send_stats_to_dbl_MOD.js
+++ b/actions/send_stats_to_dbl_MOD.js
@@ -1,7 +1,7 @@
module.exports = {
name: 'Sends Stats to DBL',
displayName: 'Send Stats to TopGG',
- section: 'Other Stuff',
+ section: 'Bot Stats',
meta: {
version: '2.2.0',
preciseCheck: false,
diff --git a/actions/store_command_info_MOD.js b/actions/store_command_info_MOD.js
index fdae1343..de3a9b84 100644
--- a/actions/store_command_info_MOD.js
+++ b/actions/store_command_info_MOD.js
@@ -1,6 +1,6 @@
module.exports = {
name: 'Store Command Info',
- section: 'Bot Client Control',
+ section: 'Command Control',
meta: {
version: '2.2.0',
preciseCheck: false,
From 0ab73b848e862d6c316f9c1865d1c6410d5d7d14 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Tue, 13 Jun 2023 08:22:05 -0500
Subject: [PATCH 22/62] Action HTML Fixes
---
actions/canvas_draw_text_MOD.js | 8 +-
actions/canvas_save_image_MOD.js | 9 +--
actions/check_if_message_MOD.js | 4 +-
actions/check_role_permissions_MOD.js | 96 ++++++------------------
actions/control_permissons_MOD.js | 2 +-
actions/control_server_prefix_MOD.js | 14 ++--
actions/set_slowmode_MOD.js | 18 ++---
actions/store_channel_permissions_MOD.js | 28 ++++++-
8 files changed, 70 insertions(+), 109 deletions(-)
diff --git a/actions/canvas_draw_text_MOD.js b/actions/canvas_draw_text_MOD.js
index 75f623c5..e82592ad 100644
--- a/actions/canvas_draw_text_MOD.js
+++ b/actions/canvas_draw_text_MOD.js
@@ -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_save_image_MOD.js b/actions/canvas_save_image_MOD.js
index 0a5fe58b..02ab41e3 100644
--- a/actions/canvas_save_image_MOD.js
+++ b/actions/canvas_save_image_MOD.js
@@ -33,15 +33,11 @@ module.exports = {
-
+
`;
},
- init() {
- const { document, glob } = this;
-
- glob.refreshVariableList(document.getElementById('storage'));
- },
+ init() {},
async action(cache) {
const data = cache.actions[cache.index];
@@ -59,6 +55,7 @@ module.exports = {
ctx.drawImage(image, 0, 0, image.width, image.height);
const buffer = canvas.toBuffer();
const Path = this.evalMessage(data.Path, cache);
+
if (Path) {
fs.writeFileSync(Path, buffer);
const varName2 = this.evalMessage(data.varName2, cache);
diff --git a/actions/check_if_message_MOD.js b/actions/check_if_message_MOD.js
index 2a115c99..c50c6090 100644
--- a/actions/check_if_message_MOD.js
+++ b/actions/check_if_message_MOD.js
@@ -19,8 +19,8 @@ module.exports = {
return `
+
-
Check If Message
@@ -28,7 +28,7 @@ module.exports = {
Is Pinned?
Is Deletable?
Is TTS?
- Is Of Discord?
+ Is From Discord?
Includes @everyone Mention?
diff --git a/actions/check_role_permissions_MOD.js b/actions/check_role_permissions_MOD.js
index cf78e5d4..a65ee48e 100644
--- a/actions/check_role_permissions_MOD.js
+++ b/actions/check_role_permissions_MOD.js
@@ -17,82 +17,23 @@ module.exports = {
html(isEvent, data) {
return `
-
-
-
-
- Permission
-
- ${data.permissions[2]}
-
-
-
- ${data.conditions[0]}
-
`;
+
+
+
+
+ Permission
+
+ ${data.permissions[2]}
+
+
+
+ ${data.conditions[0]}
+
+
+
-
+
diff --git a/actions/control_server_prefix_MOD.js b/actions/control_server_prefix_MOD.js
index 3a2dc455..e3c976f7 100644
--- a/actions/control_server_prefix_MOD.js
+++ b/actions/control_server_prefix_MOD.js
@@ -26,12 +26,12 @@ module.exports = {
Control Type
- Set Prefix
- Delete Prefix
+ Set Prefix
+ Set Prefix to Default
-
+
Prefix
`;
@@ -39,10 +39,14 @@ module.exports = {
init() {
const { glob, document } = this;
+ const prefixContainer = document.getElementById('prefixContainer');
- glob.serverChange(document.getElementById('server'), 'varNameContainer');
glob.onChangeControl = function onChangeControl(controlType) {
- document.getElementById('prefixContainer').style.display = [null, 'none'][parseInt(controlType.value, 10)];
+ if (controlType.value === '0') {
+ prefixContainer.style.display = null;
+ } else {
+ prefixContainer.style.display = 'none';
+ }
};
glob.onChangeControl(document.getElementById('controlType'));
diff --git a/actions/set_slowmode_MOD.js b/actions/set_slowmode_MOD.js
index 318d7924..3d1e6f88 100644
--- a/actions/set_slowmode_MOD.js
+++ b/actions/set_slowmode_MOD.js
@@ -28,18 +28,14 @@ module.exports = {
-
-
-
- Amount
-
- Reason
-
-
+
+
+ Amount
+
-
`;
},
diff --git a/actions/store_channel_permissions_MOD.js b/actions/store_channel_permissions_MOD.js
index e709febd..04b93a0b 100644
--- a/actions/store_channel_permissions_MOD.js
+++ b/actions/store_channel_permissions_MOD.js
@@ -29,7 +29,7 @@ module.exports = {
Target Type
-
+
Role
Member
@@ -37,7 +37,7 @@ module.exports = {
-
+
@@ -51,7 +51,29 @@ module.exports = {
`;
},
- init() {},
+ init() {
+ const { glob, document } = this;
+
+ const roleHolder = document.getElementById('roleHolder');
+ const memberHolder = document.getElementById('memberHolder');
+
+ glob.onChange = function onChange(event) {
+ switch (parseInt(event.value, 10)) {
+ case 0:
+ roleHolder.style.display = null;
+ memberHolder.style.display = 'none';
+ break;
+ case 1:
+ roleHolder.style.display = 'none';
+ memberHolder.style.display = null;
+ break;
+ default:
+ break;
+ }
+ };
+
+ glob.onChange(document.getElementById('target'));
+ },
async action(cache) {
const data = cache.actions[cache.index];
From c5412db9d71e2ae8104eeac5716bffdaaf4b497f Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Tue, 13 Jun 2023 19:33:00 -0500
Subject: [PATCH 23/62] More HTML changes
---
actions/canvas_crop_image_MOD.js | 3 +--
actions/store_file_info_MOD.js | 1 +
actions/store_json_from_webapi_MOD.js | 14 ++++++++------
actions/transcript_MOD.js | 4 ++--
actions/urban_dictionary_MOD.js | 2 +-
5 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/actions/canvas_crop_image_MOD.js b/actions/canvas_crop_image_MOD.js
index 00124c95..675af076 100644
--- a/actions/canvas_crop_image_MOD.js
+++ b/actions/canvas_crop_image_MOD.js
@@ -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/store_file_info_MOD.js b/actions/store_file_info_MOD.js
index 91b39bcd..a98fd1f6 100644
--- a/actions/store_file_info_MOD.js
+++ b/actions/store_file_info_MOD.js
@@ -118,6 +118,7 @@ module.exports = {
.split(/\r\n|\r|\n/).length;
break;
}
+
this.storeValue(result, storage, varName, cache);
this.callNextAction(cache);
},
diff --git a/actions/store_json_from_webapi_MOD.js b/actions/store_json_from_webapi_MOD.js
index 33ea7ddc..8a2b9b2b 100644
--- a/actions/store_json_from_webapi_MOD.js
+++ b/actions/store_json_from_webapi_MOD.js
@@ -65,17 +65,19 @@ module.exports = {
-
+
-
-
+
+
Re-Use Previously Stored
Allow
@@ -83,7 +85,7 @@ module.exports = {
Toggles re-use of previously stored JSON from same URL.
-
+
Debug Mode
Enabled
diff --git a/actions/transcript_MOD.js b/actions/transcript_MOD.js
index 6d483a26..dee8284f 100644
--- a/actions/transcript_MOD.js
+++ b/actions/transcript_MOD.js
@@ -115,11 +115,11 @@ module.exports = {
const discordTranscripts = require('discord-html-transcripts', '2.6.1'); // Version 2.6.1 needed for discord.js v13.
const dtVersion = require('../package.json').dependencies['discord-html-transcripts']; // Get Version
- if (dtVersion === '2.6.1') {
+ if (dtVersion !== '2.6.1') {
console.log(`Current Version ${dtVersion}`);
console.log('Needed Version 2.6.1');
console.log('Use `npm i discord-html-transcripts@2.6.1` to install the right version');
- this.callNextAction(cache);
+ return this.callNextAction(cache);
}
try {
diff --git a/actions/urban_dictionary_MOD.js b/actions/urban_dictionary_MOD.js
index 230fdcc2..5293a78d 100644
--- a/actions/urban_dictionary_MOD.js
+++ b/actions/urban_dictionary_MOD.js
@@ -89,7 +89,7 @@ module.exports = {
const info = parseInt(data.info, 10);
const string = this.evalMessage(data.string, cache);
- if (!string) return console.log('Please write something to search on Urban Dictionary.');
+ if (!string) return this.callNextAction(cache);
const { Actions } = this.getDBM();
const Mods = this.getMods();
From ab6e9bbfe9cb7eb977aa6b7cca8c02ab1301045b Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Tue, 13 Jun 2023 19:33:11 -0500
Subject: [PATCH 24/62] Remove basic math operation
---
actions/basic_math_operation_MOD.js | 85 -----------------------------
1 file changed, 85 deletions(-)
delete mode 100644 actions/basic_math_operation_MOD.js
diff --git a/actions/basic_math_operation_MOD.js b/actions/basic_math_operation_MOD.js
deleted file mode 100644
index 81f421bd..00000000
--- 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.2.0',
- 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() {},
-};
From 0b09273e544e3676833455be2c60e46a574aaeca Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Tue, 13 Jun 2023 20:54:39 -0500
Subject: [PATCH 25/62] Fix store queue info
---
actions/store_queue_info_MOD.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/actions/store_queue_info_MOD.js b/actions/store_queue_info_MOD.js
index 129e8a7d..0b4ac428 100644
--- a/actions/store_queue_info_MOD.js
+++ b/actions/store_queue_info_MOD.js
@@ -79,7 +79,7 @@ module.exports = {
const info = parseInt(data.info, 10);
const type = parseInt(data.queueObject, 10);
- const varName = this.evalMessage(data.varName, cache);
+ const varName = this.evalMessage(data.varName0, cache);
let queue = this.getVariable(type, varName, cache);
if (!queue) {
From 955b14187f89b97b702a80f8fbe2f0e933524e06 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Wed, 14 Jun 2023 09:14:45 -0500
Subject: [PATCH 26/62] More HTML Fixes/Changes
---
actions/canvas_draw_image_MOD.js | 6 +---
actions/canvas_edit_image_border_MOD.js | 8 ++---
actions/canvas_generate_progress_bar_MOD.js | 16 +++++++---
actions/canvas_image_filter_MOD.js | 4 +--
actions/canvas_send_image_MOD.js | 6 +---
actions/cleverbot_MOD.js | 7 +----
actions/convert_seconds_to_days_MOD.js | 4 +--
actions/convert_text_to_list_MOD.js | 10 +++----
actions/convert_timestamp_to_date_MOD.js | 7 ++---
actions/convert_to_base64_MOD.js | 10 +++----
actions/convert_to_morse_code_MOD.js | 33 +++++++++++----------
actions/convert_to_world_time_MOD.js | 2 --
actions/create_animated_emoji_MOD.js | 6 ++--
actions/create_category_MOD.js | 16 +++++-----
actions/create_gif_MOD.js | 6 ++--
15 files changed, 62 insertions(+), 79 deletions(-)
diff --git a/actions/canvas_draw_image_MOD.js b/actions/canvas_draw_image_MOD.js
index 3c87340b..ff72b2fb 100644
--- a/actions/canvas_draw_image_MOD.js
+++ b/actions/canvas_draw_image_MOD.js
@@ -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_edit_image_border_MOD.js b/actions/canvas_edit_image_border_MOD.js
index c0e152d2..4c8a0cab 100644
--- a/actions/canvas_edit_image_border_MOD.js
+++ b/actions/canvas_edit_image_border_MOD.js
@@ -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 777a316c..6d75f03d 100644
--- a/actions/canvas_generate_progress_bar_MOD.js
+++ b/actions/canvas_generate_progress_bar_MOD.js
@@ -33,7 +33,9 @@ module.exports = {
Circle
-
+
+
+
Width
@@ -43,7 +45,9 @@ module.exports = {
Height
-
+
+
+
Line Width
@@ -56,7 +60,9 @@ module.exports = {
Round
-
+
+
+
+
+
+
`;
diff --git a/actions/canvas_image_filter_MOD.js b/actions/canvas_image_filter_MOD.js
index 1417797a..6d7e28b8 100644
--- a/actions/canvas_image_filter_MOD.js
+++ b/actions/canvas_image_filter_MOD.js
@@ -31,7 +31,7 @@ module.exports = {
html() {
return `
-
+
@@ -58,8 +58,6 @@ module.exports = {
init() {
const { glob, document } = this;
- glob.refreshVariableList(document.getElementById('storage'));
-
glob.onChange1 = function onChange1(event) {
const value = parseInt(event.value, 10);
const valuetext = document.getElementById('valuetext');
diff --git a/actions/canvas_send_image_MOD.js b/actions/canvas_send_image_MOD.js
index dd3316f3..205e1eac 100644
--- a/actions/canvas_send_image_MOD.js
+++ b/actions/canvas_send_image_MOD.js
@@ -73,11 +73,7 @@ module.exports = {
`;
},
- init() {
- const { glob, document } = this;
-
- glob.sendTargetChange(document.getElementById('channel'), 'varNameContainer2');
- },
+ init() {},
async action(cache) {
const { DiscordJS } = this.getDBM();
diff --git a/actions/cleverbot_MOD.js b/actions/cleverbot_MOD.js
index cd8dec89..24b57dc6 100644
--- a/actions/cleverbot_MOD.js
+++ b/actions/cleverbot_MOD.js
@@ -73,12 +73,7 @@ module.exports = {
`;
},
- init() {
- const { glob, document } = this;
-
- glob.variableChange(document.getElementById('inputVarType'), 'varNameContainer');
- glob.variableChange(document.getElementById('storage'), 'varNameContainer2');
- },
+ init() {},
async action(cache) {
const { Actions } = this.getDBM();
diff --git a/actions/convert_seconds_to_days_MOD.js b/actions/convert_seconds_to_days_MOD.js
index 7f6b4514..af70dadd 100644
--- a/actions/convert_seconds_to_days_MOD.js
+++ b/actions/convert_seconds_to_days_MOD.js
@@ -22,11 +22,11 @@ module.exports = {
html() {
return `
-
+
Seconds to Convert
-
+
diff --git a/actions/convert_text_to_list_MOD.js b/actions/convert_text_to_list_MOD.js
index 47ac5707..d7b25f39 100644
--- a/actions/convert_text_to_list_MOD.js
+++ b/actions/convert_text_to_list_MOD.js
@@ -28,13 +28,11 @@ module.exports = {
-
+
-
-
+
Timestamp to Convert
@@ -45,10 +45,7 @@ module.exports = {
`;
},
- init() {
- const { glob, document } = this;
- glob.variableChange(document.getElementById('storage'), 'varNameContainer');
- },
+ init() {},
async action(cache) {
const data = cache.actions[cache.index];
diff --git a/actions/convert_to_base64_MOD.js b/actions/convert_to_base64_MOD.js
index 36eb4883..2de8d898 100644
--- a/actions/convert_to_base64_MOD.js
+++ b/actions/convert_to_base64_MOD.js
@@ -23,23 +23,23 @@ module.exports = {
html() {
return `
-
+
Options
Encode
Decode
-
-
-
-
`;
+
+
+
`;
},
init() {},
diff --git a/actions/convert_to_morse_code_MOD.js b/actions/convert_to_morse_code_MOD.js
index 18059bcf..a5cd86f0 100644
--- a/actions/convert_to_morse_code_MOD.js
+++ b/actions/convert_to_morse_code_MOD.js
@@ -22,24 +22,25 @@ module.exports = {
html() {
return `
-
- Text or Morse Code:
-
-
-
+
+
+ Options
+
+ Encode
+ Decode
+
+
-
- Options:
-
- Encode
- Decode
-
-
-
+
+ Text or Morse Code
+
+
+
+
-
-
-
`;
+
+
+
`;
},
init() {},
diff --git a/actions/convert_to_world_time_MOD.js b/actions/convert_to_world_time_MOD.js
index c57aa2b6..8c76a552 100644
--- a/actions/convert_to_world_time_MOD.js
+++ b/actions/convert_to_world_time_MOD.js
@@ -23,10 +23,8 @@ module.exports = {
html() {
return `
diff --git a/actions/create_animated_emoji_MOD.js b/actions/create_animated_emoji_MOD.js
index 128e96be..0ffe52a5 100644
--- a/actions/create_animated_emoji_MOD.js
+++ b/actions/create_animated_emoji_MOD.js
@@ -22,18 +22,18 @@ module.exports = {
html() {
return `
-
+
Animated Emoji Name
-
+
-
+
`;
},
diff --git a/actions/create_category_MOD.js b/actions/create_category_MOD.js
index 7d40a1fe..893356d1 100644
--- a/actions/create_category_MOD.js
+++ b/actions/create_category_MOD.js
@@ -27,15 +27,15 @@ module.exports = {
-
- Position
-
-
-
+
+ Position
+
+
+
-
-
-
`;
+
+
+
`;
},
init() {},
diff --git a/actions/create_gif_MOD.js b/actions/create_gif_MOD.js
index e2a64199..0ee8788e 100644
--- a/actions/create_gif_MOD.js
+++ b/actions/create_gif_MOD.js
@@ -24,11 +24,11 @@ module.exports = {
return `
Local/Web URL
-
+
-
+
-
+
`;
},
From d675b7d3c28fa700eb9f6e1ac97dd0f8faed23f6 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Wed, 14 Jun 2023 21:28:27 -0500
Subject: [PATCH 27/62] Update mods.json
---
docs/mods.json | 28 ++++++++++++----------------
1 file changed, 12 insertions(+), 16 deletions(-)
diff --git a/docs/mods.json b/docs/mods.json
index 7ae1fffd..f5c1b059 100644
--- a/docs/mods.json
+++ b/docs/mods.json
@@ -44,11 +44,6 @@
"name": "Base Convert MOD",
"section": "Other Stuff"
},
- "basic_math_operation_MOD.js": {
- "description": "Have the bot do a basic math operation",
- "name": "Basic Math Operation",
- "section": "Other Stuff"
- },
"botsfordiscord_stats_MOD.js": {
"description": "Sends statistics (server count) to botsfordiscord.com",
"name": "Send Stats to BFD",
@@ -197,7 +192,7 @@
"control_music_MOD.js": {
"description": "Control music status",
"name": "Control Music",
- "section": "Audio Control"
+ "section": "Music Control"
},
"control_permissons_MOD.js": {
"description": "Control certain permissions",
@@ -479,11 +474,6 @@
"name": "Loop through Folder",
"section": "Lists and Loops"
},
- "math_operation_MOD.js": {
- "description": "Have the bot complete a math operation",
- "name": "Math Operation",
- "section": "Other Stuff"
- },
"math_operation_plus_MOD.js": {
"description": "Have the bot complete more advanced math operations",
"name": "Math Operation Plus",
@@ -522,7 +512,7 @@
"play_music_MOD.js": {
"description": "Search for a song/track and play it",
"name": "Play Music",
- "section": "Audio Control"
+ "section": "Music Control"
},
"play_youtube_playlist_MOD.js": {
"description": "Play a specified YouTube playlist",
@@ -662,7 +652,7 @@
"set_music_repeat_mode_MOD.js": {
"description": "Set the mode for repeating music",
"name": "Set Music Repeat Mode",
- "section": "Audio Control"
+ "section": "Music Control"
},
"set_permissions_MOD.js": {
"description": "Set permissions",
@@ -849,10 +839,10 @@
"name": "Store Playlist Info",
"section": "YouTube Tools"
},
- "store_queue_MOD.js": {
+ "store_queue_info_MOD.js": {
"description": "Store information about the queue",
"name": "Store Queue Info",
- "section": "Audio Control"
+ "section": "Music Control"
},
"store_reaction_info_MOD.js": {
"description": "Store information pertaining to a reaction",
@@ -866,7 +856,13 @@
},
"store_shard_info.js": {
"description": "Shows shard information.",
- "name": "Store Shard Info"
+ "name": "Store Shard Info",
+ "section": "Bot Client Control"
+ },
+ "store_track_info_MOD.js": {
+ "description": "Stores music track information",
+ "name": "Store Track Info",
+ "section": "Music Control"
},
"store_twitch_info_MOD.js": {
"description": "Store information about Twitch",
From 9e3eae5ebc0f6cee632c7f215cac620e04b4ae2f Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Wed, 14 Jun 2023 21:49:04 -0500
Subject: [PATCH 28/62] Use built in data deltion, rename globals.delData to
.clearData
---
actions/default_variable_MOD.js | 22 +++++++++++-------
actions/delete_global_data_MOD.js | 10 ++++----
actions/delete_member_data_MOD.js | 38 ++++---------------------------
actions/delete_server_data_MOD.js | 24 ++++---------------
4 files changed, 26 insertions(+), 68 deletions(-)
diff --git a/actions/default_variable_MOD.js b/actions/default_variable_MOD.js
index da928e5a..2f386baf 100644
--- a/actions/default_variable_MOD.js
+++ b/actions/default_variable_MOD.js
@@ -26,15 +26,21 @@ module.exports = {
return `
This action sets a variable to a default value if it's empty.
-
-
Mode
-
- Normal (null, undefined)
- Strict (null, undefined, 0, false)
-
+
+
+
+ Mode
+
+ Normal (null, undefined)
+ Strict (null, undefined, 0, false)
+
+
-
Default Value
-
+
+
+ Default Value
+
+
`;
},
diff --git a/actions/delete_global_data_MOD.js b/actions/delete_global_data_MOD.js
index b94c5550..64134972 100644
--- a/actions/delete_global_data_MOD.js
+++ b/actions/delete_global_data_MOD.js
@@ -17,12 +17,10 @@ module.exports = {
html() {
return `
-
`;
},
init() {},
@@ -31,7 +29,7 @@ module.exports = {
const data = cache.actions[cache.index];
const dataName = this.evalMessage(data.dataName, cache);
const { Globals } = this.getDBM();
- Globals.delData(dataName);
+ Globals.clearData(dataName);
this.callNextAction(cache);
},
@@ -44,7 +42,7 @@ module.exports = {
}
DBM.Files.data.globals = JSON.parse(fs.readFileSync(filePath));
class GlobalData {
- delData(name) {
+ clearData(name) {
if (name && DBM.Files.data.globals[name]) {
delete DBM.Files.data.globals[name];
DBM.Files.saveData('globals');
diff --git a/actions/delete_member_data_MOD.js b/actions/delete_member_data_MOD.js
index 8925cc14..c3f43388 100644
--- a/actions/delete_member_data_MOD.js
+++ b/actions/delete_member_data_MOD.js
@@ -23,10 +23,8 @@ module.exports = {
`;
},
@@ -37,37 +35,9 @@ module.exports = {
const member = await this.getMemberFromData(data.member, data.varName, cache);
const dataName = this.evalMessage(data.dataName, cache);
- member.delData(dataName);
+ member.clearData(dataName);
this.callNextAction(cache);
},
- mod(DBM) {
- Reflect.defineProperty(DBM.DiscordJS.GuildMember.prototype, 'delData', {
- value(name) {
- const { players } = DBM.Files.data;
-
- if (name && players[this.id]?.[name]) {
- delete players[this.id][name];
- DBM.Files.saveData('players');
- } else if (!name) {
- delete players[this.id];
- DBM.Files.saveData('players');
- }
- },
- });
-
- Reflect.defineProperty(DBM.DiscordJS.User.prototype, 'delData', {
- value(name) {
- const { players } = DBM.Files.data;
-
- if (name && players[this.id]?.[name]) {
- delete players[this.id][name];
- DBM.Files.saveData('players');
- } else if (!name) {
- delete players[this.id];
- DBM.Files.saveData('players');
- }
- },
- });
- },
+ mod() {},
};
diff --git a/actions/delete_server_data_MOD.js b/actions/delete_server_data_MOD.js
index 8bf4f7df..04b6e02c 100644
--- a/actions/delete_server_data_MOD.js
+++ b/actions/delete_server_data_MOD.js
@@ -23,10 +23,8 @@ module.exports = {
`;
},
@@ -39,23 +37,9 @@ module.exports = {
if (!server) return this.callNextAction(cache);
- server.delData(dataName);
+ server.clearData(dataName);
this.callNextAction(cache);
},
- mod(DBM) {
- Reflect.defineProperty(DBM.DiscordJS.Guild.prototype, 'delData', {
- value(name) {
- const { servers } = DBM.Files.data;
-
- if (servers && servers[this.id]?.[name]) {
- delete servers[this.id][name];
- DBM.Files.saveData('servers');
- } else if (!servers) {
- delete servers[this.id];
- DBM.Files.saveData('servers');
- }
- },
- });
- },
+ mod() {},
};
From 96da65ca6a4fce3d3fec8bcbf08ea1697f1c8ec3 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Wed, 14 Jun 2023 22:36:19 -0500
Subject: [PATCH 29/62] Pushing latest HTML Fixes
---
actions/crosspost_message_MOD.js | 2 +-
actions/delete_invite_MOD.js | 5 ++--
actions/description_MOD.js | 6 ++--
actions/edit_item_from_list_MOD.js | 15 ++++------
actions/edit_webhook_MOD.js | 4 +--
actions/emit_event_MOD.js | 8 +++---
actions/filter_list_or_object_MOD.js | 2 --
actions/find_category_MOD.js | 43 +---------------------------
actions/find_invite_MOD.js | 12 ++++----
actions/start_rss_feed_MOD.js | 2 +-
10 files changed, 25 insertions(+), 74 deletions(-)
diff --git a/actions/crosspost_message_MOD.js b/actions/crosspost_message_MOD.js
index 9e7f6174..9c59c86e 100644
--- a/actions/crosspost_message_MOD.js
+++ b/actions/crosspost_message_MOD.js
@@ -48,7 +48,7 @@ module.exports = {
this.storeValue(msg, storage, varName2, cache);
this.callNextAction(cache);
})
- .catch(console.error);
+ .catch(this.displayError.bind(this, data, cache));
},
mod() {},
diff --git a/actions/delete_invite_MOD.js b/actions/delete_invite_MOD.js
index 087d7322..4ef111b6 100644
--- a/actions/delete_invite_MOD.js
+++ b/actions/delete_invite_MOD.js
@@ -28,6 +28,7 @@ module.exports = {
+
Reason
@@ -45,11 +46,11 @@ module.exports = {
client
.fetchInvite(invite)
- .catch(console.error)
.then((invite) => {
if (!invite) this.callNextAction(cache);
invite.delete(reason);
- });
+ })
+ .catch(this.displayError.bind(this, data, cache));
this.callNextAction(cache);
},
diff --git a/actions/description_MOD.js b/actions/description_MOD.js
index d0dcaa90..67c94a67 100644
--- a/actions/description_MOD.js
+++ b/actions/description_MOD.js
@@ -17,12 +17,10 @@ module.exports = {
html() {
return `
-
`;
+
+
`;
},
init() {},
diff --git a/actions/edit_item_from_list_MOD.js b/actions/edit_item_from_list_MOD.js
index 5f7c0f20..50eca881 100644
--- a/actions/edit_item_from_list_MOD.js
+++ b/actions/edit_item_from_list_MOD.js
@@ -19,26 +19,23 @@ module.exports = {
html() {
return `
-
+
-
-
+
-
+
Webhook Name
-
+
Webhook Icon URL
diff --git a/actions/emit_event_MOD.js b/actions/emit_event_MOD.js
index 67b57bd8..66d7aefc 100644
--- a/actions/emit_event_MOD.js
+++ b/actions/emit_event_MOD.js
@@ -17,7 +17,7 @@ module.exports = {
DiscordJS = require('discord.js');
} catch (_) {}
- const events = Object.values(DiscordJS.Constants.Events).sort();
+ const events = Object.values(DiscordJS.Events ?? {}).sort();
return events.includes(eventType) ? `Emits a ${eventType} event` : 'Not emitting anything';
},
@@ -45,8 +45,8 @@ module.exports = {
DiscordJS = require('discord.js');
} catch (_) {}
- const events = DiscordJS && Object.values(DiscordJS.Constants.Events).sort();
- const docs = `https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=e-${
+ const events = DiscordJS && Object.values(DiscordJS.Events ?? {}).sort();
+ const docs = `https://old.discordjs.dev/#/docs/main/stable/class/Client?scrollTo=e-${
(events && events[0]) || 'channelCreate'
}`;
@@ -118,7 +118,7 @@ module.exports = {
const data = cache.actions[cache.index];
const { DiscordJS } = this.getDBM();
- const events = Object.values(DiscordJS.Constants.Events).sort();
+ const events = Object.values(DiscordJS.Events).sort();
const event = this.evalMessage(data.eventType);
if (!events.includes(event)) return console.error(`${this.name} (#${cache.index + 1}): Unknown event type.`);
diff --git a/actions/filter_list_or_object_MOD.js b/actions/filter_list_or_object_MOD.js
index b9aaee43..8234f93b 100644
--- a/actions/filter_list_or_object_MOD.js
+++ b/actions/filter_list_or_object_MOD.js
@@ -134,8 +134,6 @@ module.exports = {
};
glob.onChange1(document.getElementById('type'));
- glob.variableChange(document.getElementById('storage'), 'varNameContainer');
- glob.variableChange(document.getElementById('storage2'), 'varNameContainer2');
},
async action(cache) {
diff --git a/actions/find_category_MOD.js b/actions/find_category_MOD.js
index 42a603c5..2b6da5b5 100644
--- a/actions/find_category_MOD.js
+++ b/actions/find_category_MOD.js
@@ -43,48 +43,7 @@ module.exports = {
-
You can store and edit a category using the channel actions "Store Channel Info", "Edit Channel" or "Set Channel Permission".
-
-`;
+
You can store and edit a category using the channel actions "Store Channel Info", "Edit Channel" or "Set Channel Permission".
`;
},
init() {},
diff --git a/actions/find_invite_MOD.js b/actions/find_invite_MOD.js
index 5795d8a4..ff28c38d 100644
--- a/actions/find_invite_MOD.js
+++ b/actions/find_invite_MOD.js
@@ -22,16 +22,14 @@ module.exports = {
html() {
return `
-
-
-
-
`;
+
+
+
`;
},
init() {},
@@ -49,7 +47,7 @@ module.exports = {
this.storeValue(invite, storage, varName, cache);
this.callNextAction(cache);
})
- .catch(console.error);
+ .catch(this.displayError.bind(this, data, cache));
},
mod() {},
diff --git a/actions/start_rss_feed_MOD.js b/actions/start_rss_feed_MOD.js
index 28a5ee96..15c911d1 100644
--- a/actions/start_rss_feed_MOD.js
+++ b/actions/start_rss_feed_MOD.js
@@ -86,7 +86,7 @@ module.exports = {
.then(() => {
console.log('Starting watching...');
})
- .catch(console.error);
+ .catch(this.displayError.bind(this, data, cache));
},
mod() {},
From d60b5108bd5398dc87a081c1c3b51d5abcf7c2f2 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Thu, 15 Jun 2023 09:47:45 -0500
Subject: [PATCH 30/62] A lot more HTML changes
---
actions/find_item_in_list_MOD.js | 13 +++++-
actions/find_message_MOD.js | 4 +-
actions/find_reaction_MOD.js | 5 +--
actions/get_command_description_MOD.js | 3 +-
actions/get_lyrics_MOD.js | 60 ++++---------------------
actions/inspect_list_or_object_MOD.js | 26 +++++------
actions/jump_to_action_MOD.js | 5 +--
actions/loop_through_folder_MOD.js | 3 +-
actions/math_operation_plus_MOD.js | 12 ++---
actions/push_webhook_MOD.js | 2 +-
actions/read_file_MOD.js | 18 ++++----
actions/remove_reaction_MOD.js | 5 ++-
actions/replace_text_MOD.js | 28 ++++++------
actions/revise_MOD.js | 4 +-
actions/run_script_too_MOD.js | 58 +++---------------------
actions/run_sql_query_MOD.js | 30 -------------
actions/send_gif_MOD.js | 4 +-
actions/send_json_to_webapi_MOD.js | 52 +++++----------------
actions/send_stats_to_botlist.me_MOD.js | 15 +++----
actions/send_stats_to_dbl_MOD.js | 11 ++---
actions/set_server_owner_MOD.js | 11 ++++-
actions/set_time_restriction_MOD.js | 26 ++++++-----
actions/skip_actions_MOD.js | 6 +--
actions/slice_MOD.js | 8 ++--
actions/speed_test_MOD.js | 56 +++++------------------
25 files changed, 140 insertions(+), 325 deletions(-)
diff --git a/actions/find_item_in_list_MOD.js b/actions/find_item_in_list_MOD.js
index a470b2fe..183e5d8a 100644
--- a/actions/find_item_in_list_MOD.js
+++ b/actions/find_item_in_list_MOD.js
@@ -32,10 +32,19 @@ module.exports = {
fields: ['list', 'varName', 'item', 'storage', 'varName2'],
- html() {
+ html(isEvent, data) {
return `
-
+
+ Source List
+
+ ${data.lists[isEvent ? 1 : 0]}
+
+
+
+ Variable Name
+
+
diff --git a/actions/find_message_MOD.js b/actions/find_message_MOD.js
index aa084708..7da09fe8 100644
--- a/actions/find_message_MOD.js
+++ b/actions/find_message_MOD.js
@@ -23,7 +23,6 @@ module.exports = {
html() {
return `
-
@@ -41,8 +40,7 @@ module.exports = {
Search for
-
-
+
diff --git a/actions/find_reaction_MOD.js b/actions/find_reaction_MOD.js
index b4cd93b0..24b7b7dd 100644
--- a/actions/find_reaction_MOD.js
+++ b/actions/find_reaction_MOD.js
@@ -47,10 +47,7 @@ module.exports = {
`;
},
- init() {
- const { glob, document } = this;
- glob.messageChange(document.getElementById('message'), 'varNameContainer');
- },
+ init() {},
async action(cache) {
const data = cache.actions[cache.index];
diff --git a/actions/get_command_description_MOD.js b/actions/get_command_description_MOD.js
index 94b26cd8..8775ef87 100644
--- a/actions/get_command_description_MOD.js
+++ b/actions/get_command_description_MOD.js
@@ -17,7 +17,6 @@ module.exports = {
html() {
return `
-
Find By
@@ -32,7 +31,7 @@ module.exports = {
-
`;
+`;
},
init() {},
diff --git a/actions/get_lyrics_MOD.js b/actions/get_lyrics_MOD.js
index a8b059a7..cfb3119b 100644
--- a/actions/get_lyrics_MOD.js
+++ b/actions/get_lyrics_MOD.js
@@ -34,17 +34,17 @@ module.exports = {
html() {
return `
-
-
-
+
Song to Search
-
+
-
+
+
API Key
-
+
-
+
+
Source Info
Song Title
@@ -53,52 +53,10 @@ module.exports = {
Song URL
-
-
+
-
-
-
-
-
- To get an API key, create a new app on https://genius.com/api-clients/new or check a tutorial by clicking here .
-
-
-
-
-
-
`;
+
`;
},
init() {},
diff --git a/actions/inspect_list_or_object_MOD.js b/actions/inspect_list_or_object_MOD.js
index 149d0fed..b712690a 100644
--- a/actions/inspect_list_or_object_MOD.js
+++ b/actions/inspect_list_or_object_MOD.js
@@ -22,31 +22,28 @@ module.exports = {
html() {
return `
-
+
-
-
- Depth
-
-
+
+ Depth
+
-
+
-
-
-
- Sample Result
- Client {_events : [Object ],_eventsCount : 5 ,_maxListeners : 10 ,options : [Object ],rest : [RESTManager],dataManager : [ClientDataManager],manager : [ClientManager],ws : [WebSocketManager],resolver : [ClientDataResolver],actions : [ActionsManager],voice : [ClientVoiceManager],shard : null ,users : [Collection],guilds : [Collection],channels : [Collection],presences : [Collection],user : [ClientUser],readyAt : 2019-05-11 T11:30 :47.999 Z,broadcasts : [],pings : [Array ],_timeouts : [Set ],_intervals : [Set ],config : [Object ],info : [Object ],audio : [Object ],warnings : [Object ],loadCommands : [Function ],commands : [Map ] }
-
+
+
+
+ Sample Result
+ Client {_events : [Object ],_eventsCount : 5 ,_maxListeners : 10 ,options : [Object ],rest : [RESTManager],dataManager : [ClientDataManager],manager : [ClientManager],ws : [WebSocketManager],resolver : [ClientDataResolver],actions : [ActionsManager],voice : [ClientVoiceManager],shard : null ,users : [Collection],guilds : [Collection],channels : [Collection],presences : [Collection],user : [ClientUser],readyAt : 2019-05-11 T11:30 :47.999 Z,broadcasts : [],pings : [Array ],_timeouts : [Set ],_intervals : [Set ],config : [Object ],info : [Object ],audio : [Object ],warnings : [Object ],loadCommands : [Function ],commands : [Map ] }
@@ -72,9 +69,6 @@ module.exports = {
margin-left: 4px;
position: absolute;
}
- span {
- font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
- }
span.embed-auth {
color: rgb(255, 255, 255);
diff --git a/actions/jump_to_action_MOD.js b/actions/jump_to_action_MOD.js
index b1ba06e5..4cd9038f 100644
--- a/actions/jump_to_action_MOD.js
+++ b/actions/jump_to_action_MOD.js
@@ -17,12 +17,11 @@ module.exports = {
html() {
return `
-
-
`;
+`;
},
init() {},
diff --git a/actions/loop_through_folder_MOD.js b/actions/loop_through_folder_MOD.js
index 5c63c790..4a7255af 100644
--- a/actions/loop_through_folder_MOD.js
+++ b/actions/loop_through_folder_MOD.js
@@ -29,12 +29,11 @@ module.exports = {
- This is a good path: ./resources/images
- This will turn all filenames in the folder into an array.
-
-
diff --git a/actions/math_operation_plus_MOD.js b/actions/math_operation_plus_MOD.js
index b864fa02..b9280290 100644
--- a/actions/math_operation_plus_MOD.js
+++ b/actions/math_operation_plus_MOD.js
@@ -47,13 +47,13 @@ module.exports = {
html() {
return `
-
+
First Number
+
-
-
+
Math Operation
Addition
@@ -80,10 +80,10 @@ module.exports = {
Value of Pi
Value of Euler's number
+
-
-
+
Second Number
@@ -102,7 +102,7 @@ module.exports = {
const dom = document.getElementById('SecondNum');
const dom2 = document.getElementById('FirstNum');
- if ((value >= 0 && value <= 3) || [5, 10, 11].includes(value) || (value >= 18 && value <= 20)) {
+ if ([0, 1, 2, 3, 5, 10, 11, 18, 19, 20].includes(value)) {
dom.style.display = null;
} else {
dom.style.display = 'none';
diff --git a/actions/push_webhook_MOD.js b/actions/push_webhook_MOD.js
index bdf8e07b..4c1ecf1a 100644
--- a/actions/push_webhook_MOD.js
+++ b/actions/push_webhook_MOD.js
@@ -24,7 +24,7 @@ module.exports = {
Message
-
+
`;
},
diff --git a/actions/read_file_MOD.js b/actions/read_file_MOD.js
index bc7d7265..2946dbac 100644
--- a/actions/read_file_MOD.js
+++ b/actions/read_file_MOD.js
@@ -22,17 +22,15 @@ module.exports = {
html() {
return `
-
+
-
-
-
`;
+
+
+
`;
},
init() {},
@@ -44,7 +42,9 @@ module.exports = {
try {
if (path) {
const output = readFileSync(path, 'utf8');
- this.storeValue(output, parseInt(data.storage, 10), this.evalMessage(data.varName2, cache), cache);
+ const storage = parseInt(data.storage, 10);
+ const varName2 = this.evalMessage(data.varName2, cache);
+ this.storeValue(output, storage, varName2, cache);
} else {
console.log('File path is missing from read file mod!');
}
diff --git a/actions/remove_reaction_MOD.js b/actions/remove_reaction_MOD.js
index 3e396727..767534a5 100644
--- a/actions/remove_reaction_MOD.js
+++ b/actions/remove_reaction_MOD.js
@@ -20,8 +20,9 @@ module.exports = {
-
-
+
+
+
`;
},
diff --git a/actions/replace_text_MOD.js b/actions/replace_text_MOD.js
index 49e37c19..ecf5857c 100644
--- a/actions/replace_text_MOD.js
+++ b/actions/replace_text_MOD.js
@@ -23,34 +23,36 @@ module.exports = {
html() {
return `
-
+
Source Text
-
-
+
+
+
Replace this
-
+
-
+
Type
-
- Replace the first result
- Replace all results
-
+
+ Replace the first result
+ Replace all results
+
-
+
-
+`;
},
init() {},
diff --git a/actions/revise_MOD.js b/actions/revise_MOD.js
index b2b757e3..dd0e18b4 100644
--- a/actions/revise_MOD.js
+++ b/actions/revise_MOD.js
@@ -23,14 +23,14 @@ module.exports = {
html() {
return `
-
`;
},
diff --git a/actions/run_script_too_MOD.js b/actions/run_script_too_MOD.js
index 9dba2090..1b26d2af 100644
--- a/actions/run_script_too_MOD.js
+++ b/actions/run_script_too_MOD.js
@@ -23,16 +23,16 @@ module.exports = {
html() {
return `
-
+
-
+
End Behavior
Call Next Action
Do Not Call Next Action
-
+
Interpretation Style
Evaluate Text First
@@ -42,14 +42,14 @@ module.exports = {
-
+
Script Name
-
+
External File Path
@@ -65,53 +65,7 @@ module.exports = {
Or Use Custom Code: (This isn't used if an external path is defined.)
-
-`;
+
`;
},
init() {},
diff --git a/actions/run_sql_query_MOD.js b/actions/run_sql_query_MOD.js
index 8f4a30ac..4726d3fb 100644
--- a/actions/run_sql_query_MOD.js
+++ b/actions/run_sql_query_MOD.js
@@ -193,40 +193,10 @@ module.exports = {
`;
+
`;
},
init() {},
From c2cedd527542566f9ac3e196f9b5d2a281adfb29 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Thu, 15 Jun 2023 11:02:24 -0500
Subject: [PATCH 31/62] Remove broken speedtest mod
---
actions/speed_test_MOD.js | 87 ---------------------------------------
1 file changed, 87 deletions(-)
delete mode 100644 actions/speed_test_MOD.js
diff --git a/actions/speed_test_MOD.js b/actions/speed_test_MOD.js
deleted file mode 100644
index a470a7fa..00000000
--- a/actions/speed_test_MOD.js
+++ /dev/null
@@ -1,87 +0,0 @@
-module.exports = {
- name: 'Speed Test',
- section: 'Other Stuff',
- meta: {
- version: '2.2.0',
- preciseCheck: false,
- author: 'DBM Mods',
- authorUrl: 'https://github.com/dbm-network/mods',
- downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/speed_test_MOD.js',
- },
-
- subtitle(data) {
- if (data.info === 'downloadspeed') {
- return 'Speed Test - Download Speed';
- }
- if (data.info === 'uploadspeed') {
- return 'Speed Test - Upload Speed';
- }
- return 'Error in subtitles.';
- },
-
- variableStorage(data, varType) {
- if (parseInt(data.storage, 10) !== varType) return;
- let dataType = 'Unknown Data Type';
- if (data.info === 'downloadspeed') {
- dataType = 'Download Speed';
- } else if (data.info === 'uploadspeed') {
- dataType = 'Upload Speed';
- }
- return [data.varName, dataType];
- },
-
- fields: ['info', 'type', 'storage', 'varName'],
-
- html() {
- return `
-
- Bit Type
-
- MB/s
- KB/s
-
-
-
-
- Speed
-
- Download Speed
- Upload Speed
-
-
-
-
-
-
-
`;
- },
-
- init() {},
-
- async action(cache) {
- const data = cache.actions[cache.index];
- const type = parseInt(data.type, 10);
- const Mods = this.getMods();
- const speedTest = Mods.require('speedtest-net');
-
- try {
- const test = await speedTest({ maxTime: 5000, acceptLicense: true });
-
- let result = data.info === 'downloadspeed' ? test.download.bandwidth : test.upload.bandwidth;
- if (type === 0) result /= 125000;
- else if (type === 1) result /= 1000;
-
- if (result !== undefined) {
- const storage = parseInt(data.storage, 10);
- const varName2 = this.evalMessage(data.varName, cache);
- this.storeValue(result, storage, varName2, cache);
- }
- } catch (err) {
- console.log(`Error in Speed Test Mod: ${err}`);
- } finally {
- this.callNextAction(cache);
- }
- },
-
- mod() {},
-};
From d39d4e75d3a1ff3fa1525498178c246d625d9dc6 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Thu, 15 Jun 2023 15:40:55 -0500
Subject: [PATCH 32/62] Minor updates to code/HTML
---
actions/split_MOD.js | 10 +++---
actions/spotify_search_MOD.js | 10 +++---
actions/spreadsheet_MOD.js | 4 +--
actions/store_attachment_info_MOD.js | 7 ++---
actions/store_audit_log_info_MOD.js | 5 ++-
actions/store_bot_client_info_MOD.js | 6 ++--
actions/store_category_info_MOD.js | 47 ++++------------------------
7 files changed, 24 insertions(+), 65 deletions(-)
diff --git a/actions/split_MOD.js b/actions/split_MOD.js
index 7507b712..f4333658 100644
--- a/actions/split_MOD.js
+++ b/actions/split_MOD.js
@@ -22,22 +22,20 @@ module.exports = {
html() {
return `
-
`;
},
init() {},
diff --git a/actions/spotify_search_MOD.js b/actions/spotify_search_MOD.js
index ce11ec5a..51708f2b 100644
--- a/actions/spotify_search_MOD.js
+++ b/actions/spotify_search_MOD.js
@@ -281,14 +281,14 @@ module.exports = {
html() {
return `
-
-
+
+
Client ID
-
+
-
+
Client Secret
-
+
diff --git a/actions/spreadsheet_MOD.js b/actions/spreadsheet_MOD.js
index c0ab77b6..808b7f6b 100644
--- a/actions/spreadsheet_MOD.js
+++ b/actions/spreadsheet_MOD.js
@@ -5,8 +5,8 @@ module.exports = {
version: '2.2.0',
preciseCheck: false,
author: 'DBM Mods',
- authorUrl: null,
- downloadURL: null,
+ authorUrl: 'https://github.com/dbm-network/mods',
+ downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/spreadsheet_MOD.js',
},
subtitle(data) {
diff --git a/actions/store_attachment_info_MOD.js b/actions/store_attachment_info_MOD.js
index 1919154f..3c2b4595 100644
--- a/actions/store_attachment_info_MOD.js
+++ b/actions/store_attachment_info_MOD.js
@@ -37,7 +37,7 @@ module.exports = {
-
+
Source Info
Attachment's URL
@@ -54,10 +54,7 @@ module.exports = {
`;
},
- init() {
- const { document, glob } = this;
- glob.variableChange(document.getElementById('storage2'), 'varNameContainer2');
- },
+ init() {},
async action(cache) {
const data = cache.actions[cache.index];
diff --git a/actions/store_audit_log_info_MOD.js b/actions/store_audit_log_info_MOD.js
index c450cff5..254b3b49 100644
--- a/actions/store_audit_log_info_MOD.js
+++ b/actions/store_audit_log_info_MOD.js
@@ -72,7 +72,7 @@ module.exports = {
-
+
Source Info
Audit Log Id
@@ -94,7 +94,7 @@ module.exports = {
-
+
Position of Key
@@ -123,7 +123,6 @@ module.exports = {
};
glob.onChange0(document.getElementById('info'));
- glob.refreshVariableList(document.getElementById('storage'));
},
async action(cache) {
diff --git a/actions/store_bot_client_info_MOD.js b/actions/store_bot_client_info_MOD.js
index b53e0f27..72be3e5c 100644
--- a/actions/store_bot_client_info_MOD.js
+++ b/actions/store_bot_client_info_MOD.js
@@ -226,11 +226,11 @@ module.exports = {
init() {},
async action(cache) {
- const botClient = this.getDBM().Bot.bot;
- const { Bot } = this.getDBM();
+ const DBM = this.getDBM();
+ const { Bot } = DBM;
+ const botClient = Bot.bot;
const os = require('os');
if (process.platform === 'win32') this.getMods().require('loadavg-windows'); // Make loadavg work on windows.
- const DBM = this.getDBM();
const data = cache.actions[cache.index];
const info = parseInt(data.info, 10);
const msToDay = 1000 * 60 * 60 * 24;
diff --git a/actions/store_category_info_MOD.js b/actions/store_category_info_MOD.js
index 41902350..4964e94c 100644
--- a/actions/store_category_info_MOD.js
+++ b/actions/store_category_info_MOD.js
@@ -9,7 +9,8 @@ module.exports = {
downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/store_category_info_MOD.js',
},
- subtitle(data, presets) {
+ subtitle(data) {
+ const categories = ['You cheater!', 'Temp Variable', 'Server Variable', 'Global Variable'];
const info = [
'Category ID',
'Category Name',
@@ -24,7 +25,7 @@ module.exports = {
'Category Voice Channel List',
'Category Voice Channel Count',
];
- return presets.getChannelText(data.category, info[parseInt(data.info, 10)]);
+ return `${categories[parseInt(data.category, 10)]} - ${info[parseInt(data.info, 10)]}`;
},
variableStorage(data, varType) {
@@ -70,12 +71,12 @@ module.exports = {
html() {
return `
-
+
-
+
Source Info
@@ -100,43 +101,7 @@ module.exports = {
-
-
-`;
+ `;
},
init() {},
From 80f5337e7eaebc0d42a3eefc3806362f776bfb1e Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Thu, 15 Jun 2023 15:42:36 -0500
Subject: [PATCH 33/62] Update docs
---
docs/events.json | 4 ----
docs/mods.json | 5 -----
2 files changed, 9 deletions(-)
diff --git a/docs/events.json b/docs/events.json
index acbfc208..9ccc57de 100644
--- a/docs/events.json
+++ b/docs/events.json
@@ -83,10 +83,6 @@
"description": "Triggers when the music player has an error",
"name": "On Player Error"
},
- "on_player_no_results_EVT.js": {
- "description": "Triggers when the music player found no results",
- "name": "On Player No Results"
- },
"on_queue_end_EVT.js": {
"description": "Triggers when the music queue ends",
"name": "On Queue End"
diff --git a/docs/mods.json b/docs/mods.json
index f5c1b059..c266c848 100644
--- a/docs/mods.json
+++ b/docs/mods.json
@@ -699,11 +699,6 @@
"name": "Slice",
"section": "Other Stuff"
},
- "speed_test_MOD.js": {
- "description": "Test your internet speed",
- "name": "Speed Test",
- "section": "Other Stuff"
- },
"split_MOD.js": {
"description": "Split a string",
"name": "Split",
From dead5db3dde0cef0436e30a208f1edb56ee2b398 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Thu, 15 Jun 2023 15:53:50 -0500
Subject: [PATCH 34/62] Fix notes
---
actions/convert_timestamp_to_date_MOD.js | 6 ++++--
actions/emit_event_MOD.js | 6 ++++--
actions/find_message_MOD.js | 7 ++++---
actions/restart_bot_MOD.js | 6 ++++--
actions/set_server_owner_MOD.js | 3 ++-
actions/store_date_info_plus_MOD.js | 2 +-
6 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/actions/convert_timestamp_to_date_MOD.js b/actions/convert_timestamp_to_date_MOD.js
index 51a58495..bcf498e0 100644
--- a/actions/convert_timestamp_to_date_MOD.js
+++ b/actions/convert_timestamp_to_date_MOD.js
@@ -23,8 +23,10 @@ module.exports = {
html() {
return `
-
Note:
- You can convert Unix Timestamp and YouTube Timestamp with this mod (both were tested).
+
+ Note:
+ You can convert Unix Timestamp and YouTube Timestamp with this mod (both were tested).
+
diff --git a/actions/emit_event_MOD.js b/actions/emit_event_MOD.js
index 66d7aefc..ea450081 100644
--- a/actions/emit_event_MOD.js
+++ b/actions/emit_event_MOD.js
@@ -81,8 +81,10 @@ module.exports = {
-
Note:
- Some events may not require the two arguments and some may not even require any arguments at all. Just leave the boxes empty on those cases.
+
+ Note:
+ Some events may not require the two arguments and some may not even require any arguments at all. Just leave the boxes empty on those cases.
+
`;
},
@@ -95,45 +113,32 @@ module.exports = {
init() {},
async action(cache) {
- // get packages and data
const data = cache.actions[cache.index];
+ const channel = await this.getChannelFromData(data.channelObj, data.varName, cache);
+ const discordTranscripts = require('discord-html-transcripts');
- // Setup Variable
- const type = parseInt(data.channelObj, 10);
- const varName = this.evalMessage(data.channelID, cache);
-
- // Get Channel Object From Variable
- const channelObj = this.getVariable(type, varName, cache);
+ if (!channel) {
+ console.log('Missing channel in Transcript');
+ return this.callNextAction(cache);
+ }
// Get Config
- const useMinify = data.useMinify === '1' ? true : false;
const saveImages = data.saveImages === '1' ? true : false;
- const useCDN = data.useCDN === '1' ? true : false;
-
- // Thanks to TheMonDon helped me to fix some Code
- // Get Version And Check it
- const discordTranscripts = require('discord-html-transcripts', '2.6.1'); // Version 2.6.1 needed for discord.js v13.
- const dtVersion = require('../package.json').dependencies['discord-html-transcripts']; // Get Version
-
- if (dtVersion !== '2.6.1') {
- console.log(`Current Version ${dtVersion}`);
- console.log('Needed Version 2.6.1');
- console.log('Use `npm i discord-html-transcripts@2.6.1` to install the right version');
- return this.callNextAction(cache);
- }
+ const poweredBy = data.poweredBy === '1' ? true : false;
+ const footer = this.evalMessage(data.footer, cache);
try {
- const transcript = await discordTranscripts.createTranscript(channelObj, {
+ const transcript = await discordTranscripts.createTranscript(channel, {
limit: -1,
- returnBuffer: false,
- fileName: `temp.html`,
- minify: useMinify,
+ returnType: 'string',
saveImages,
- useCDN,
+ poweredBy,
+ footer,
});
- const output = transcript.attachment.toString();
- this.storeValue(output, parseInt(data.storage, 10), data.varName, cache);
+ const storage = parseInt(data.storage, 10);
+ const varName = this.evalMessage(data.varName, cache);
+ this.storeValue(transcript, storage, varName, cache);
} catch (err) {
console.error(err);
}
diff --git a/actions/translate_MOD.js b/actions/translate_MOD.js
index 40625f8b..1d1c6ea3 100644
--- a/actions/translate_MOD.js
+++ b/actions/translate_MOD.js
@@ -37,7 +37,7 @@ module.exports = {
diff --git a/actions/urban_dictionary_MOD.js b/actions/urban_dictionary_MOD.js
index 5293a78d..2ab8a1c5 100644
--- a/actions/urban_dictionary_MOD.js
+++ b/actions/urban_dictionary_MOD.js
@@ -56,13 +56,12 @@ module.exports = {
html() {
return `
-
Search
-
+
-
+
Source Info
Definition
@@ -76,10 +75,9 @@ module.exports = {
-
`;
+
`;
},
init() {},
diff --git a/actions/weather_MOD.js b/actions/weather_MOD.js
index 301ad2e4..5ca2fb29 100644
--- a/actions/weather_MOD.js
+++ b/actions/weather_MOD.js
@@ -77,19 +77,18 @@ module.exports = {
html() {
return `
-
-
- Source City
-
-
-
+
Degree Type
Farhenheit
Celsius
-
+
+ Source City
+
+
+
Source Info
diff --git a/actions/youtube_search_MOD.js b/actions/youtube_search_MOD.js
index 7f9c51ce..cc7a657e 100644
--- a/actions/youtube_search_MOD.js
+++ b/actions/youtube_search_MOD.js
@@ -141,19 +141,46 @@ module.exports = {
html() {
return `
-
-
+
Source Type
YouTube Video
YouTube Playlist
+
Video to Search
-
+
-
+
+
+ Result Number
+
+ 1st Result
+ 2nd Result
+ 3rd Result
+ 4th Result
+ 5th Result
+ 6th Result
+ 7th Result
+ 8th Result
+ 9th Result
+ 10th Result
+ 11th Result
+ 12th Result
+ 13th Result
+ 14th Result
+ 15th Result
+ 16th Result
+ 17th Result
+ 18th Result
+ 19th Result
+ 20th Result
+
+
+
+
Source Video Info
Video ID
@@ -171,7 +198,8 @@ module.exports = {
Video is Live?
-
+
+
Source Playlist Info
Playlist ID
@@ -204,40 +232,15 @@ module.exports = {
Video Publish Dates
-
- Result Number
-
- 1st Result
- 2nd Result
- 3rd Result
- 4th Result
- 5th Result
- 6th Result
- 7th Result
- 8th Result
- 9th Result
- 10th Result
- 11th Result
- 12th Result
- 13th Result
- 14th Result
- 15th Result
- 16th Result
- 17th Result
- 18th Result
- 19th Result
- 20th Result
-
-
+
API Key
-
+
-
-
`;
+
`;
},
init() {
From 24d9fec32787a6841565c9d2d2ac6ce62b30138f Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Mon, 19 Jun 2023 08:36:56 -0500
Subject: [PATCH 36/62] Fix varName in attach_image_to_embed
---
actions/attach_image_to_embed_MOD.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/actions/attach_image_to_embed_MOD.js b/actions/attach_image_to_embed_MOD.js
index b12e2d8e..85dba872 100644
--- a/actions/attach_image_to_embed_MOD.js
+++ b/actions/attach_image_to_embed_MOD.js
@@ -26,7 +26,7 @@ module.exports = {
-
+
From 5ea0ccba522989a37230029916d5b58639ebb26b Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Tue, 20 Jun 2023 07:47:05 -0500
Subject: [PATCH 37/62] Added description option (from Ni)
---
actions/store_command_info_MOD.js | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/actions/store_command_info_MOD.js b/actions/store_command_info_MOD.js
index de3a9b84..ac708a5a 100644
--- a/actions/store_command_info_MOD.js
+++ b/actions/store_command_info_MOD.js
@@ -19,6 +19,7 @@ module.exports = {
'Command Aliases',
'Command Time Restriction',
'Command Actions Length',
+ 'Command Description',
];
const storage = ['', 'Temp Variable', 'Server Variable', 'Global Variable'];
return `${info[parseInt(data.info, 10)]} - ${storage[parseInt(data.storage, 10)]}`;
@@ -33,6 +34,7 @@ module.exports = {
case 2:
case 3:
case 4:
+ case 8:
dataType = 'Text';
break;
case 5:
@@ -52,7 +54,7 @@ module.exports = {
html() {
return `
-
+
Search Command By
Name
@@ -60,13 +62,13 @@ module.exports = {
None (Same Command)
-
+
Value To Search
-
+
Source Info
Command Name
@@ -77,6 +79,7 @@ module.exports = {
Command Aliases
Command Time Restriction
Command Actions Length
+ Command Description
@@ -196,6 +199,9 @@ module.exports = {
? 'none'
: parseInt(jp.query(command, '$..name').length, 10) - 1;
break;
+ case 8:
+ result = jp.query(command, '$..description') === '' ? 'none' : jp.query(command, '$..description');
+ break;
default:
break;
}
From a32dc5a66bef6e619631c6c985d466d9750386eb Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Tue, 20 Jun 2023 09:28:23 -0500
Subject: [PATCH 38/62] Action needs embed object not a message variable
---
actions/store_embed_info_MOD.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/actions/store_embed_info_MOD.js b/actions/store_embed_info_MOD.js
index 1b94caf5..8a94e301 100644
--- a/actions/store_embed_info_MOD.js
+++ b/actions/store_embed_info_MOD.js
@@ -32,7 +32,7 @@ module.exports = {
html() {
return `
-
+
From 7cffa20312b4f51c87bb8fde71c47789f556ec4e Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Tue, 20 Jun 2023 09:28:41 -0500
Subject: [PATCH 39/62] Fix spelling
---
actions/store_embed_info_MOD.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/actions/store_embed_info_MOD.js b/actions/store_embed_info_MOD.js
index 8a94e301..21f7072d 100644
--- a/actions/store_embed_info_MOD.js
+++ b/actions/store_embed_info_MOD.js
@@ -32,7 +32,7 @@ module.exports = {
html() {
return `
-
+
From 63c1746c8d6adf154325281a288b24c3fedbca9d Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Tue, 20 Jun 2023 10:15:51 -0500
Subject: [PATCH 40/62] HTML Updates
---
actions/store_embed_info_MOD.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/actions/store_embed_info_MOD.js b/actions/store_embed_info_MOD.js
index 21f7072d..40c8ca1d 100644
--- a/actions/store_embed_info_MOD.js
+++ b/actions/store_embed_info_MOD.js
@@ -37,7 +37,7 @@ module.exports = {
-
+
Source Info
Object
@@ -112,6 +112,7 @@ module.exports = {
default:
break;
}
+
if (result !== undefined) {
const storage = parseInt(data.storage, 10);
this.storeValue(result, storage, this.evalMessage(data.varName2, cache), cache);
From c9dd91fa368003540d58eb54528c6e4eeebed6b2 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Tue, 20 Jun 2023 21:38:25 -0500
Subject: [PATCH 41/62] Structures from the API cannot be edited directly
---
actions/attach_image_to_embed_MOD.js | 5 +++--
actions/edit_embed_object_MOD.js | 6 +++++-
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/actions/attach_image_to_embed_MOD.js b/actions/attach_image_to_embed_MOD.js
index 85dba872..c59d8059 100644
--- a/actions/attach_image_to_embed_MOD.js
+++ b/actions/attach_image_to_embed_MOD.js
@@ -48,7 +48,7 @@ module.exports = {
const embedstorage = parseInt(data.embedstorage, 10);
const embedvarName = this.evalMessage(data.embedvarName, cache);
- const embed = this.getVariable(embedstorage, embedvarName, cache);
+ let embed = this.getVariable(embedstorage, embedvarName, cache);
const imagestorage = parseInt(data.imagestorage, 10);
const imagevarName = this.evalMessage(data.imagevarName, cache);
@@ -61,7 +61,8 @@ module.exports = {
Images.createBuffer(image).then((buffer) => {
const attachment = new DBM.DiscordJS.AttachmentBuilder(buffer, { name: filename });
- embed.attachFiles([attachment]);
+ const { EmbedBuilder } = DBM.DiscordJS;
+ embed = EmbedBuilder.from(embed).attachFiles([attachment]);
const storage = parseInt(data.storage, 10);
const varName = Actions.evalMessage(data.varName, cache);
diff --git a/actions/edit_embed_object_MOD.js b/actions/edit_embed_object_MOD.js
index 709112a4..7a52a0d9 100644
--- a/actions/edit_embed_object_MOD.js
+++ b/actions/edit_embed_object_MOD.js
@@ -558,9 +558,12 @@ module.exports = {
const data = cache.actions[cache.index];
const storage = parseInt(data.storage, 10);
const varName = this.evalMessage(data.varName, cache);
- const embed = this.getVariable(storage, varName, cache);
+ let embed = this.getVariable(storage, varName, cache);
if (!embed) return this.callNextAction(cache);
+ const { EmbedBuilder } = this.getDBM().DiscordJS;
+ embed = EmbedBuilder.from(embed);
+
const Edit0 = parseInt(data.Edit0, 10);
const Edit1 = parseInt(data.Edit1, 10);
const Edit2 = parseInt(data.Edit2, 10);
@@ -592,6 +595,7 @@ module.exports = {
const fieldName = this.evalMessage(data.fieldName, cache);
const fieldDescription = this.evalMessage(data.fieldDescription, cache);
const fieldInline = parseInt(data.fieldInline, 10);
+
switch (Edit0) {
case 1:
embed.setTitle(title);
From 9c54b45bfa9e24dbf1775657bda4a88837415683 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Wed, 21 Jun 2023 17:12:51 -0500
Subject: [PATCH 42/62] Fix convert text to list
---
actions/convert_text_to_list_MOD.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/actions/convert_text_to_list_MOD.js b/actions/convert_text_to_list_MOD.js
index d7b25f39..5e90a5ce 100644
--- a/actions/convert_text_to_list_MOD.js
+++ b/actions/convert_text_to_list_MOD.js
@@ -49,11 +49,14 @@ module.exports = {
const varName = this.evalMessage(data.varName, cache);
const text = this.getVariable(storage, varName, cache);
const separator = this.evalMessage(data.separator, cache);
+
+ const list = [];
const params = text.split(new RegExp(separator));
+ params.forEach((i) => list.push(i.replace(/\r/g, '')));
const storage2 = parseInt(data.storage2, 10);
const varName2 = this.evalMessage(data.varName2, cache);
- this.storeValue(params, storage2, varName2, cache);
+ this.storeValue(list, storage2, varName2, cache);
this.callNextAction(cache);
},
From b6045304bdeb2861634f2e57332e9dd5d4a330ba Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Thu, 22 Jun 2023 23:09:38 -0500
Subject: [PATCH 43/62] Added convert color mod
---
actions/convert_color_MOD.js | 258 +++++++++++++++++++++++++++++++++++
docs/mods.json | 5 +
2 files changed, 263 insertions(+)
create mode 100644 actions/convert_color_MOD.js
diff --git a/actions/convert_color_MOD.js b/actions/convert_color_MOD.js
new file mode 100644
index 00000000..1a6cf280
--- /dev/null
+++ b/actions/convert_color_MOD.js
@@ -0,0 +1,258 @@
+module.exports = {
+ name: 'Convert Color',
+ section: 'Conversions',
+ meta: {
+ version: '2.2.0',
+ preciseCheck: false,
+ author: 'DBM Mods',
+ authorUrl: 'https://github.com/dbm-network/mods',
+ downloadURL: 'https://github.com/dbm-network/mods/blob/master/actions/convert_color_MOD.js',
+ },
+
+ subtitle(data) {
+ let from = data.InputColor.toUpperCase();
+ if (from === 'AUTO') from = 'Auto Detect';
+ if (from === 'CSS') from = 'Keyword';
+ if (from === 'DECIMAL') from = 'Decimal';
+
+ let to = data.OutputColor.toUpperCase();
+ if (to === 'CSS') to = 'Keyword';
+ if (to === 'DECIMAL') to = 'Decimal';
+ return `Convert Color from ${from} to ${to}`;
+ },
+
+ variableStorage(data, varType) {
+ if (parseInt(data.Storage, 10) !== varType) return;
+ return [data.VarName, 'Color'];
+ },
+
+ fields: ['InputColor', 'InputText', 'OutputColor', 'Storage', 'VarName'],
+
+ html() {
+ return `
+
+
+ Convert From
+
+ Auto Detect
+ Keyword
+ HEX
+ RGB
+ HSL
+ CMYK
+ Decimal
+
+
+
+ Color
+
+
+
+
+
+
+ Convert To
+
+ Keyword
+ HEX
+ RGB
+ HSL
+ CMYK
+ Decimal
+
+
+
+
+
+
+
+
+
+
+
+ Input Strings:
+ Keyword: Name of the color
+ HEX: (0x || #) [a-fA-F0-9] (x3 || x6)
+ RGB: rgb(100, 100, 100)
+ HSL: hsl(50, 50%, 50%) || hsl(50, 50, 50)
+ CMYK: cmyk(100%, 100%, 0%, 0%) || cmyk(100, 100, 0, 0)
+
+
`;
+ },
+
+ init() {},
+
+ async action(cache) {
+ const data = cache.actions[cache.index];
+ const InputText = this.evalMessage(data.InputText, cache);
+ let OutputText;
+
+ // Module requirements
+ const Mods = this.getMods();
+ const ColorConvert = Mods.require('color-convert');
+
+ if (data.InputColor === data.OutputColor) {
+ const storage = parseInt(data.Storage, 10);
+ const VarName = this.evalMessage(data.VarName, cache);
+ this.storeValue(InputText, storage, VarName, cache);
+ return this.callNextAction(cache);
+ }
+
+ // Regex to check if it's valid
+ const rgbRegex = /^rgb[\s+]?\((:?\d+\.?\d?%?)(,|-|\/\|)\s?(:?\d+\.?\d?%?)(,|-|\/\|)\s?(:?\d+\.?\d?%?)\)/i;
+ const cmykRegex = /^cmyk\((\d{1,3})%?\s*,\s*(\d{1,3})%?\s*,\s*(\d{1,3})%?\s*,\s*(\d{1,3})%?\)$/i;
+ const hslRegex = /^hsl\((\d{1,3}),?(\s)?(\d{1,3})%?,?(\s)?(\d{1,3})%?\)$/i;
+ const hexRegex = /^(#|0x)([a-f0-9]{3}){1,2}$/i;
+ const decimalRegex = /\b(?:\d{1,3}(?:,\s?)?){3}\b/;
+ const cssRegex = /^[a-zA-Z]+$/;
+
+ const Convert = function Convert(input) {
+ let Output;
+
+ try {
+ switch (data.OutputColor) {
+ case 'css': {
+ // Get the nearest color from an extra list of colors
+ const ColorNameList = Mods.require('color-name-list');
+ const extraColors = ColorNameList.reduce(
+ (o, { name, hex }) => Object.assign(o, { [name.toLowerCase()]: hex }),
+ {},
+ );
+ const nearestColor = Mods.require('nearest-color').from(extraColors);
+
+ if (extraColors[input.toString().toLowerCase()]) input = extraColors[input.toString().toLowerCase()];
+
+ Output = nearestColor(input).name;
+ break;
+ }
+ case 'hex': {
+ if (input.length === 3) {
+ input = input.slice();
+ const pos1 = input[0];
+ const pos2 = input[1];
+ const pos3 = input[2];
+ input = pos1 + pos1 + pos2 + pos2 + pos3 + pos3;
+ }
+ Output = input.toUpperCase();
+ break;
+ }
+ case 'rgb': {
+ Output = ColorConvert.hex.rgb(input);
+ break;
+ }
+ case 'hsl': {
+ Output = ColorConvert.hex.hsl(input);
+ break;
+ }
+ case 'cmyk': {
+ Output = ColorConvert.hex.cmyk(input);
+ break;
+ }
+ case 'decimal': {
+ const Converter = Mods.require('hex2dec');
+ Output = Converter.hexToDec(`0x${input}`);
+ break;
+ }
+ }
+ } catch (error) {
+ console.error(error);
+ }
+
+ return Output;
+ };
+
+ try {
+ switch (data.InputColor) {
+ case 'css': {
+ if (!cssRegex.test(InputText)) break;
+ OutputText = Convert(ColorConvert.keyword.hex(InputText));
+ break;
+ }
+ case 'hex': {
+ if (!hexRegex.test(InputText)) break;
+ let input = InputText.toUpperCase();
+ if (input.charAt() === '#') {
+ input = input.substr(1);
+ } else if (input.charAt() === '0' && input.charAt(1) === 'X') {
+ input = input.substr(2);
+ }
+
+ OutputText = Convert(input);
+ break;
+ }
+ case 'rgb': {
+ if (!rgbRegex.test(InputText)) break;
+ const input = InputText.replace(/rgb|\(|\)/gi, '');
+ OutputText = Convert(ColorConvert.rgb.hex(input));
+ break;
+ }
+ case 'hsl': {
+ if (!hslRegex.test(InputText)) break;
+ const input = InputText.replace(/hsl|\(|\)|%/gi, '');
+ OutputText = Convert(ColorConvert.hsl.hex(input));
+ break;
+ }
+ case 'cmyk': {
+ if (!cmykRegex.test(InputText)) break;
+ const input = InputText.replace(/cmyk|\(|\)|%/gi, '');
+ OutputText = Convert(ColorConvert.cmyk.hex(input));
+ break;
+ }
+ case 'decimal': {
+ if (!decimalRegex.test(InputText)) break;
+ const Converter = Mods.require('hex2dec');
+ const input = Converter.decToHex(InputText, { prefix: false });
+ OutputText = Convert(input);
+ break;
+ }
+ case 'auto': {
+ if (cmykRegex.test(InputText)) {
+ const input = InputText.replace(/cmyk|\(|\)|%/gi, '');
+ OutputText = Convert(ColorConvert.cmyk.hex(input));
+ break;
+ } else if (hslRegex.test(InputText)) {
+ const input = InputText.replace(/hsl|\(|\)|%/gi, '');
+ OutputText = Convert(ColorConvert.hsl.hex(input));
+ break;
+ } else if (rgbRegex.test(InputText)) {
+ const input = InputText.trim()
+ .replace(/rgb|\(|\)/gi, '')
+ .replace(/\s/g, '')
+ .split(',');
+ OutputText = Convert(ColorConvert.rgb.hex(input));
+ break;
+ } else if (hexRegex.test(InputText)) {
+ let input = InputText.toUpperCase();
+ if (input.charAt() === '#') {
+ input = input.substr(1);
+ } else if (/^0x/i.test(input)) {
+ input = input.substr(2);
+ }
+ OutputText = Convert(input);
+ break;
+ } else if (cssRegex.test(InputText)) {
+ OutputText = Convert(ColorConvert.keyword.hex(InputText.toLowerCase()));
+ break;
+ } else if (decimalRegex.test(InputText)) {
+ const Converter = Mods.require('hex2dec');
+ const input = Converter.decToHex(InputText, { prefix: false });
+ OutputText = Convert(input);
+ break;
+ }
+ break;
+ }
+ }
+ } catch (error) {
+ console.error(error);
+ }
+
+ if (OutputText !== undefined) {
+ const storage = parseInt(data.Storage, 10);
+ const varName = this.evalMessage(data.VarName, cache);
+ this.storeValue(OutputText, storage, varName, cache);
+ }
+ this.callNextAction(cache);
+ },
+
+ mod() {},
+};
diff --git a/docs/mods.json b/docs/mods.json
index c266c848..95c61df1 100644
--- a/docs/mods.json
+++ b/docs/mods.json
@@ -204,6 +204,11 @@
"name": "Control Server Prefix",
"section": "Server Control"
},
+ "convert_color_MOD.js": {
+ "description": "Convert between colors",
+ "name": "Convert Color",
+ "section": "Conversions"
+ },
"convert_seconds_to_days_MOD.js": {
"description": "Convert seconds to days",
"name": "Convert Seconds To D/H/M/S",
From beb5df5d77efe995b2bcdf5d5868db31314f17cb Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Sat, 24 Jun 2023 13:54:06 -0500
Subject: [PATCH 44/62] Require node-fetch@2
---
actions/get_stats_from_dbl_MOD.js | 2 +-
actions/send_json_to_webapi_MOD.js | 2 +-
actions/send_stats_to_botlist.me_MOD.js | 2 +-
actions/send_stats_to_dbl_MOD.js | 2 +-
actions/store_html_from_webpage_MOD.js | 2 +-
actions/store_json_from_webapi_MOD.js | 2 +-
actions/store_twitch_info_MOD.js | 2 +-
actions/twitch_authentication_MOD.js | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/actions/get_stats_from_dbl_MOD.js b/actions/get_stats_from_dbl_MOD.js
index 4c399683..8123fceb 100644
--- a/actions/get_stats_from_dbl_MOD.js
+++ b/actions/get_stats_from_dbl_MOD.js
@@ -170,7 +170,7 @@ module.exports = {
if (!topggToken) return console.log('Missing TopGG Token in Get Bot Stats From TopGG');
const Mods = this.getMods();
- const fetch = Mods.require('node-fetch');
+ const fetch = Mods.require('node-fetch', '2');
fetch(`https://top.gg/api/bots/${botID}`, {
method: 'GET',
diff --git a/actions/send_json_to_webapi_MOD.js b/actions/send_json_to_webapi_MOD.js
index 9843b63b..65836488 100644
--- a/actions/send_json_to_webapi_MOD.js
+++ b/actions/send_json_to_webapi_MOD.js
@@ -134,7 +134,7 @@ module.exports = {
const { Actions } = this.getDBM();
const Mods = this.getMods();
- const fetch = require('node-fetch');
+ const fetch = require('node-fetch', '2');
let url = this.evalMessage(data.postUrl, cache);
const method = this.evalMessage(data.method, cache);
diff --git a/actions/send_stats_to_botlist.me_MOD.js b/actions/send_stats_to_botlist.me_MOD.js
index 6f9a2d71..14d67ccb 100644
--- a/actions/send_stats_to_botlist.me_MOD.js
+++ b/actions/send_stats_to_botlist.me_MOD.js
@@ -43,7 +43,7 @@ module.exports = {
const token = this.evalMessage(data.token, cache);
const info = parseInt(data.info, 10);
const Mods = this.getMods();
- const fetch = Mods.require('node-fetch');
+ const fetch = Mods.require('node-fetch', '2');
const client = this.getDBM().Bot.bot;
const body = { server_count: client.guilds.cache.size };
diff --git a/actions/send_stats_to_dbl_MOD.js b/actions/send_stats_to_dbl_MOD.js
index 7422c26a..af143f14 100644
--- a/actions/send_stats_to_dbl_MOD.js
+++ b/actions/send_stats_to_dbl_MOD.js
@@ -43,7 +43,7 @@ module.exports = {
const token = this.evalMessage(data.dblToken, cache);
const info = parseInt(data.info, 10);
const Mods = this.getMods();
- const fetch = Mods.require('node-fetch');
+ const fetch = Mods.require('node-fetch', '2');
const client = this.getDBM().Bot.bot;
const body = [
diff --git a/actions/store_html_from_webpage_MOD.js b/actions/store_html_from_webpage_MOD.js
index 9c1cd2aa..e26b0d14 100644
--- a/actions/store_html_from_webpage_MOD.js
+++ b/actions/store_html_from_webpage_MOD.js
@@ -39,7 +39,7 @@ module.exports = {
async action(cache) {
const Mods = this.getMods();
- const fetch = Mods.require('node-fetch');
+ const fetch = Mods.require('node-fetch', '2');
const data = cache.actions[cache.index];
diff --git a/actions/store_json_from_webapi_MOD.js b/actions/store_json_from_webapi_MOD.js
index 8a2b9b2b..b76a9c15 100644
--- a/actions/store_json_from_webapi_MOD.js
+++ b/actions/store_json_from_webapi_MOD.js
@@ -143,7 +143,7 @@ module.exports = {
const data = cache.actions[cache.index];
const { Actions } = this.getDBM();
const Mods = this.getMods();
- const fetch = Mods.require('node-fetch');
+ const fetch = Mods.require('node-fetch', '2');
const debugMode = parseInt(data.debugMode, 10);
const storage = parseInt(data.storage, 10);
const varName = this.evalMessage(data.varName, cache);
diff --git a/actions/store_twitch_info_MOD.js b/actions/store_twitch_info_MOD.js
index ba8b4ff6..13a12c67 100644
--- a/actions/store_twitch_info_MOD.js
+++ b/actions/store_twitch_info_MOD.js
@@ -669,7 +669,7 @@ module.exports = {
async action(cache) {
const data = cache.actions[cache.index];
const Mods = this.getMods();
- const fetch = Mods.require('node-fetch');
+ const fetch = Mods.require('node-fetch', '2');
const input = this.evalMessage(data.input, cache);
const clientID = this.evalMessage(data.clientid, cache);
diff --git a/actions/twitch_authentication_MOD.js b/actions/twitch_authentication_MOD.js
index 30436863..3b165ff7 100644
--- a/actions/twitch_authentication_MOD.js
+++ b/actions/twitch_authentication_MOD.js
@@ -69,7 +69,7 @@ module.exports = {
async action(cache) {
const data = cache.actions[cache.index];
const Mods = this.getMods();
- const fetch = Mods.require('node-fetch');
+ const fetch = Mods.require('node-fetch', '2');
const clientID = this.evalMessage(data.client_id, cache);
const clientSecret = this.evalMessage(data.client_secret, cache);
const info = parseInt(data.info, 10);
From 370511cb41361cdeb58c75490ad5326317ff0ef3 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Sat, 24 Jun 2023 21:53:14 -0500
Subject: [PATCH 45/62] Fix convert color mod
---
actions/convert_color_MOD.js | 33 +++++++++++++++++++++++++++------
1 file changed, 27 insertions(+), 6 deletions(-)
diff --git a/actions/convert_color_MOD.js b/actions/convert_color_MOD.js
index 1a6cf280..c0a3d9ff 100644
--- a/actions/convert_color_MOD.js
+++ b/actions/convert_color_MOD.js
@@ -106,6 +106,7 @@ module.exports = {
const decimalRegex = /\b(?:\d{1,3}(?:,\s?)?){3}\b/;
const cssRegex = /^[a-zA-Z]+$/;
+ // Convert from HEX to the respective output (It is much easier to just convert everything to hex and convert back)
const Convert = function Convert(input) {
let Output;
@@ -120,6 +121,7 @@ module.exports = {
);
const nearestColor = Mods.require('nearest-color').from(extraColors);
+ // Check if the keyword for css is included inside the extraColors list
if (extraColors[input.toString().toLowerCase()]) input = extraColors[input.toString().toLowerCase()];
Output = nearestColor(input).name;
@@ -150,7 +152,7 @@ module.exports = {
}
case 'decimal': {
const Converter = Mods.require('hex2dec');
- Output = Converter.hexToDec(`0x${input}`);
+ Output = Converter.hexToDec(input);
break;
}
}
@@ -182,19 +184,30 @@ module.exports = {
}
case 'rgb': {
if (!rgbRegex.test(InputText)) break;
- const input = InputText.replace(/rgb|\(|\)/gi, '');
+ const input = InputText.trim()
+ .replace(/rgb|\(|\)/gi, '')
+ .replace(/\s/g, '')
+ .split(',');
OutputText = Convert(ColorConvert.rgb.hex(input));
break;
}
case 'hsl': {
if (!hslRegex.test(InputText)) break;
- const input = InputText.replace(/hsl|\(|\)|%/gi, '');
+ const input = InputText.trim()
+ .replace(/hsl|\(|\)|%/gi, '')
+ .replace(/\s/g, '')
+ .split(',')
+ .map((string) => Number(string));
OutputText = Convert(ColorConvert.hsl.hex(input));
break;
}
case 'cmyk': {
if (!cmykRegex.test(InputText)) break;
- const input = InputText.replace(/cmyk|\(|\)|%/gi, '');
+ let input = InputText.trim()
+ .replace(/cmyk|\(|\)|%/gi, '')
+ .replace(/\s/g, '')
+ .split(',')
+ .map((string) => Number(string));
OutputText = Convert(ColorConvert.cmyk.hex(input));
break;
}
@@ -207,11 +220,19 @@ module.exports = {
}
case 'auto': {
if (cmykRegex.test(InputText)) {
- const input = InputText.replace(/cmyk|\(|\)|%/gi, '');
+ let input = InputText.trim()
+ .replace(/cmyk|\(|\)|%/gi, '')
+ .replace(/\s/g, '')
+ .split(',')
+ .map((string) => Number(string));
OutputText = Convert(ColorConvert.cmyk.hex(input));
break;
} else if (hslRegex.test(InputText)) {
- const input = InputText.replace(/hsl|\(|\)|%/gi, '');
+ const input = InputText.trim()
+ .replace(/hsl|\(|\)|%/gi, '')
+ .replace(/\s/g, '')
+ .split(',')
+ .map((string) => Number(string));
OutputText = Convert(ColorConvert.hsl.hex(input));
break;
} else if (rgbRegex.test(InputText)) {
From 15d0dc6da0445f41ef6befaa745de8bf6235dcf1 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Sat, 24 Jun 2023 21:53:45 -0500
Subject: [PATCH 46/62] Forgot to run prettier
---
actions/convert_color_MOD.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/actions/convert_color_MOD.js b/actions/convert_color_MOD.js
index c0a3d9ff..0652e79c 100644
--- a/actions/convert_color_MOD.js
+++ b/actions/convert_color_MOD.js
@@ -203,7 +203,7 @@ module.exports = {
}
case 'cmyk': {
if (!cmykRegex.test(InputText)) break;
- let input = InputText.trim()
+ const input = InputText.trim()
.replace(/cmyk|\(|\)|%/gi, '')
.replace(/\s/g, '')
.split(',')
@@ -220,7 +220,7 @@ module.exports = {
}
case 'auto': {
if (cmykRegex.test(InputText)) {
- let input = InputText.trim()
+ const input = InputText.trim()
.replace(/cmyk|\(|\)|%/gi, '')
.replace(/\s/g, '')
.split(',')
From 744d5367ddcd6a0de9f60cb4e5bbf8939515e6a0 Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Thu, 29 Jun 2023 07:51:17 -0500
Subject: [PATCH 47/62] Fix merging error
---
actions/store_queue_info_MOD.js | 6 ------
1 file changed, 6 deletions(-)
diff --git a/actions/store_queue_info_MOD.js b/actions/store_queue_info_MOD.js
index e9d4a615..3ab00b36 100644
--- a/actions/store_queue_info_MOD.js
+++ b/actions/store_queue_info_MOD.js
@@ -112,12 +112,6 @@ module.exports = {
case 6:
result = queue.currentTrack;
break;
- case 7:
- result = queue.metadata;
- break;
- case 8:
- result = queue;
- break;
case 7:
result = queue.metadata.channel;
break;
From c0a5e05a4caa9670b57849eef7104b0ed56296e1 Mon Sep 17 00:00:00 2001
From: TheMonDon
Date: Thu, 29 Jun 2023 17:47:42 -0500
Subject: [PATCH 48/62] Call next action on error
---
actions/game_server_MOD.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/actions/game_server_MOD.js b/actions/game_server_MOD.js
index f634094c..fef7989d 100644
--- a/actions/game_server_MOD.js
+++ b/actions/game_server_MOD.js
@@ -445,7 +445,10 @@ module.exports = {
}
Actions.callNextAction(cache);
})
- .catch((error) => console.log(`Game Server Info: ${error}`));
+ .catch((error) => {
+ console.log(`Game Server Info: ${error}`);
+ Actions.callNextAction(cache);
+ });
},
mod() {},
From bec056b43a56d2281c357dd05fbddeb9e3a2781c Mon Sep 17 00:00:00 2001
From: TheMonDon
Date: Thu, 29 Jun 2023 19:24:47 -0500
Subject: [PATCH 49/62] Update bot check
---
actions/check_if_member_MOD.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/actions/check_if_member_MOD.js b/actions/check_if_member_MOD.js
index 3a9291c1..30336e6b 100644
--- a/actions/check_if_member_MOD.js
+++ b/actions/check_if_member_MOD.js
@@ -80,7 +80,7 @@ module.exports = {
let result = false;
switch (info) {
case 0:
- result = member.user?.bot;
+ result = member.user ? member.user?.bot : member.bot;
break;
case 1:
result = member.bannable;
From 0094d71d3ba181f723bbd80a447d47b8046c037b Mon Sep 17 00:00:00 2001
From: TheMonDon
Date: Thu, 29 Jun 2023 19:37:57 -0500
Subject: [PATCH 50/62] Delete attach_image_to_embed_MOD.js
---
actions/attach_image_to_embed_MOD.js | 75 ----------------------------
1 file changed, 75 deletions(-)
delete mode 100644 actions/attach_image_to_embed_MOD.js
diff --git a/actions/attach_image_to_embed_MOD.js b/actions/attach_image_to_embed_MOD.js
deleted file mode 100644
index c59d8059..00000000
--- a/actions/attach_image_to_embed_MOD.js
+++ /dev/null
@@ -1,75 +0,0 @@
-module.exports = {
- name: 'Attach Image To Embed',
- section: 'Embed Message',
- meta: {
- version: '2.2.0',
- 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);
- let 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.AttachmentBuilder(buffer, { name: filename });
- const { EmbedBuilder } = DBM.DiscordJS;
- embed = EmbedBuilder.from(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() {},
-};
From 4f2df3c0a4a520f922342858ca64d4499faf484a Mon Sep 17 00:00:00 2001
From: TheMonDon <11539895+TheMonDon@users.noreply.github.com>
Date: Fri, 30 Jun 2023 13:00:08 -0500
Subject: [PATCH 51/62] Set `leaveVoiceTimeout` to be 10 if undefined
---
actions/play_music_MOD.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/actions/play_music_MOD.js b/actions/play_music_MOD.js
index 6e61b887..74bed3ef 100644
--- a/actions/play_music_MOD.js
+++ b/actions/play_music_MOD.js
@@ -73,7 +73,7 @@ module.exports = {
if (data.volume) volume = parseInt(this.evalMessage(data.volume, cache), 10) ?? 80;
// leaveOnEnd & leaveOnEmpty Cooldowns from DBM Settings
- const leaveVoiceTimeout = Files.data.settings.leaveVoiceTimeout ?? '0';
+ const leaveVoiceTimeout = Files.data.settings.leaveVoiceTimeout ?? '10';
let seconds = parseInt(leaveVoiceTimeout, 10);
if (isNaN(seconds) || seconds < 0) seconds = 0;
From 511eb6ab5b225d37d5f772649bc29acde04dd9cc Mon Sep 17 00:00:00 2001
From: TheMonDon
Date: Sat, 1 Jul 2023 21:58:04 -0500
Subject: [PATCH 52/62] Fix html in store data list
---
actions/store_data_list_MOD.js | 33 +++++++++++++++------------------
1 file changed, 15 insertions(+), 18 deletions(-)
diff --git a/actions/store_data_list_MOD.js b/actions/store_data_list_MOD.js
index b550d40e..c1537c3f 100644
--- a/actions/store_data_list_MOD.js
+++ b/actions/store_data_list_MOD.js
@@ -46,7 +46,7 @@ module.exports = {
'storage',
],
- html(_isEvent, data) {
+ html() {
return `
@@ -57,7 +57,7 @@ module.exports = {
servers.json
-