![]() !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. Add the channel ID from the channel you want the update notifications in after DISCORDJS_TEXTCHANNEL_ID=.You can get this token from /developers/applications. Add your discord bot token after DISCORDJS_BOT_TOKEN=.Make sure you have git and nodejs installed.Create a new discord bot on /developers/applications.Checking on a specified interval (1-60 minutes, default 5).Monitoring specified elements of a site, to not get notified on dynamic elements (ex.List of features of the site-watcher bot: Notify you in Discord when a website changes: A Discord bot that alerts you when (part of) a website changes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |