Message from @Jacob
Discord ID: 500167597480738817
You think this is something I should try doing myself after having taken 3 Java classes? Or should I use your white privilege bot and modify it?
@Jacob I'm sure you could do it but there's no sense reinventing the wheel, here's the scraper
Not sure if you have python set up already, let me know if you can run the script
okay thanks
I was thinking of doing it as a programming exercise, but my time would probably be better spent practicing what I'm learning in class.
There's plenty to add to the script if you like
Here's one idea we had in another Discord server
Once a comment is identified as being about immigration, scan the comment for particular phrases, like "jobs Americans won't do". Then, when the bot sends me the email, it would it provide both a link to the comment, and a few potential counterarguments based on the key phrase found.
So, let's say I have a database with 30 counterarguments. That's a lot of work to open it up and sift through it each time to get the right now. So, instead, the bot would send me 3 counterarguments in the email that are likely matches based on the text of the comment.
why not just *become* the machine
mindexplosion.jpg
@ThisIsChris Do you think you could add some comments to that code to explain a bit what each section does?
@Jacob alright, here you go!
Thanks!
You're welcome! I tried to be thorough with the comments but let me know if there's anything unclear
<@&435155896780324864> Anyone online to help me with Java?
Depends, I took it last spring and I'm doing C++ now. What'd you need?
to find out what's wrong with this program
okay this is the right one
Is it not compiling?
I'm not sure how to compare the objects
what is the purpose of the program?
to make a circular doubly linked list and test it
@ThisIsChris can you help me with this?
@Jacob
line 155-156 is:
```java
if (sortedCurr.data.equals(curr.data) ||
sortedCurr.data.compareTo(curr.data) > 0)
```
I'll let Chris handle this one.
try changing it to:
```java
if ( (sortedCurr.data.equals(curr.data)) ||
(sortedCurr.data.compareTo(curr.data) > 0) )
```
it still gives an error
What's the error?
"The method compareTo(Object) is undefined for the type Object"
You're missing a (
where?
and why would that make the compareTo method undefined?
before sorted
second line
Doesn't look like it's closed
nah all the parentheses are closed
I changed it to the one Chris sent
I'm not getting any errors from parentheses
@Jacob `data` is an Object, how do you know it implements the Comparable interface?