1. Triumph has risen from these uncharted shores. The 34th Modeling Contest Results are out!
    Dismiss Notice
  2. Awaken what lies in the heart of your swarm. The 17th Techtree Contest has arrived!
    Dismiss Notice
  3. The Hive Workshop is launching its first HD modelling contest. How HD should it be?
    Dismiss Notice
  4. Check out the Staff Job Openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Discord Notification When Map Is Hosted

Discussion in 'Multiplayer LFG' started by TriggerHappy, Jan 29, 2019.

  1. archimonde666

    archimonde666

    Joined:
    Nov 4, 2020
    Messages:
    1
    Resources:
    0
    Resources:
    0
    @TriggerHappy
    I have the exact same issue.
    If it's a permission issue that isn't resolved while giving admin permission, discord recently reinforced some things and you now need to declare discord.Intents.all() to perform some special actions like retrieving whole list of members of a discord, and some others ...
     
  2. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    2,880
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    It should be fixed now. Let me know if there are any issues.
     
  3. Tyler Gleditsch

    Tyler Gleditsch

    Joined:
    Sep 9, 2019
    Messages:
    9
    Resources:
    0
    Resources:
    0
    Is this a bug or a feature?

    I have an issue when using
    Code (Text):
    !notifychannel ### XXX
    It appears that the bot will only notify a single channel based upon the last command it has received. I attempted to load roughly 8 commands (for a single channel) into the bot, and it appears to only respond to the "last loaded command" when new maps are hosted.

    Strange thing is,
    Code (Text):
    !notify XXX
    has no problem taking multiple commands, and responding with notifications to them accordingly.
     
    Last edited: Nov 6, 2020
  4. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    2,880
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    You can supply multiple patterns in a single regex. For example:

    !notifychannel ### (Vampirism Fire|c7b78db248072969b1ea8c7f3edd7fc352e3e4bb|Vamp Fire)
     
  5. Tyler Gleditsch

    Tyler Gleditsch

    Joined:
    Sep 9, 2019
    Messages:
    9
    Resources:
    0
    Resources:
    0
    That syntax works great! Thanks for the quick reply.
     
  6. checkmate

    checkmate

    Joined:
    Dec 31, 2020
    Messages:
    1
    Resources:
    0
    Resources:
    0
    Hello It appears the bot is down.
     
  7. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    2,880
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    It was down while I wasnt available to fix it. I fixed it yesterday when I had the chance.
     
  8. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    2,880
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Bot will be temporarily down due to outages.

    EDIT: It's back up.
     
    Last edited: Jan 21, 2021
  9. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    2,880
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    New update.

    • The bot will now notify you if a game has cheats in it.
    • The map's actual title is now displayed if the map is in the database.
    • Instead of showing the full date the bot will show how long ago the lobby was started. When the lobby closes, it will show the date.
    • You can now see player's avatars.
    • If the map is not in the database it will show the map's filename.
    • Cleaned up the embed design a bit.

    triggs1.jpg triggs2.jpg
    triggs3.jpg
     
  10. momocats

    momocats

    Joined:
    Feb 2, 2021
    Messages:
    1
    Resources:
    0
    Resources:
    0
    Sorry, I'd like to ask why I still can't set the bot to my channel. #TriggerHappy

    @Triggs !notifychannel #game-hosting Defends GX

    Is there anything wrong with my syntax above?

    He still keeps prompting me

    (I do not have access to that channel, or it does not exist. Make sure you add me to your Discord server and give proper permissions.)

    Can you provide the teaching process? ty
     
  11. Jaccouille

    Jaccouille

    Joined:
    Feb 1, 2019
    Messages:
    187
    Resources:
    10
    Models:
    7
    Icons:
    2
    Maps:
    1
    Resources:
    10
    Thanks for the update, can you elaborate on the cheat detection part? How does it work? If I have a common jass cheatpack for debug purpose in my map, will it be detected as a cheat pack?
     
  12. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    2,880
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    You need to enable developer mode and right click your channel (#game-hosting) and click Copy-ID. Then you can !notifychannel 12345667 Defends GX.

    I will try update the command to also support the current channel you are typing in without requiring any IDs.

    Yes it will detect common cheat packs.
     
  13. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    2,880
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Another update.
    • !notifychannel no longer requires a channel ID. You can type the command in the channel you wish to use.
    • The discord notification will be green while the game is still open.
    • You no longer need to tag @Triggs for the !notifychannel or !stopchannel commands.
    • The bot will check your regex against the map's actual name now.
    • An issue where sha1 matches weren't working is fixed.

    Untitled.jpg

    Untitled2.jpg
     
    Last edited: Feb 3, 2021
  14. BLOKKADE

    BLOKKADE

    Joined:
    May 18, 2018
    Messages:
    27
    Resources:
    0
    Resources:
    0
    A few months ago I set the bot to notify me of maps that were hosted with my maps hash. This never worked so I didn't bother disabling it. However since the update it has started sending me messages. I tried to use !stopnotify (and it said I wouldn't get notifications any more) but it won't stop. I've just muted the bot so it's not an issue but I thought I'd let you know.
     
  15. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    2,880
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    You need to !stopnotify <channelID> otherwise it will only stop notifications in your DMs.
     
  16. BLOKKADE

    BLOKKADE

    Joined:
    May 18, 2018
    Messages:
    27
    Resources:
    0
    Resources:
    0
    Oh I guess I should've been clearer, but this is in my DMs.

    upload_2021-2-4_11-8-33.png