Message from @GDoctor

Discord ID: 500164172496240658


2018-10-09 21:41:36 UTC  

If I want it to take it a step further, I could potentially not even read the comments myself, and just have the bot send an automated response based on key phrases. For example, if the bot finds "immigration grows the economy", it could send a canned response explaining the difference between GDP, per capita GDP, and per capita GDP adjusted for inequality.

2018-10-09 22:04:13 UTC  

@Jacob that's a good idea, though if you automatically post a canned response then they will probably ban your boy from posting in the subreddit. Btw if you want to *post* then you'll need a Dev account for your not, and you'll probably want to use PRAW though it's not strictly necessary. Checkout r/redditdev for more info. If you just want to scan comments though then you don't need the dev stuff. That's what I do, scan comments and then send an email to myself and whoever whenever keywords are found that O might want to respond to. Then I do have canned responses that I copy and paste but I usually edit the opening sentence to make it relevant to the post I'm responding to. I did that a lot to teach people about how what is usually seen as white privilege is actually just Jewish privilege

2018-10-09 22:13:50 UTC  

Ya using the bot to post canned response might be a bit much

2018-10-09 22:22:32 UTC  

It's probably not necessary to go that far anyway. It's not like it's a lot of work to go into my document, copy paste, and maybe switch out a few words.

2018-10-09 22:36:27 UTC  

@Jacob completely agree

2018-10-09 22:41:26 UTC  

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?

2018-10-09 22:57:14 UTC  

@Jacob I'm sure you could do it but there's no sense reinventing the wheel, here's the scraper

https://cdn.discordapp.com/attachments/352761432833523713/499354684952412161/Redditconversationscrapper.py

2018-10-09 22:58:38 UTC  

Not sure if you have python set up already, let me know if you can run the script

2018-10-09 23:00:45 UTC  

okay thanks

2018-10-09 23:01:26 UTC  

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.

2018-10-09 23:04:56 UTC  

There's plenty to add to the script if you like

2018-10-09 23:07:56 UTC  

Here's one idea we had in another Discord server

2018-10-09 23:09:14 UTC  

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.

2018-10-09 23:10:35 UTC  

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.

2018-10-09 23:12:41 UTC  

why not just *become* the machine
mindexplosion.jpg

2018-10-10 00:01:26 UTC  

@ThisIsChris Do you think you could add some comments to that code to explain a bit what each section does?

2018-10-11 17:37:21 UTC  

@Jacob alright, here you go!

https://cdn.discordapp.com/attachments/352761432833523713/499998960702717982/Redditconversationscraper_COMMENTED.py

2018-10-11 17:38:17 UTC  

Thanks!

2018-10-11 17:40:24 UTC  

You're welcome! I tried to be thorough with the comments but let me know if there's anything unclear

2018-10-12 04:31:48 UTC  

<@&435155896780324864> Anyone online to help me with Java?

2018-10-12 04:33:51 UTC  

Depends, I took it last spring and I'm doing C++ now. What'd you need?

2018-10-12 04:34:37 UTC  

to find out what's wrong with this program

2018-10-12 04:37:56 UTC  

https://cdn.discordapp.com/attachments/352761432833523713/500165199664381952/StartupCode.zip

2018-10-12 04:38:02 UTC  

okay this is the right one

2018-10-12 04:47:00 UTC  

Is it not compiling?

2018-10-12 04:47:27 UTC  

There's an error on line 155 in the CDoublyLinkedList class

2018-10-12 04:47:34 UTC  

I'm not sure how to compare the objects

2018-10-12 04:54:36 UTC  

what is the purpose of the program?

2018-10-12 04:57:57 UTC  

to make a circular doubly linked list and test it

2018-10-12 04:58:06 UTC  

@ThisIsChris can you help me with this?

2018-10-12 04:59:50 UTC  

@Jacob
line 155-156 is:
```java
if (sortedCurr.data.equals(curr.data) ||
sortedCurr.data.compareTo(curr.data) > 0)
```

2018-10-12 04:59:50 UTC  

I'll let Chris handle this one.

2018-10-12 05:00:29 UTC  

try changing it to:
```java
if ( (sortedCurr.data.equals(curr.data)) ||
(sortedCurr.data.compareTo(curr.data) > 0) )
```

2018-10-12 05:07:15 UTC  

it still gives an error

2018-10-12 05:07:32 UTC  

What's the error?

2018-10-12 05:07:37 UTC  

"The method compareTo(Object) is undefined for the type Object"

2018-10-12 05:07:54 UTC  

You're missing a (

2018-10-12 05:11:03 UTC  

where?

2018-10-12 05:11:19 UTC  

and why would that make the compareTo method undefined?

2018-10-12 05:11:51 UTC  

before sorted

2018-10-12 05:11:56 UTC  

second line