Comments (7)
Yes, definitely. This would be a good thing, however I think it might require changes to some dependencies (i.e. ChatX, SE::API). It'd be a big project, although it would be useful.
from ips-comment-bot.
So I actually got kinda fired up about this this weekend and started on a major refactor that would isolate the dependencies to make it easy to make mock classes. I also set things up to use a test_db for when the unit-tests get run (that'll get wiped before/after every test module).
I pushed it up in the unit-test branch.
As this is a friggin massive overhaul, I think it'd probably be a good idea if you took a look at it to give me the greenlight that I'm on the right track, before I put more work into it and end up having to scrap everything.
From here I'll probably continue much the same with a wrapper for handling chat replies and then another for the SE client.
Let me know what you think when you get the chance.
(Also I decided to try out Sublime as an IDE for the first time and realized right after I pushed that it'd been sticking in tabs instead of spaces the whole time. I'll fix that on the next commit--please forgive me 😭)
from ips-comment-bot.
Couple of things: Firstly, delete code instead of commenting it -- it's all stored in the git history, we don't need it anymore. Second, you don't need a main function. Just put it in the top level scope. Third, is this tested? Do you know it all runs fine? (this is just initial thoughts, I haven't really reviewed the substance yet)
from ips-comment-bot.
Also, can you make it a PR? I need it to be a PR so I can actually leave comments, otherwise github won't let me.
from ips-comment-bot.
Firstly. Good call. I guess old habits die hard. I've been cleaning it up as I recreate it, but I'll kill it all on my next commit.
Secondly, old habits die hard pt. II, I'll take it out.
Thirdly, I've been testing as I'm going by hand, but I'm also slowly adding tests too. By the time I finish I should have basic tests for most of it. (But suffice to say it is functional--or what I've made so far is).
Lastly, I was holding out until I had a fully working version to make a pull request (which should be the end of this weekend). But I'll put this up now and then just keep contributing to it as I go, good call.
from ips-comment-bot.
The big refactor is here!! Merged into master as of 147fa43
from ips-comment-bot.
Github auto-triggers test runs on push as of be23595!!
from ips-comment-bot.
Related Issues (20)
- Have a new detection type for comments on old posts HOT 1
- Delete offensive detections from child rooms after a minute HOT 2
- Use perspective as an actual reason
- Have the DB viewable from the web HOT 3
- Ignore the OP for regexes, with the exception of offensive
- Proposed `howgood` output change
- Alert HQ room when a user passes a threshold of tp comments HOT 3
- Add a way to tell which regex triggered a report HOT 1
- Add "rescan" reply-to option HOT 1
- Remove a regex reason if the only regex it has is removed HOT 1
- Link feedbacks to people HOT 2
- "Huh?" functionality broken for Toxicity HOT 1
- Disable "Invalid Input" response when reply was >1 parameter long
- Move handling of offensive words out of user defined regular expressions and into code HOT 3
- Add validation around adding a new regex HOT 1
- [FR] Adding command !!/cats to display random picture of cat HOT 7
- Add some gamification to encourage more feedbacks HOT 9
- Don't duplicate post manually reported comments HOT 2
- Get rid of tp/fp/rude on the Comment table
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ips-comment-bot.