Message from @Jacob

Discord ID: 500799427980558357


2018-10-13 20:38:22 UTC  

Yeeep

2018-10-13 20:38:44 UTC  

It's probably more important to get the other functionalities working, which, for now, includes,
1. Suggesting counterarguments
2. Sending out emails

2018-10-13 20:38:54 UTC  

oh, another issue is that is still occasionally posts duplicates

2018-10-13 20:39:00 UTC  

but that's not too huge of a problem

2018-10-13 20:39:26 UTC  

Yeah. I agree 1 and 2 are more important.

2018-10-13 20:39:52 UTC  

1 is just for you to copy and paste the arguments into a lookup table

2018-10-13 20:40:14 UTC  

2 you can use the `mail` library of the standard library

2018-10-13 20:42:46 UTC  

@ThisIsChris it’s not so much a privacy think - I just don’t want to support them

2018-10-13 20:44:20 UTC  

@Deleted User then yeah startpage pays Google a licensing fee so that's still supporting Google. In that case yeah duckduckgo or bing seem good

2018-10-13 20:45:02 UTC  

You could also try gigablast but they're not really pro-free speech, just different answers than Google

2018-10-13 22:29:18 UTC  

@ThisIsChris How do I use a local email server?

2018-10-13 22:29:41 UTC  

server = smtplib.SMTP('smtp.gmail.com', 587)

Do I just put 'localhost', 25 in here?

2018-10-13 22:29:51 UTC  

would it be better to just use gmail's server?

2018-10-13 22:30:41 UTC  

it is better to use gmails, just make sure to go to your gmail account security settings and enable the "allow 3rd party apps" option

2018-10-13 22:30:59 UTC  

server.login("youremailusername", "password")

2018-10-13 22:31:09 UTC  

do I just put my email address and password here?

2018-10-13 22:31:20 UTC  

or is there some special server log in?

2018-10-13 22:31:39 UTC  
2018-10-13 22:32:23 UTC  

yep that's it. I forget if you put in email address or just username, try both

2018-10-13 22:37:25 UTC  

@Jacob I checked, username should be the full email-address, the port should be 25, the host is smtp.gmail.com

2018-10-13 22:38:08 UTC  

thanks

2018-10-13 22:38:37 UTC  

this example uses 587 as the port

2018-10-13 22:38:41 UTC  

maybe I'll try both

2018-10-13 22:43:16 UTC  

@ThisIsChris
```
smtplib.SMTPNotSupportedError: SMTP AUTH extension not supported by server.
```

2018-10-13 22:43:41 UTC  

I checked "allow less secure apps"

2018-10-13 22:52:55 UTC  

Thanks

2018-10-13 22:54:58 UTC  

okay I got the email server to send out emails

2018-10-13 22:55:11 UTC  

just test emails so far, but we're making progress

2018-10-13 22:55:25 UTC  

yeah sounds awesome!

2018-10-13 22:56:08 UTC  

my next step should be to figure out a way to accumulate a list of posts, and send out an email once it reaches a certain threshold

2018-10-13 22:56:16 UTC  

right now it just spams me every time it finds a comment lol

2018-10-13 23:01:16 UTC  

So, this is the idea I have so far:
> Automate the script to start up once a day
> Scan Reddit for pro-immigration comments until it reaches a certain threshold
> Send out an email with all the comments plus recommended counterarguments for me to copy paste
> Script automatically shuts down after sending out the email to be restarted the next day at a set time

2018-10-13 23:01:50 UTC  

Once this program is finished, it's going to be peak weaponized autism

2018-10-13 23:32:57 UTC  

that's great!

2018-10-14 00:07:04 UTC  

@ThisIsChris we have a weird problem

2018-10-14 00:07:11 UTC  

the emails don't send if they have a link in them

2018-10-14 00:07:54 UTC  

```
for comment in interesting_comments(request.json()):
if comment not in printed:
print('')
#on some computers printing \a is an escape
#sequence that produces a ding sound
print('\a\a\a', flush=True)
#for interesting comments found
#print out a link
#print out the subreddit it was found in
#print out what the comment says
message = comment['permalink'] \
+ '\n' \
+ '\n' \
+ comment['body']
server.sendmail("[email protected]", "email censored pls no dox", message)
server.sendmail("[email protected]", "email censored pls no dox", message)
printed.append(comment)
```

2018-10-14 00:08:04 UTC  

sends fine