From e421f5a19d289baee5d9b29d10f10f7a74030c97 Mon Sep 17 00:00:00 2001 From: Valithor Obsidion Date: Sat, 27 Nov 2021 03:34:03 -0500 Subject: [PATCH] Added Streamers and Viewers role to Game Roles; Member Update Fix; New Custom Roles default template Palace Bot does not use the Twitch API to determine if someone goes live and currently does not capture any related info from Discord, so if you want that type of feature you should add another bot such as YAGPDB.xyz, which could use the Streamers role to determine whose streams to announce and the message could be broadcasted to a channel only Viewers have access to. GUILD_MEMBER_UPDATE has been altered to not spam the logs every time it 'sees' a new member for the first time if they already exist in a guild but loadAllMembers wasn't enabled when the bot was launched, thus thinking a new nickname or a bunch of roles were being added to someone. Added a more relevant Custom Roles default. The old one was meant for the Civ13 server whom requested it originally. --- custom_roles.php | 10 +++------- functions/guildmemberupdate-function.php | 3 ++- game_roles.php | 5 +++++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/custom_roles.php b/custom_roles.php index a0820ac..4c86bf9 100644 --- a/custom_roles.php +++ b/custom_roles.php @@ -1,13 +1,9 @@ "♾️", - "Nomads" => "πŸ› οΈ", - "TDM" => "πŸ”«" + "Self-Promo" => "πŸ“°", ); //Message copy-pasta: -$customroles_message_text = "**Role Menu: Ping Tags** -:infinity: : `Persistence` -:tools: : `Nomads` -:gun: : `TDM` +$customroles_message_text = "**Role Menu: Custom Tags** +:newspaper: : `Self-Promo` "; diff --git a/functions/guildmemberupdate-function.php b/functions/guildmemberupdate-function.php index b77cd09..7431dc5 100644 --- a/functions/guildmemberupdate-function.php +++ b/functions/guildmemberupdate-function.php @@ -1,6 +1,7 @@ id === $discord->id) return; //Don't process changes for the bot (not compatible with $diff) include_once "custom_functions.php"; $author_guild = $member->guild; diff --git a/game_roles.php b/game_roles.php index 59dd3ce..58ffd0c 100644 --- a/game_roles.php +++ b/game_roles.php @@ -1,6 +1,9 @@ "πŸ”", + "Streamers" => "πŸ›°οΈ", + "Viewers" => "πŸ“‘", + "7 Days To Die" => "🧟", "Call of Duty" => "πŸͺ–", "Crusaders of the Lost Idols" => "βš”οΈ", @@ -18,6 +21,8 @@ //Message copy-pasta: $gameroles_message_text = "**Role Menu: Games** :mag: : `Looking For Group` +:satellite_orbital: : `Streamers` +:satellite: : `Viewers` :zombie: : `7 Days To Die` :military_helmet: : `Call of Duty`