Copy the URL from the WEBHOOK URL field.Enter the name of the bot to post the message.Otherwise, select View Webhooks then New Webhook. If there are no existing webhooks, select Create Webhook.From the channel menu, select Edit channel.Open the Discord channel you want to receive GitLab event notifications.To send GitLab event notifications to a Discord channel, create a webhook in DiscordĪnd configure it in GitLab. The Discord Notifications integration sends event notifications from GitLab to the channel for which the webhook was created. Configure created webhook in GitLab Discord Notifications.More options for setting interval (seconds/hours/days etc.Configuration via Discord, not via config file.If you'd like you can add new features or fix bugs by forking the repository and creating a pull request.įeatures I want to implement at some point: Im currently not updating the bot with new features, however I'll try to fix bugs that are reported. !status This checks if the site watcher is running. !stop This stops the watcher from automatically checking the tracked websites. Stops the watcher from automatically checking the tracked websites. !start This starts the watcher with the specified interval. ![]() Start the watcher with the specified interval (default ON with interval of 5 minutes). !interval 10 Sets the interval to 10 minutes. MINUTES The interval in minutes (minimum of 1, maximum of 60). Set the interval/refresh rate of the watcher. If a site is updated, it will push the standard update message to the default update channel. !update This manually updates the sites that are being watched. Manually updates the sites that are being watched. !list This shows the list of websites being watched. Shows the list of websites being watched. !remove 1 This removes the first site in the list ( !list). Use !list to see the number of the site(s). NUMBER The number of the site you want to remove. !add "body > div > h1" This tracks changes in header 1 of the site. To make sure this is filtered out, use the css selector parameter. Note that some sites, including have dynamic elements (like ads) that cause a change every time its checked. You can right click on the element and select Copy → Copy selector. After this you see the element highlighted in the developer view. In Chrome, this can be obtained by right clicking the part of the site you want to track and selecting: Inspect. Make sure to use double quotation marks when using this parameter. "CSS SELECTOR" The part of the site you want to track. URL The URL of the site you want to track. !help This will show all the available commands. Done! The added site is now being monitored.īy default, the watch interval for every website is 5 minutes, but you can easily change this with the !interval command followed by the interval in minutes.įor all other options, see Commands.In Discord (the bot should now be online), add a website with the !add command.Open the command line in the cloned repository folder by opening the cmd.bat file.Invite the bot to your Discord server by replacing 123456789012345678 in the following link with your bot's client id.src/monitor.js file ( const PREFIX = '!' ).įor starting and using the bot, see Usage. If you want to change the prefix (default " !"), you can change it in the.Make sure the bot has permission to post in this channel. ![]() Make sure Developer Mode is on by going to Settings → Appearance → Advanced → Developer Mode → ON. You can get this ID by right clicking the channel in discord and selecting Copy ID. ![]()
0 Comments
Leave a Reply. |