Title: [ANN]Self Moderator Bot Post by: PrimeNumber7 on December 15, 2019, 07:12:59 AM There appears to be demand for a bot to prevent specific users from being able to post in self moderated threads.
As such, I am releasing a bot to self moderator bot that bans specific UIDs from posting in your self moderated thread. You can run the bot by performing the following steps:
Python The following python libraries: splinter bs4 (beautifulsoup) selenium numpy datetime time warnings Chrome Chromedriver -- you can find documentation on how to install chromedriver (https://chromedriver.chromium.org/getting-started) here. The bot was tested using version 3.7 of python, and I am unsure if it will work on older versions If you don't want Chrome to display in the backgroud while your bot is running, you can change line 48, specifically the variable 'headless' from False to True My bot has a MIT license, however by using my bot, or by using any bot derived from my bot, you are agreeing and promising that you will not take steps to prevent the subject of your self-moderated thread from posting in your thread. In other words, if you are using my bot, you must allow any person who is the subject of your self-moderated thread to respond to your thread. I have posted my code on github (https://github.com/numberedprime7/self-moderator-bot) Code: Cloud Flare appears to be preventing me from posting my code here Comments and suggestions for improvements are welcomed. If there is demand, I could add functionality to also prevent ranks, or those with under certain activity or merit from posting. Title: Re: [ANN]Self Moderator Bot Post by: LoyceV on December 15, 2019, 08:58:14 AM I haven't tested it, but I can see how this can be useful :)
however by using my bot, or by using any bot derived from my bot, you are agreeing and promising that you will not take steps to prevent the subject of your self-moderated thread from posting in your thread. In other words, if you are using my bot, you must allow any person who is the subject of your self-moderated thread to respond to your thread. Fair enough :)#enter how frequently you wish to review your thread for banned posters, in seconds, minimum 1 If many users start using this bot, it's going to cause a lot of page loads. If that becomes too much, a centralized api that scrapes all posts (like I do here, but I don't have an api (https://bitcointalk.org/index.php?topic=5167469.0)) might be needed to prevent unneccessary scraping. It's very easy to know if a certain user posted in a certain thread, without (eventually) scraping hundreds of different threads.frequency = 10 Title: Re: [ANN]Self Moderator Bot Post by: PrimeNumber7 on December 15, 2019, 09:12:47 PM #enter how frequently you wish to review your thread for banned posters, in seconds, minimum 1 If many users start using this bot, it's going to cause a lot of page loads. If that becomes too much, a centralized api that scrapes all posts (like I do here, but I don't have an api (https://bitcointalk.org/index.php?topic=5167469.0)) might be needed to prevent unneccessary scraping. It's very easy to know if a certain user posted in a certain thread, without (eventually) scraping hundreds of different threads.frequency = 10 An API would overall consume less resources because less data would need to be sent to each user. However it would require a lot more work, and other resources to setup. It would probably also require some ongoing maintenance. I might put something like this on my to-do list. Title: Re: [ANN]Self Moderator Bot Post by: suchmoon on December 19, 2019, 02:15:13 PM Congratulations, I think you have your first customer - it seems that Bitcoin SV put your bot to good use:
https://bitcointalk.org/index.php?topic=5149062.msg53385641#msg53385641 Title: Re: [ANN]Self Moderator Bot Post by: PrimeNumber7 on December 19, 2019, 02:45:41 PM Congratulations, I think you have your first customer - it seems that Bitcoin SV put your bot to good use: Someone in the BSV team is surly capable of writing this code (the code is not complicated). You have even been banned from self moderated threads before (https://bitcointalk.org/index.php?topic=5209421.msg53344678#msg53344678). https://bitcointalk.org/index.php?topic=5149062.msg53385641#msg53385641 The current forum rules already allow for OPs if self moderated threads to effectively do what my bot does. If they are scamming, you should open a scam accusation, if one doesn’t exist for the particular scam. Furthermore, I doubt either the presence or absence of the posts in question are going to change anyone’s mind regarding that shit-coin. I am a firm believer of equal access, opportunity and knowledge for everyone. I will keep up the code. I have also received messages from others about my code who appeared interested in using the code. Title: Re: [ANN]Self Moderator Bot Post by: PrimeNumber7 on February 14, 2022, 05:08:39 PM If anyone is posting nonsense in your self mod thread and is refusing to refrain from posting, this tool is for you! |