Skip to content

Instantly share code, notes, and snippets.

/automation.txt Secret

Created November 8, 2017 23:48
Show Gist options
  • Save anonymous/ba7062d8fa669bae90b6d197860f2e7b to your computer and use it in GitHub Desktop.
Save anonymous/ba7062d8fa669bae90b6d197860f2e7b to your computer and use it in GitHub Desktop.
Modtalk Discord - Automation Channel
Feb 10 17 20:03:30 <thirdegree> that's a syntax error in python
Feb 10 17 20:03:33 <thirdegree> I think
Feb 10 17 20:03:46 <pHorniCaiTe> i don't think so
Feb 10 17 20:04:02 <thirdegree> https://cdn.discordapp.com/attachments/279692806442844161/279704050478612495/Screen_Shot_2017-02-10_at_1.03.50_PM.png
Feb 10 17 20:04:14 <pHorniCaiTe> weird
Feb 10 17 20:04:20 <pHorniCaiTe> but i mean more like
Feb 10 17 20:04:28 <pHorniCaiTe> a = 7
Feb 10 17 20:04:33 <pHorniCaiTe> if a: do thing
Feb 10 17 20:04:43 <thirdegree> ya that's true
Feb 10 17 20:04:46 <pHorniCaiTe> if a isn't defined, or if it's defined locally
Feb 10 17 20:04:50 <pHorniCaiTe> and you're in a global class
Feb 10 17 20:04:57 <pHorniCaiTe> then it will return false
Feb 10 17 20:05:00 <thirdegree> but
```
a = 0
if a: do thing
```
won't execute thing
Feb 10 17 20:05:07 <pHorniCaiTe> interesting
Feb 10 17 20:05:09 <thirdegree> because 0 is falsey
Feb 10 17 20:05:13 <pHorniCaiTe> makes sense
Feb 10 17 20:05:19 <thirdegree> same with `a=[]`
Feb 10 17 20:05:27 <thirdegree> because an empty list is falsey
Feb 10 17 20:05:56 <thirdegree> and `if a: do thing` without initilaizing is a runtime error
Feb 10 17 20:06:10 <pHorniCaiTe> 😦
Feb 10 17 20:06:13 <pHorniCaiTe> making me look stupid
Feb 10 17 20:06:20 <pHorniCaiTe> i just write stupid scripts for fun
Feb 10 17 20:06:36 <thirdegree> same 😄
Feb 10 17 20:06:44 <thirdegree> I've just been doing it for like 6 years now
Feb 10 17 20:07:04 <pHorniCaiTe> same, but i kind of didn't do anything for a few years inbetween
Feb 10 17 20:07:24 <pHorniCaiTe> i wrote my first ever program like 11 years ago
Feb 10 17 20:07:44 <pHorniCaiTe> was super into python and working on making a 2d game with pygame until about 2011
Feb 10 17 20:07:56 <pHorniCaiTe> then one day i got bored and stopped updating gentoo
Feb 10 17 20:07:58 <thirdegree> I started programming 6 years ago
Feb 10 17 20:08:01 <thirdegree> when I was 16
Feb 10 17 20:08:01 <thirdegree> 😄
Feb 10 17 20:08:13 <pHorniCaiTe> ¯\_(ツ)_/¯
Feb 10 17 20:08:16 <thirdegree> 15*
Feb 10 17 20:08:30 <pHorniCaiTe> i started at about the same time
Feb 10 17 20:08:34 <pHorniCaiTe> i think i was 14
Feb 10 17 20:08:38 <pHorniCaiTe> i'm 25 now
Feb 10 17 20:09:29 <pHorniCaiTe> gentoo breaks in amazing ways
Feb 10 17 20:09:57 <pHorniCaiTe> if you don't update it for a few years, gcc won't compile things because of new features
Feb 10 17 20:10:05 <pHorniCaiTe> but you can't update gcc
Feb 10 17 20:10:13 <pHorniCaiTe> because you cant compile the dependencies
Feb 13 17 20:41:51 <creesch> This is the toolbox dev channel now, k?
Feb 13 17 20:42:33 <allthefoxes> you made this
Feb 13 17 20:42:35 <allthefoxes> i made this
Feb 13 17 20:43:50 <pHorniCaiTe> if this is the toolbox dev channel can i make a request for an easer egg once new modmail is done?
Feb 13 17 20:43:59 <pHorniCaiTe> replace the Moderator Mail string with Mannomail pls
Feb 13 17 20:44:11 <thirdegree> replace new mod mail with old mod mail
Feb 13 17 20:44:19 <pHorniCaiTe> that would be nice too
Feb 14 17 13:15:16 <D0cR3d> Noku you could always use threading and a queue on the local bots end then connect to Reddit using multiple reddit auth accounts to query the data. It's what thirdegree and I had to do with our sentinel bot to get around the rate limit
Feb 14 17 13:19:16 <Noku> Thanks, I'll keep that in mind. Bust isn't the rate limiting by IP? AFAIK, you can't get the user's modded subreddits through the API, so I have to directly retrieve the user page and xpath the subreddits myself.
Feb 14 17 13:20:29 <D0cR3d> No the Limit of the api is based on client ID
Feb 14 17 13:21:29 <D0cR3d> If you are scraping the page I don't think there is a posted limit as that's just an HTTP request mostly seen as a normal user visiting the site
Feb 14 17 13:22:07 <Noku> Nah there is some rate limiting, though I think I fixed it now by spoofing the useragent
Feb 14 17 13:22:51 <D0cR3d> Well generic user agents are globally limited
Feb 14 17 13:23:15 <D0cR3d> So definitely use a custom descriptive one
Feb 14 17 13:23:32 <Noku> the custom one is the one that's being limited.
Feb 14 17 13:23:44 <Noku> I don't think pythons request library even attaches a useragent on the default header
Feb 14 17 13:30:00 <D0cR3d> What about using the API to pull the mod lists of each sub, store the mods in a table, then when checking verification you query your local DB. Refresh that mod list once a day. The authed API is 600 requests in 10 min and you can pull 100 mods per request, per authed API client ID. Should be very quick
Feb 14 17 13:35:38 <Noku> hmm that could work. We'll see then, since I think I mitigated the earlier issues anyways.
Feb 14 17 13:41:25 <Aurimus_> !help
Feb 14 17 13:41:25 <Popular Bot> Bot Help
```server botnick help serverstats joinleave reload empty ping eventhandlerexamples testingcommands ```
`!help [help_topic]` to evoke a help topic.
`!help all` for all commands.
Feb 14 17 14:00:49 <allthefoxes> Noku Not sure If I'm being helpful, but never include "bot" in a reddit User Agent
Feb 14 17 14:00:54 <allthefoxes> instantly blows
Feb 14 17 14:01:57 <Noku> I'm using chrome's useragent atm
Feb 14 17 14:19:32 <creesch> Noku wouldn't do that, that can get your bot banned.
Feb 14 17 14:19:48 <creesch> I am fairly sure the api agreement somewhere says you are not allowed to play for a browser
Feb 14 17 14:21:32 <creesch> Unless you are of course using the api through the browser
Feb 14 17 14:22:28 <PCJonathan> Yeah, they've said many times they hate that sort of thing. Might as well just do what they're asking and use a proper custom agent.
Feb 14 17 14:22:35 <creesch> pHorniCaiTe we already have a manomail achievement
Feb 14 17 14:27:21 <D0cR3d> Noku you can set user agent via requests headers
Feb 14 17 14:27:44 <Noku> I did
Feb 14 17 14:27:45 <Noku> Also it's cool.
Feb 14 17 14:27:57 <Noku> I had it figured it out.
Feb 14 17 23:32:02 <PraiseBeToScience> Noku are you talking about urllib or requests? I know requests default useragent has "requests" in the header
Feb 14 17 23:32:35 <PraiseBeToScience> I'm not sure what urllib does though. I try not to use that if I can avoid it
Feb 19 17 13:10:47 <creesch> https://www.reddit.com/r/toolbox/comments/5uxw8d/release_toolbox_36_communicating_cat/
Feb 21 17 15:10:13 <HaydenSD> D0cR3d is there any way that I could see the source code for the popular bot?
Feb 21 17 15:11:13 <D0cR3d> Ask Noku as he made it HaydenSD
Feb 21 17 15:11:28 <HaydenSD> Cool, ty!
Feb 21 17 15:13:34 <HaydenSD> Noku I'm looking for a bot for another discord.
Feb 21 17 15:15:49 <Noku> HaydenSD Hmm? What do you need?
Feb 21 17 15:16:29 <HaydenSD> Noku so it needs to have users connect their account, then check if their account is older then one month, then assign them a role.
Feb 21 17 15:24:38 <Noku> That seems straight forward enough.
Feb 21 17 15:27:14 <HaydenSD> Yeah, it's not a very hard request 😄
Feb 21 17 15:50:15 <Noku> Just shoot me a PM if you need more details.
Feb 25 17 21:06:53 <Chiyo> quick question, with automoderator, what is the difference between `url` and `domain`
Feb 25 17 21:07:29 <D0cR3d> `url` is 'https://reddit.com/r/subreddit/blah'
Feb 25 17 21:07:42 <D0cR3d> `domain` would be 'reddit.com'
Feb 25 17 21:08:49 <Chiyo> what would be the one to detect where a post is linked to?
Feb 25 17 21:09:12 <Chiyo> as `url` is what got it to detect but i thought it was `domain`
Feb 25 17 21:10:16 <D0cR3d> take this for instance: https://www.reddit.com/r/news/comments/5w4ga4/federal_appeals_court_rules_21_you_have_the_right/.json
Feb 25 17 21:10:35 <D0cR3d> https://i.imgur.com/nPhteJg.png
Feb 25 17 21:10:51 <D0cR3d> domain highlighted at the top is the very shortest way to get to the site being linked
Feb 25 17 21:10:59 <D0cR3d> url is the full place the link is going to
Feb 25 17 21:11:37 <Chiyo> ah i see
Feb 25 17 21:13:07 <Chiyo> thanks :)
Mar 14 17 09:00:51 <mbetts> talking of automation, is the Rasputin bot open source?
Mar 14 17 09:11:03 <AnaMel> http://i.imgur.com/jeMRyJo.png
Mar 14 17 09:40:28 <mbetts> Oh cool
Mar 14 17 14:23:52 <GodRaine> Neat, an automation channel.
Mar 14 17 14:23:57 <GodRaine> Will probably be spending a lot of time in here 😃
Mar 14 17 14:34:52 <Shane> you have automatically been banned
Mar 14 17 14:38:44 <GodRaine> Aw.
Mar 14 17 14:38:46 <GodRaine> Haha
Mar 14 17 14:38:56 <GodRaine> I've been working to automate the ever living hell out of /r/findareddit
Mar 14 17 14:39:23 <GodRaine> I currently have four python bots running, in addition to automoderator, and today I'm working on customizing DeltaBot (from CMV) to replace /u/PlusBot
Mar 14 17 14:39:30 <GodRaine> https://www.reddit.com/r/findareddit/wiki/bots
Mar 14 17 14:39:40 <GodRaine> That's a wiki page of all the bots running on the subreddit and what they do 😃
Mar 14 17 15:26:24 <D0cR3d> Got a fair amount there. At r/DTG thirdegree and I have lost track at how many bots we use
Mar 14 17 16:37:15 <GodRaine> D0cR3d nice. Do you have a list of them?
Mar 14 17 16:38:46 <GodRaine> My subreddit is 19% the size of yours, so I imagine you'd need quite a lot of automation!
Mar 14 17 16:41:26 <creesch> Why do you have reportbot when automod can do that as well?
Mar 14 17 18:15:49 <Alipoodle> *Did a quick search using the Discord feature, and didn't find anything on this.... so i'll post it.*
This reddit post will help you set up a place where a Web Hook can automatically post new posts from a Subreddit into a room. There's a little bit of customisations you can do although you will need to know how Discord's Webhook API + knowledge of JSON.
Post: https://www.reddit.com/r/discordapp/comments/5lvtp3/on_popular_requestrelay_new_posts_of_a_subreddit/
Proof (/r/Area11Band): https://puu.sh/uIKz6/468df85d7d.png
Mar 14 17 18:18:17 <beelzeybob> Unfortunately, the IFFFT method isn't ideal, in my option
Mar 14 17 18:18:39 <beelzeybob> I've tried it in my server, and my caveat with it, is that it saves 5-15 posts at a time
Mar 14 17 18:18:45 <beelzeybob> and dumps them once every hour
Mar 14 17 18:20:40 <Alipoodle> It will check within the hour. So yes it's not perfect... but might be better for some smaller subs where you might get a post an hour.
Mar 14 17 18:21:24 <creesch> Webhooks are fairly simple, you can script something like that with relative ease
Mar 14 17 18:21:44 <creesch> So any subs that already has a bot of some kind can probably add this without much trouble.
Mar 14 17 18:22:23 <creesch> Which I am saying because I really don't like ifttt
Mar 14 17 18:24:28 <creesch> In fact, people made it increadibly easy when for example using nodejs
Mar 14 17 18:24:31 <creesch> https://www.npmjs.com/package/discord-webhooks
Mar 14 17 18:25:15 <creesch> Having said that, I guess I need to update lemming (the /r/history irc bot) to do this in our discord server 😛
Mar 14 17 18:26:08 <creesch> Also you don't really need a library/module for it as webhooks are afaik just post requests
Mar 14 17 18:27:49 <creesch> Which makes them fun to play around with as you can just test them with something like postman
Mar 14 17 18:28:10 <creesch> https://www.getpostman.com/
Mar 14 17 18:43:12 <D0cR3d> GodRaine r/destinythegame/wiki/bots
Mar 14 17 18:44:41 <GodRaine> D0cR3d I'm interested in the Welcomer bot ... does it detect and avoid sending messages to users that have previous posts in the subreddit?
Mar 14 17 18:50:34 <creesch> ```Json
{
"embeds":[
{
"title":"Wilt Chamberlain demonstrates his reach to Muhammad Ali - New York, NY - March 10, 1967. [X-post:/r/OldSchoolCelebs/][1200 X 1162]",
"url":"https://www.reddit.com/r/HistoryPorn/comments/5zbz3l/wilt_chamberlain_demonstrates_his_reach_to/",
"image": {
"url": "https://b.thumbs.redditmedia.com/Me8BN1m8oIDhGgoUXxT0vk_wH1tY6G4vKSXMEuIYeEA.jpg",
"width": 70,
"height": 70
},
"author":{
"name":"New post from /u/poonamk",
"url":"https://reddit.com/user/poonamk"
},
"description":"In /r/historyporn"
}
]
}
```
Mar 14 17 18:51:30 <creesch> For those interested in how to do a webhook, basically all you have to do is send it through post with a "application/json" as "Content-Type" in the header.
Mar 14 17 18:52:15 <creesch> This specific example will then look like this https://cdn.discordapp.com/attachments/279692806442844161/291282400225525760/unknown.png
Mar 14 17 18:55:40 <D0cR3d> GodRaine it's brand new (less than 72 hour old ) Reddit accounts. Not just new visitors to the sub
Mar 14 17 19:40:15 <creesch> Alipoodle https://gist.github.com/creesch/8cf69cee29a516770ac97d9a5f69e6f3
Mar 14 17 19:43:38 <creesch> A bit too simple when you want to use it in multiple channels and with multiple subs. But shows that it is relatively easy to do that sort of stuff yourself and get announcements within a minute
Mar 14 17 19:43:58 <creesch> Hell, give it a dedicated account and you can have per second updates on your subreddit.
Mar 14 17 19:44:29 <creesch> And I guess that if you wanted to use this without adjustment you could do multiple subs with the old style multireddits
Mar 14 17 19:46:24 <creesch> allthefoxes Oh, if you get me a webhook url for a the announcement channel (or a dedicated sub announce channel) I wouldn't mind setting it up so it announces all the different mod related subs.
Mar 14 17 19:50:34 <tiz> creesch if I'm not mistaking, I think D0cR3d set up something already. Read his most recent <#279701101152960512> post.
Mar 14 17 19:52:09 <creesch> tiz I see a whole lot about promoting this discord but not much else regarding submissions on mod subs being announced
Mar 14 17 19:52:26 <D0cR3d> Correct but I think creesch is giving info for others to do something similar
Mar 14 17 19:53:09 <creesch> Also offering to set it up here from my vps since it is fairly easy and didn't see it in use here yet.
Mar 14 17 19:53:20 <creesch> So if you already have something in the works that is also good
Mar 14 17 19:53:49 <creesch> oh nbm
Mar 14 17 19:53:51 <creesch> nvm
Mar 14 17 19:53:55 <creesch> I am blind
Mar 14 17 19:54:13 <creesch> Can I suggest seperating those out from #annoucements?
Mar 14 17 19:55:05 <creesch> Because it is fairly easy to overlook what is just subreddit "rss" so to speak and what are announcements from you guys
Mar 14 17 19:56:40 <tiz> We probably won't be making many announcements tbh.
Mar 14 17 19:56:50 <D0cR3d> Well it's using the same mod list as the admin post alerter from DM slack which I run
Mar 14 17 19:57:24 <creesch> tiz exactly why you want to split them out.
Mar 14 17 19:57:37 <creesch> Because when you do you want people to notice them
Mar 14 17 19:57:41 <D0cR3d> So it's not a high frequency of posts to clog it up and only pinging the @ ping group to avoid notification spam
Mar 14 17 19:58:26 <creesch> D0cR3d are we talking about the same thing? I am not sure what you mean by mod list
Mar 14 17 19:58:53 <creesch> I am talking about a post announcer for subreddits, so posts from /r/changelog, /r/modnews, /r/blog, etc
Mar 14 17 19:59:22 <D0cR3d> https://cdn.discordapp.com/attachments/279692806442844161/291299290448527360/Screenshot_20170314-145916.png
Mar 14 17 19:59:37 <D0cR3d> That bot. I run that. It pulls from a set admin sub list
Mar 14 17 19:59:58 <creesch> Right, you said modlist before
Mar 14 17 20:00:01 <creesch> that confused me
Mar 14 17 20:00:06 <allthefoxes> creesch I think we have functionality for that already, yeah
Mar 14 17 20:00:12 <D0cR3d> Mis type on mobile
Mar 14 17 20:00:12 <allthefoxes> If I understand properly
Mar 14 17 20:00:44 <creesch> Also, yours doesn't seem to be using webhooks and is rather text heavy.
Mar 14 17 20:01:08 <creesch> But that is more feedback than anything else
Mar 14 17 20:01:10 <D0cR3d> Mine uses web hooks for slack and discord.
Mar 14 17 20:01:25 <MajorParadox> What if you had different ping groups? So like if you care about pings from certain subs you can subscribe to them? Then if our sub wanted to announce a contest or something we can post it there for anyone that cares?
Mar 14 17 20:01:31 <D0cR3d> I picked a format I liked and no one has offered any suggestion how to adjust it
Mar 14 17 20:01:53 <creesch> Personally I would use way less fluff text around it.
Mar 14 17 20:02:13 <creesch> Basically something like in the json I posted above.
Mar 14 17 20:02:20 <creesch> Probably even without the thumbnail
Mar 14 17 20:02:45 <creesch> Leave out the "new admin post" since that should be clear from the subreddit itself.
Mar 14 17 20:03:04 <creesch> Also leave out the admin name possibly, though that is isn't really needed.
Mar 14 17 20:05:00 <D0cR3d> I'll see what i can do this weekend
Mar 14 17 20:09:37 <creesch> ```Json
{
"embeds":[
{
"title":"Updating you on modtools and Community Dialogue",
"url":"https://www.reddit.com/r/modnews/comments/5y33op/updating_you_on_modtools_and_community_dialogue/",
"author":{
"name":"New post in /r/modnews",
"url":"https://reddit.com/r/modnews"
},
"description":"From /u/AchievementUnlockd"
}
]
}
```
Mar 14 17 20:09:46 <creesch> Like that
Mar 14 17 20:10:04 <creesch> https://cdn.discordapp.com/attachments/279692806442844161/291301982008901634/unknown.png
Mar 14 17 20:10:08 <creesch> Looks like that
Mar 14 17 20:11:17 <D0cR3d> Basically what I have just taking advantage of clickable links, something I don't due on slack and haven't adjusted fully here yet.
Mar 14 17 20:11:29 <D0cR3d> I'll play with that and see how it works
Mar 14 17 20:11:35 <D0cR3d> Thanks
Mar 14 17 20:11:48 <AnaMel> How do you actually use webhook on here? 🤔
Mar 14 17 20:12:05 <creesch> AnaMel increadibly simple actually
Mar 14 17 20:12:18 <creesch> On a server where you have the proper roles, click on the channel settings
Mar 14 17 20:12:28 <creesch> Then you can make a webhook or use one already there.
Mar 14 17 20:13:11 <creesch> Apparently they also have slack and git compatible webhooks so you can hook those right in discord as well.
Mar 14 17 20:13:18 <AnaMel> That thing?
Mar 14 17 20:13:21 <creesch> Now if only reddit would natively provide webhooks
Mar 14 17 20:13:29 <creesch> that thing yeah
Mar 14 17 20:13:39 <creesch> You can do a post request to that url
Mar 14 17 20:14:09 <creesch> Also you might not want to show that, it is obscured a bit but the hash in there is the security basically...
Mar 14 17 20:14:31 <AnaMel> Temporarily
Mar 14 17 20:17:22 <AnaMel> It sounds simple 🤔
Mar 14 17 20:17:42 <creesch> it really is, see that json bit I posted up there?
Mar 14 17 20:18:25 <creesch> You can grab that literally, put it in a the body of a post request to that webhook and it will show up in the channel.
Mar 14 17 20:18:37 <creesch> given that you have set the right content-type in the header
Mar 14 17 20:19:15 <creesch> AnaMel https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop
Mar 14 17 20:19:40 <creesch> If you want to play around with it, makes it really easy to do requests to stuff without needing to script around it.
Mar 14 17 20:20:28 <creesch> https://cdn.discordapp.com/attachments/279692806442844161/291304595819593729/unknown.png
Mar 14 17 20:20:57 <creesch> https://cdn.discordapp.com/attachments/279692806442844161/291304720386228226/unknown.png
Mar 14 17 20:22:58 <Jernik> postman is great
Mar 14 17 20:41:40 <AnaMel> I'll play around with this tomorrow I guess
Mar 14 17 22:11:07 <D0cR3d> take it to <#280814354910281728> or <#278566343836565505> please.
Mar 14 17 22:17:19 <creesch> D0cR3d who are you responding to?
Mar 14 17 22:17:29 <creesch> Or did you just delete something?
Mar 14 17 22:17:38 <D0cR3d> I deleted something
Mar 14 17 22:17:50 <creesch> Ah
Mar 15 17 21:37:49 <Shane> is there a way to have automod filter out comments by usernames with "001" at the end?
Mar 15 17 21:41:29 <isentrope> idk about at the end
Mar 15 17 21:42:43 <Baldemoto> I'm in a bit of a pickle in one of the subs I mod.
Mar 15 17 21:44:18 <Deimos> Shane something like ```
author:
name (ends-with): 001
action: filter
```
Mar 15 17 21:44:51 <qwazwsx> Why would you want to filter that?
Mar 15 17 21:44:59 <Shane> spam accounts
Mar 15 17 21:45:07 <Baldemoto> So, Tiny Trump is pretty divisive in and of itself. If displays a Tiny Trump, which people sometimes find offensive. We wanted to bring everyone in, so we made stricter rules to make it more fun for everyone. However, it met with some backlash, with some people saying that it's dumb that we did it because "It's with a political figure". After consideration, we decided to back down and simply quietly change the rules and only take down ad hominem comments. Is there any way we could improve out situation?
Mar 15 17 21:45:52 <Baldemoto> Here's the full comments of our actions:
Mar 15 17 21:45:53 <Baldemoto> https://www.reddit.com/r/TinyTrumps/comments/5zfukl/we_are_not_a_politically_affiliated_subreddit/?utm_content=full_comments&utm_medium=message&utm_source=reddit&utm_name=frontpage
Mar 15 17 21:46:21 <Baldemoto> We did make a strawpoll with 600 votes, and the community was sharply divided.
Mar 15 17 21:46:45 <Baldemoto> A bit more than half were very happy about our descision
Mar 15 17 21:46:53 <Baldemoto> And a bit less than half were disgusted by it
Mar 15 17 21:46:56 <Tealeaf> he will not divide us
Mar 15 17 21:47:07 <qwazwsx> What was your decision?
Mar 15 17 21:47:40 <Baldemoto> We decided to quietly remove those rules and simply take down comments that had ad-hominem attacks or seemed to be solely made to incite political discussion.
Mar 15 17 21:47:58 <Baldemoto> We decided not to make an announcement, because it would seem like we do not have control of our subreddit.
Mar 15 17 21:48:22 <Tealeaf> hand out bans like candy to assert dominance
Mar 15 17 21:48:30 <Baldemoto> Oh shit
Mar 15 17 21:48:35 <Baldemoto> I'm in the wrong channel
Mar 15 17 21:48:47 <Baldemoto> Welp, can we stay here?
Mar 15 17 21:49:19 <Baldemoto> Tealeaf That's what T_D does, and we do not want to seem like the leftist T_D
Mar 15 17 21:49:34 <Baldemoto> As if /r/enoughtrumpspam wasn't bad enough with the bans.
Mar 15 17 21:49:43 <Baldemoto> We would ban half of the subscribers.
Mar 15 17 21:50:13 <Baldemoto> Is there anything we can do to make this situation better?
Mar 15 17 21:50:17 <qwazwsx> Just say "we aren't here for political discussion, this sub isn't leaning one way or another. We are just here to have fun and make jokes"
Mar 15 17 21:50:29 <qwazwsx> Remove political comments
Mar 15 17 21:50:34 <Baldemoto> We did.
Mar 15 17 21:50:39 <Baldemoto> That's kind of what we declared.
Mar 15 17 21:50:42 <qwazwsx> But comment under them
Mar 15 17 21:50:44 <Tealeaf> well, if you have a partisan subscriber base you're going to have a bad time anyway
Mar 15 17 21:50:46 <Baldemoto> Here, let me copypaste what we said.
Mar 15 17 21:51:07 <qwazwsx> With a statement saying that it wasn't removed because of left or right
Mar 15 17 21:51:12 <qwazwsx> Just because politics
Mar 15 17 21:51:15 <Tealeaf> but anyway, if you want your policy rulings stick you gotta hand out at least short bans to accompany post removals
Mar 15 17 21:51:19 <Baldemoto> I need to make a post saying we are not politically affiliated. This is going a bit too far.
This is my draft:
Please understand this. Both liberals and conservatives need to understand this. We do not affiliate with any political stance, whether you are a Social Justice Warrior, or in the KKK. We do not affiliate with ANY political stance.
We are going to have to start cracking down on comments and posts that are more opinion-based. Things such as
Spicer always looks like he's lying and hoping no one notices.
Typical of Spicer to ignore the reality around him.
These will be removed. They give too much of a political opinion.
Comments that are for fun, though, such as
The mom needs to be Bannon.
I really cracked up when Kellyanne came screeching around the corner! Fabulous!
Love this sub! Makes me like trump even more
These can stay. They are simply for fun.
We are not trying to drive a political cause away. We are trying to give a laugh to everyone. Whether you are coming from /r/The_Donald or /r/ImpeachTrump we are trying to make everyone laugh, regardless of your political stance.
Mar 15 17 21:51:21 <qwazwsx> Then remind them to report politocs
Mar 15 17 21:51:33 <Baldemoto> That's what we typed up.
Mar 15 17 21:51:39 <Baldemoto> We did.
Mar 15 17 21:51:43 <Baldemoto> We said both sides are not OK
Mar 15 17 21:51:49 <Tealeaf> becuase if you just remove posts, it's silent by default and people will keep doing it
Mar 15 17 21:52:18 <Baldemoto> That is driving our subscribers away, though.
Mar 15 17 21:52:24 <Baldemoto> Yesterday we made it #3 /r/all
Mar 15 17 21:52:36 <Baldemoto> And we would usually get around 600-800 subscribers
Mar 15 17 21:52:44 <Baldemoto> But the net subscribers we got there were
Mar 15 17 21:52:47 <Baldemoto> let me check
Mar 15 17 21:53:10 <Baldemoto> 209
Mar 15 17 21:53:35 <Baldemoto> Funnily enough we got 509 today for no apparent reason. Maybe because they simply unsubscribed to make us do something.
Mar 15 17 21:53:49 <Baldemoto> 212,000 pageviews and 209 subscribers.
Mar 15 17 21:54:06 <Baldemoto> That does not seem right.
Mar 15 17 21:58:08 <Shane> how many page views do you normally get?
Mar 15 17 21:58:25 <Baldemoto> Let's see....
Mar 15 17 21:58:28 <Baldemoto> On a normal day
Mar 15 17 21:58:31 <Baldemoto> With no front page posts
Mar 15 17 21:58:43 <Baldemoto> 6,000 - 24,000
Mar 15 17 21:58:59 <Baldemoto> About 200 subscriptions
Mar 15 17 21:59:07 <Baldemoto> Some odd days we get 50-100
Mar 15 17 22:00:53 <Shane> maybe the people that saw it were already subscribed?
Mar 15 17 22:01:12 <Baldemoto> #3 /r/all?
Mar 15 17 22:01:16 <Baldemoto> That seems a bit unlikely..
Mar 15 17 22:01:27 <Shane> indeed
Mar 15 17 22:01:34 <Shane> but it is a political sub
Mar 15 17 22:01:35 <Baldemoto> We've only gotten 6 posts to top 6 /r/all
Mar 15 17 22:01:59 <Shane> you probably get more people filtering you honestly
Mar 15 17 22:02:02 <Baldemoto> That's what we're trying to steer away from
Mar 15 17 22:02:12 <Baldemoto> I personally went to T_D and apologized
Mar 15 17 22:02:16 <Baldemoto> Said I wanted it to be neutral
Mar 15 17 22:02:21 <Baldemoto> People practically praised me.
Mar 15 17 22:02:33 <Baldemoto> I even made some small chat with them.
Mar 15 17 22:02:38 <Baldemoto> They like them.
Mar 15 17 22:02:44 <Baldemoto> Wait
Mar 15 17 22:02:49 <Baldemoto> Let me show you something
Mar 15 17 22:03:15 <Baldemoto> I compiled the comments left in T_D thread:
Mar 15 17 22:03:16 <Baldemoto> https://www.reddit.com/r/TinyTrumps/comments/5zfukl/we_are_not_a_politically_affiliated_subreddit/dexs26d/?utm_content=permalink&utm_medium=front&utm_source=reddit&utm_name=TinyTrumps
Mar 15 17 22:04:06 <Shane> The problem is, the shit that T_D causes trickles down to any sub afiliated. even if you say you're not... its in the name
Mar 15 17 22:04:25 <Baldemoto> They seem to love it though
Mar 15 17 22:04:41 <Baldemoto> About 5-10% of all comments are "I love Trump, but I love this as well!"
Mar 15 17 22:04:51 <Baldemoto> Those things get way to many downvotes
Mar 15 17 22:05:08 <Baldemoto> I have to say shit like "Glad you enjoyed it!" so they don't get downvoted to hell.
Mar 15 17 22:07:27 <Baldemoto> It honestly pisses me off how partisan they get.
Mar 15 17 22:07:39 <Baldemoto> Like, I'm friends with plenty of Trump supporters
Mar 15 17 22:07:49 <Baldemoto> And we often have friendly, informal discussions about it.
Mar 15 17 22:07:55 <Baldemoto> But when you get to the internet....
Mar 15 17 22:08:03 <Baldemoto> OOoooooh, here comes the fucking shitshow.
Mar 15 17 22:09:32 <rev> it's a tough nut to crack, unfortunately
Mar 15 17 22:14:13 <Baldemoto> I need to eat.
Mar 15 17 22:18:17 <Shane> It's T_Ds fault. If they got together and sorted there shit out. You'd probably be better off
Mar 16 17 07:58:52 <Shane> Is there a not that notifies you of cross posts?
Mar 16 17 07:58:55 <Shane> https://www.reddit.com/r/funny/comments/5zjf7a/surprise_mothafuka/
Mar 16 17 07:59:03 <Shane> This guy pisses me off
Mar 16 17 09:41:06 <creesch> How is that related to automation though?
Mar 16 17 09:41:33 <creesch> Right, entire scrollback is offtopic
Mar 16 17 12:00:01 <creesch> So I guess it technically belongs here. I am currently working on something that will allow me to connect to discord with an irc client.
Mar 16 17 12:01:00 <creesch> In short, on the irc side it is pretending to be an irc server but any message send will be relayed through the discord api to the discord channel.
Mar 16 17 12:01:13 <creesch> Anything from discord will be translated to irc stuff.
Mar 16 17 12:01:58 <creesch> Anyway, for people that are wondering why (Which is a very valid question). I simply dislike having different clients for different platforms.
Mar 16 17 12:02:32 <creesch> slack already has a irc connection option so when I am done with the one for discord I can go back to using irccloud.
Mar 16 17 12:05:37 <Gumdrops> Not sure how relevant it is but I saw someone mention this recently https://github.com/sm00th/bitlbee-discord/
Mar 16 17 12:07:08 <creesch> Hrm, that might already do what I want.
Mar 16 17 12:07:12 <SpyTec> So you're not creating just an IRC-Discord bridge?
Mar 16 17 12:07:13 <creesch> I'll have to check that out
Mar 16 17 12:07:25 <creesch> SpyTec no it will not be a bit sitting in both channels.
Mar 16 17 12:07:53 <Gumdrops> That can be done with this https://github.com/reactiflux/discord-irc
Mar 16 17 12:08:09 <SpyTec> Alright
Mar 16 17 12:08:16 <SpyTec> Interesting 😛
Mar 16 17 12:08:20 <creesch> I will be able to actually connect to it with my ircclient and everything like channels and users will be populated from discord.
Mar 16 17 12:08:21 <Phallindrome> creesch, you're that guy xkcd was talking about
Mar 16 17 12:08:30 <creesch> Yes p'much
Mar 16 17 12:08:41 <creesch> Though I don't care for irc that much.
Mar 16 17 12:08:49 <creesch> Just don't care for having multiple clients open.
Mar 16 17 12:09:43 <creesch> And honestly, irccloud in many ways is a much more enjoyable client than discord.
Mar 16 17 12:09:51 <creesch> tab complete for instance actually works 😛
Mar 16 17 12:10:07 <Phallindrome> oh, I agree
Mar 16 17 12:10:18 <Phallindrome> if i could, I'd be that guy too
Mar 16 17 12:10:21 <Phallindrome> I miss IRC
Mar 16 17 12:10:41 <Gumdrops> I had issues with tab complete, until I noticed that typing @ will list users by recent activity without starting to type anything. If you start typing it just lists users alphabetically
Mar 16 17 12:10:57 <creesch> When it is finished and I am confident enough I didn't make spaghetti code I'll release it.
Mar 16 17 12:11:22 <SpyTec> I'd love to see it working
Mar 16 17 12:11:22 <creesch> Gumdrops the thing is that it often tab completes to someone else
Mar 16 17 12:11:34 <creesch> Also I don't want to select from a list.
Mar 16 17 12:11:37 <Gumdrops> Yeah it happens a lot
Mar 16 17 12:11:39 <Shane> I was ment to write 'bot' not 'not'
Mar 16 17 12:11:41 <creesch> Muscle memory
Mar 16 17 12:13:05 <creesch> Anyway, I'll post updates in here. Turns out the irc protocol is really simple to work with.
Mar 16 17 12:13:29 <creesch> Well simple if you don't want it to do have all the features.
Mar 16 17 12:13:52 <creesch> Connecting and joining a channel is relatively straightforward, managed to make a fake server with fake people in a channel earlier.
Mar 16 17 12:14:32 <creesch> The discord api unfortunately isn't that simple to work with. Not that it is difficult, it is just that all information is all over the place.
Mar 16 17 12:15:30 <creesch> Also interesting that in the api servers are actually called "guilds"
Mar 16 17 12:16:37 <D0cR3d> Interesting project you have there creesch . I look forward to the updates.
Mar 16 17 12:19:26 <SpyTec> Working with Discord API is a nightmare
Mar 16 17 12:19:55 <SpyTec> Be prepared for sudden API changes, or that you get tonnes of DCs 😛
Mar 16 17 12:23:03 <D0cR3d> I just wish slack had a simplified interface like irccloud. I hate switching teams just to check another channel for one second.
Mar 16 17 12:41:17 <creesch> That, personally I also dislike a lot of the font stuff they did and the amount of interface clutter.
Mar 16 17 12:42:03 <creesch> For me personally I have found that fast moving chat is easiest to follow with a monospace font for some weird reason.
Mar 16 17 12:42:57 <creesch> Which is also why my discord now looks like this. https://cdn.discordapp.com/attachments/279692806442844161/291914236592914433/unknown.png
Mar 16 17 12:44:18 <SpyTec> BetterDiscord? <:betterDiscord:231126376160296960>
Mar 16 17 12:49:34 <Bazinga!> <:downvote:291347916512165891>
Mar 16 17 12:59:22 <creesch> SpyTec no
Mar 16 17 12:59:29 <creesch> Just discord in a browser
Mar 16 17 12:59:36 <creesch> With a userstyle applied.
Mar 16 17 13:00:55 <creesch> https://userstyles.org/styles/139624/discord-monospace
Mar 16 17 13:01:06 <creesch> Oh and a userscript that colors the nicknames.
Mar 16 17 13:01:30 <creesch> Because whoever at discord thought it was a good idea to give everyone colored names based on roles should be fired.
Mar 16 17 13:09:05 <SpyTec> Nice. The coloured names is handy if you run the cozy style. As you can recognize mods, admins etc. easier. Equivalent to IRCs &, @ symbols next to their names 😛
Mar 16 17 13:09:58 <SpyTec> Do you use the web UI?
Mar 16 17 13:13:18 <creesch> I also have the @, etc disabled in irc.
Mar 16 17 13:13:25 <creesch> I usually just check the userlist.
Mar 16 17 13:13:42 <creesch> But a symbol or unique color before the username would have been better than the entirename
Mar 16 17 13:14:25 <creesch> And yeah I use the webUI, though you can also use userstyles in the discordapp as it is not much more than a wrapper around the website.
Mar 16 17 14:15:14 <creesch> Right... I forgot how incredibly annoying it is to get a simple listing of people in channel for discord.
Mar 16 17 14:23:23 <MuffinMedic> creesch Is there any way to use this monospace scrpt in the Discord app or only the web version? I would love monospacing in-app.
Mar 16 17 14:24:03 <creesch> You can with betterdiscord, but that was compromised a while ago so I don't use it anymore.
Mar 16 17 14:24:17 <creesch> I just made a shortcut to discord in chrome and set it so it opens in an app window.
Mar 16 17 14:24:55 <tiz> *it wasnt better discord that was compromised, just a plug in that you could use with it
Mar 16 17 14:25:59 <SpyTec> Yep. Was not BetterDiscord itself. Just a plugin that sent your key to someone's server
Mar 16 17 14:44:46 <creesch> True, but at the point that became clear I already moved to this solution 😛
Mar 16 17 14:45:15 <creesch> Besides the discord app is an electron wrapper which means you are effectively running a new chrome instance just to have a chat client open.
Mar 16 17 14:46:33 <tiz> lame
Mar 16 17 15:36:41 <creesch> Success! (sort of)
Mar 16 17 16:20:28 <creesch> If I didn't fuck up this should also be visible in irc
Mar 16 17 16:20:58 <SpyTec> Everything works on the first try
Mar 16 17 16:21:14 <creesch> Oh this isn't my first try :p
Mar 16 17 16:21:53 <creesch> Right... Every line is showing up four times now
Mar 16 17 16:23:04 <SpyTec> So it's 4 times as efficient
Mar 16 17 16:23:31 <creesch> Totally
Mar 16 17 16:23:39 <creesch> Also minimal as hell
Mar 16 17 16:23:48 <creesch> No nicknames :D
Mar 16 17 16:35:57 <Deimos> creesch the CTO of discord (who was the first dev) had a previous project named "guildwork" that was kind of a social network for MMORPG guilds, I wouldn't be surprised if the base discord code came from there
Mar 16 17 16:39:52 <creesch> Ah, could be. Could also be that they first called servers "guilds" but decided to rename them.
Mar 16 17 16:40:51 <SpyTec> Wasn't it called servers pre 0.9 but guilds after 1.0
Mar 16 17 16:40:55 <SpyTec> ¯\_(ツ)_/¯
Mar 16 17 16:41:11 <creesch> Either way the way it all works is rather complex. Though I am not sure if that is because of the discord api or the libraries available.
Mar 16 17 16:41:31 <creesch> I am thinking both.
Mar 16 17 16:41:37 <SpyTec> Well it's both
Mar 16 17 16:42:01 <creesch> Everything is objects of objects nested in other objects.
Mar 16 17 16:42:04 <SpyTec> My gf is dev for one of the bigger management bots, Botwinder
Mar 16 17 16:42:06 <SpyTec> 😄
Mar 16 17 16:43:04 <Deimos> library might just be converting nested JSON directly into nested objects
Mar 16 17 16:43:22 <creesch> Eh it is more than that
Mar 16 17 16:43:25 <creesch> Sec
Mar 16 17 16:43:59 <SpyTec> The C# libs are terrible. The new one, csharpplus, looks promising though but it's still a bit early in development. One of the python libs also waste a lot of performance. And funnily enough if you complain to the devs or support that their servers are iccky due to 8000 dcs in a day, they'll tell you it's the bot (even though different libraries have the same issue)
Mar 16 17 16:44:35 <creesch> https://discord.js.org/#/docs/main/stable/general/welcome
Mar 16 17 16:47:12 <creesch> I guess it is discord btw, it is just highly confusing that identical object can be found in multiple places
Mar 16 17 16:48:11 <creesch> But sometimes with slight variations
Mar 16 17 16:48:50 <creesch> I dunno, I might be missing some api development trend. New modmail json is also too complex for what it does.
Mar 16 17 16:49:05 <creesch> I prefer a structure like the old reddit api json
Mar 16 17 16:49:18 <Deimos> I think it's mostly nosql-related
Mar 16 17 16:49:32 <Deimos> people don't think about schema, they just jam whatever data they want in whenever they need it
Mar 16 17 16:49:38 <Deimos> so you end up with a bunch of minor variations
Mar 16 17 16:49:59 <creesch> Right, the "we don't need a DBA!" idiocy
Mar 16 17 16:50:08 <SpyTec> 😄
Mar 16 17 16:50:34 <SpyTec> They do run nosql though, <https://blog.discordapp.com/how-discord-stores-billions-of-messages-7fa6ec7ee4c7#.mcns4c3z3>
Mar 16 17 16:50:44 <Deimos> yeah, mongodb and then cassandra, both nosql
Mar 16 17 16:51:39 <creesch> I am a test analyst for a living, teams that don't have a storage expert on board often end up with performance issues or enormously weird bugs that are impossible to track down.
Mar 16 17 16:52:14 <creesch> " Arguably, one of the best databases for iterating quickly is MongoDB"
Mar 16 17 16:52:15 <Deimos> yeah, databases are complicated
Mar 16 17 16:52:31 <creesch> Explains it all
Mar 16 17 16:52:40 <Deimos> people often also end up doing things that are way more complicated than necessary when a regular database could do it just fine
Mar 16 17 16:52:59 <creesch> Let's do agile without the code quality stuff
Mar 16 17 16:53:07 <Deimos> reddit has a bunch of data in cassandra that's duplicated tons of times instead of just putting it in a table with some indexes
Mar 16 17 16:53:09 <SpyTec> creesch Discord should've hired you. Then we might've still had 5 of the bigger bots still alive 😄
Mar 16 17 16:53:27 <creesch> Heh, easy for me to rant here.
Mar 16 17 16:53:45 <creesch> Besides my current project is waaaay to much fun.
Mar 16 17 16:53:52 <SpyTec> Trust me, ranting about Discord is more than justified
Mar 16 17 16:54:05 <creesch> I get to work with cutting edge openVMS platforms :p
Mar 16 17 16:54:23 <SpyTec> Never heard about it
Mar 16 17 16:54:34 <creesch> Look it up :D
Mar 16 17 16:55:44 <creesch> I am part of a migration traject that first converts a three million line code application from pascal to c++ so it can then be ported to Linux further down the line.
Mar 16 17 16:56:09 <SpyTec> Sounds like a days work..
Mar 16 17 16:56:20 <creesch> Basically the opposite of quick development like discord does.
Mar 16 17 16:56:34 <SpyTec> 😛
Mar 16 17 16:56:56 <creesch> Did I mention that it is a critical application responsible for the safety of thousands of people per day?
Mar 16 17 16:58:22 <SpyTec> Lots of verification then
Mar 16 17 16:59:35 <creesch> Lots and lots of testing
Mar 16 17 17:00:03 <creesch> Also finding out that older protocols are really liberal in their definition.
Mar 16 17 17:00:45 <creesch> The other day when automating something that required me to use ftp I found out that there is no standard for how a server needs to provide a directory listing.
Mar 16 17 17:01:10 <creesch> They can basically send it in whatever text string and it still functions exactly as designed.
Mar 16 17 17:01:53 <creesch> So basically all ftp clients that have been around for long enough have a ton of code devoted to figuring out what server they are dealing with and how to parse the listing.
Mar 16 17 18:10:42 <creesch> Right... here is a fun one.
Mar 16 17 18:10:54 <creesch> A message has an author object
Mar 16 17 18:11:05 <creesch> Which does contain the username but not the nickname or displayname
Mar 16 17 18:11:59 <creesch> However the message also has a "member" object
Mar 16 17 18:12:37 <creesch> Which does contain a displayname
Mar 16 17 18:13:05 <creesch> but also the user object again which can also be found in the author object.
Mar 16 17 18:14:34 <creesch> Fun fun stuff
Mar 16 17 18:22:10 <SpyTec> Logical
Mar 16 17 18:30:46 <creesch> It is a challenging puzzle 😃
Mar 16 17 18:32:49 <creesch> And at least I am making some progress 😃
Mar 16 17 18:33:40 <SpyTec> Just make sure you can easily change stuff, their API changes very often 😛
Mar 16 17 18:36:39 <creesch> I am hoping the library will help with that.
Mar 16 17 18:36:54 <creesch> It should at least help a little bit.
Mar 16 17 18:38:28 <creesch> https://cdn.discordapp.com/attachments/279692806442844161/292003705329418250/unknown.png
Mar 16 17 18:38:42 <creesch> \o/
Mar 16 17 18:38:51 <SpyTec> Nice
Mar 16 17 18:39:19 <creesch> Now I need to actually make it into something that works both ways and for all channels.
Mar 16 17 18:39:44 <creesch> As you can notice by the name I hardcoded this channel just to do a proof of concept
Mar 16 17 18:41:01 <creesch> But before I start work on that I need to figure out how I want to handle different discord servers.
Mar 16 17 18:53:05 <creesch> Fun little project for the weekend 😃
Mar 16 17 18:54:31 <SpyTec> How long would you reckon it would take to learn how toolbox worked backend?
Mar 16 17 18:54:51 <creesch> I honestly don't know.
Mar 16 17 18:55:10 <creesch> Because I have been involved in it from day one
Mar 16 17 18:55:28 <creesch> The basics should be fairly simple though if you know javascript.
Mar 16 17 18:56:17 <SpyTec> Have no idea how plugins work though, which file should I be looking at first so I can work my way from there? 😛
Mar 16 17 18:56:42 <creesch> Right
Mar 16 17 18:56:48 <creesch> Okay uhm let's see.
Mar 16 17 18:56:50 <creesch> https://github.com/creesch/reddit-moderator-toolbox/wiki/Programming-style-guide
Mar 16 17 18:57:03 <creesch> https://github.com/creesch/reddit-moderator-toolbox/wiki/Toolbox-module-notes
Mar 16 17 18:57:11 <creesch> I am just dumping some reference stuff
Mar 16 17 18:57:24 <creesch> In order to get started it is easiest to work with chrome.
Mar 16 17 18:57:36 <creesch> As that is the one browser that allows sideloading of extensions without too much fuzz
Mar 16 17 18:57:45 <SpyTec> Alright
Mar 16 17 18:57:48 <creesch> So go to "chrome://extensions/"
Mar 16 17 18:57:56 <creesch> And enable "Developer Mode" first
Mar 16 17 18:58:27 <creesch> Then when you clone the repo you can do "Load unpacked extension" and point to the "extension" directory and it will load toolbox.
Mar 16 17 18:58:45 <creesch> which can be found in the data directory btw 😛
Mar 16 17 18:59:29 <creesch> Uhm let's see... tbmodule.js, tbmoduleinit.js and tbstorage.js are utility scripts you don't need to worry about right away.
Mar 16 17 18:59:48 <creesch> tbui.js and tbutils.js are utility scripts that are handy to have in mind.
Mar 16 17 18:59:55 <creesch> tbui does a bunch of the interface stuff.
Mar 16 17 19:00:23 <creesch> and tbutils basically contains a shitload of functions, constants and other stuff ranging from api calls to a javascript to unix epoch converter 😛
Mar 16 17 19:00:29 <creesch> https://github.com/creesch/reddit-moderator-toolbox/blob/master/extension/data/tbutils.js
Mar 16 17 19:00:40 <SpyTec> Alright 😄
Mar 16 17 19:00:48 <creesch> tbui wiki page here https://github.com/creesch/reddit-moderator-toolbox/wiki/TBui-function-class
Mar 16 17 19:00:58 <creesch> tbutils wiki page here https://github.com/creesch/reddit-moderator-toolbox/wiki/TBUtils-function-calls
Mar 16 17 19:01:06 <creesch> Those wiki pages are far from complete though.
Mar 16 17 19:01:21 <SpyTec> Quite a bit
Mar 16 17 19:01:22 <creesch> So it is easier to just look into tbutils and go by the comments.
Mar 16 17 19:01:44 <SpyTec> Okay. I'll look into it some more 😛
Mar 16 17 19:01:49 <creesch> Anyway, that is the core of what toolbox runs on.
Mar 16 17 19:02:00 <creesch> Modules are found in the modules directory here https://github.com/creesch/reddit-moderator-toolbox/tree/master/extension/data/modules
Mar 16 17 19:02:19 <creesch> And they pretty much explain themselves if you follow them down the line.
Mar 16 17 19:02:42 <creesch> bagel.js is a fun stupid module that gives an easy overview of how modules work.
Mar 16 17 19:02:42 <creesch> https://github.com/creesch/reddit-moderator-toolbox/blob/master/extension/data/modules/bagel.js
Mar 16 17 19:03:23 <SpyTec> Probably need to spend more than a weekend to understand most of it. But thanks for linking me where to start
Mar 16 17 19:03:49 <creesch> Heh for sure, I don't expect anyone to read it all in one go 😛
Mar 16 17 19:03:55 <creesch> It is more that I gave it as reference.
Mar 16 17 19:04:17 <creesch> I highly recommend just picking something you want to explore in a module and tinker with that.
Mar 16 17 19:04:48 <creesch> Get to know the stuff in the process, it is just that it is handy to know where to look when you encounter a TBUtils functions 😉
Mar 16 17 19:06:05 <SpyTec> We'll see what I end up doing. Mostly interested to experiement, don't expect anything useful to come up from me
Mar 16 17 19:07:06 <creesch> I am not expecting anything 😃
Mar 17 17 14:51:03 <Shane> Slightly off topic
Mar 17 17 14:51:31 <Shane> is there a quick way to grab from instagram that isnt just rabbing 1 by 1?
Mar 17 17 15:04:27 <creesch> Okay, if I didn't fuck up this message which I am typing in irc should end up in #automation
Mar 17 17 15:04:44 <creesch> Which it did!
Mar 17 17 15:04:44 <tiz> it worked
Mar 17 17 15:05:20 <creesch> 😃
Mar 17 17 21:30:56 <Enigma> bagel.js is the best part of toolbox
Mar 17 17 23:05:37 <Shane> Quick way to upload css images?
Mar 17 17 23:12:58 <SpyTec> What you mean?
Mar 17 17 23:13:43 <Shane> Like, upload more than one at a time
Mar 17 17 23:14:04 <creesch> Nope
Mar 17 17 23:14:08 <creesch> Well yeah, the api
Mar 17 17 23:14:16 <creesch> You'd have to script something 😛
Mar 17 17 23:14:32 <Shane> darn
Mar 17 17 23:14:46 <SpyTec> Just push everything into a sprite
Mar 17 17 23:16:22 <creesch> D0cR3d SpyTec So, I basically just finished the first prototype of my discord IRCd 😃
Mar 17 17 23:16:32 <SpyTec> Noice, how's it looking?
Mar 17 17 23:16:35 <D0cR3d> nice
Mar 17 17 23:17:16 <creesch> Looking good, I made it so each discord server is also a different irc server to connect to. Messages are relayed pretty well.
Mar 17 17 23:17:48 <creesch> The one thing missing is user state changes (idle, offline, server join, etc).
Mar 17 17 23:18:07 <creesch> I'll work on that tomorrow and if that is in a semi workable state I'll put the code on github.
Mar 17 17 23:18:39 <SpyTec> Can't wait to see the spagetti code 😉
Mar 17 17 23:18:50 <creesch> Hah
Mar 17 17 23:19:43 <creesch> To prevent that I started from scratch a few hours ago with my proof of concept code as reference.
Mar 17 17 23:19:59 <SpyTec> Ah okay. Then it might actually look good
Mar 17 17 23:20:49 <creesch> I think it looks decent enough. Not sure about the architecture, working with websocket stuff is a bit different from what I usually do.
Mar 18 17 15:13:57 <creesch> SpyTec D0cR3d https://github.com/creesch/discordIRCd
Mar 18 17 15:14:48 <SpyTec> It's not too big either, I expected more
Mar 18 17 15:15:28 <creesch> The irc protocol is really simple. The biggest challenge was/is mapping everything to the correct place.
Mar 18 17 15:15:51 <SpyTec> I've made an IRC bot before, so I know how easy it is 😄
Mar 18 17 15:25:43 <D0cR3d> nicely done creesch
Mar 18 17 15:31:03 <creesch> https://www.reddit.com/r/discordapp/comments/604mh4/discordircd_connecting_to_discord_with_your/
Mar 18 17 15:33:46 <MuffinMedic> Haha creesch I do that with Slack - They have native IRC integration, so I connect through it. Also nice for logging purposes.
Mar 18 17 15:34:50 <MuffinMedic> I've been meaning to play with Bitlbee
Mar 18 17 15:36:04 <creesch> MuffinMedic to be honest, working on this made me realize how much the slack irc gateway sucks.
Mar 18 17 15:36:11 <creesch> They really only put in the bare minimum.
Mar 18 17 15:36:18 <creesch> Also why not give this a go now 😛
Mar 18 17 15:36:23 <creesch> I can use some testing of it
Mar 18 17 15:41:31 <MuffinMedic> I really use the Slack bridge primarily for logging and as a quick way to glance at stuff in one client - I use Slack itself for communicating most of the time. You want me to test out the bridge you wrote?
Mar 18 17 15:42:17 <creesch> Only if you feel like it of course.
Mar 18 17 15:42:23 <MuffinMedic> One sec, installing now 😃
Mar 18 17 15:42:23 <creesch> And if you are secretly this person https://xkcd.com/1782/
Mar 18 17 15:42:32 <MuffinMedic> I am proudly that person! No secrets here.
Mar 19 17 14:41:19 <creesch> Holy shit, discordIRCd can even handle a discord server with over 3k of people in it.
Mar 19 17 14:41:44 <SpyTec> creesch Try Overwatch server
Mar 19 17 14:41:58 <SpyTec> 14k *Online* atm
Mar 19 17 14:42:00 <creesch> SpyTeceh
Mar 19 17 14:42:08 <SpyTec> 😛
Mar 19 17 14:42:26 <creesch> Also it seems I introduced some regression back into the whole thing :/
Mar 19 17 14:42:33 <creesch> I am seeing whatever I am saying double
Mar 19 17 14:42:44 <SpyTec> Welp
Mar 19 17 14:43:01 <creesch> Small thing, I probably goofed up somewhere
Mar 19 17 14:43:07 <creesch> Oh, and now it is gone..
Mar 19 17 14:43:21 <creesch> I wonder if it had anything to do with that insanely busy server
Mar 19 17 15:26:40 <creesch> greenie you like irc right? 😛
Mar 19 17 15:34:01 <creesch> SpyTecOther than that things really work well. I added a bunch more functionality today and it is starting to become something I can probably use daily now.
Mar 19 17 15:34:25 <creesch> MuffinMedic^ that
Mar 19 17 15:34:51 <MuffinMedic> Oh cool, I'll update. Is it stable with PMs now?
Mar 19 17 15:34:51 <creesch> Aha mentions mess things up
Mar 19 17 15:35:00 <creesch> Ah
Mar 19 17 15:35:05 <creesch> I knew I forgot something
Mar 19 17 15:35:10 <creesch> I'll start work on that now
Mar 19 17 15:35:21 <MuffinMedic> Alright, once that's fixed, I'll give it a shot.
Mar 19 17 15:35:41 <MuffinMedic> I subscribed to the GitHub and woke up to 20+ emails about it though, so that's nice.
Mar 19 17 15:36:49 <creesch> Yeah I have been busy.
Mar 19 17 15:37:02 <creesch> Apparantly there is also some other person that likes it who has been reporting stuff
Mar 19 17 15:37:05 <creesch> which is nice :)
Mar 19 17 15:39:27 <creesch> Also seems that sometimes I still have the issue of messages coming through twice.
Mar 19 17 15:39:42 <creesch> https://usercontent.irccloud-cdn.com/file/2FMwbggq/
Mar 19 17 15:40:11 <MuffinMedic> Hmmm.
Mar 19 17 15:40:58 <creesch> Yeah not entirely sure what that is about. It clearly is because the api just displays all messages including the ones I have send myself. And all messages are forwarded to irc.
Mar 19 17 15:41:10 <creesch> But I build in a check for that, which apparantly doesn't always functions properly.
Mar 19 17 15:42:11 <MuffinMedic> Are you receiving the messages from the Discord API twice?
Mar 19 17 15:43:14 <creesch> Shouldn't matter really. What I do is basically storing the string of the last message send from irc then when receiving a message from discord I check if the content in there is identical to the last message I send from irc.
Mar 19 17 15:43:25 <creesch> Clearly I done goofed somewhere 😄
Mar 19 17 15:44:34 <creesch> I'll figure it out.
Mar 19 17 15:45:05 <MuffinMedic> Message duplication on IRC can be a pain. There's an IRCv3 draft spec for message-id's that may provide useful.
Mar 19 17 15:47:25 <creesch> Oh I should look into that. Not sure if it will be helpful specifically here, but still.
Mar 19 17 15:48:09 <creesch> At the moment I still think I goofed somewhere
Mar 19 17 15:50:32 <creesch> Since I got it to work earlier :)
Mar 19 17 15:50:44 <creesch> There we go, that seems to have fixed it :)
Mar 19 17 15:51:27 <MuffinMedic> What was the issue?
Mar 19 17 15:52:19 <creesch> Me doing the check in the wrong spot :P
Mar 19 17 15:52:59 <MuffinMedic> The API still shouldn't be sending message duplicates, regardless of errors on your end.
Mar 19 17 15:53:11 <creesch> Well it isn't really a duplicate...
Mar 19 17 15:53:42 <creesch> What happens is that I say to the api "Hey send this message" and the api goes "Sure thing, let me process it and present it to everyone that should receive it".
Mar 19 17 15:54:15 <creesch> Which means that I will receive the processed message, which makes sense since you want your own message to properly display as well with embeds, etc.
Mar 19 17 15:55:07 <creesch> The problem is that irc works differently, messages aren't processed so when you send a message the client will send the message of and show it it as well.
Mar 19 17 15:55:38 <creesch> Since it doesn't expect the message to be send back (As no processing is done)
Mar 19 17 15:58:16 <creesch> So that is the problem in a nutshell :)
Mar 19 17 15:58:56 <creesch> And apparantly sometimes the problem is there and sometimes it isn't.
Mar 19 17 15:59:03 <creesch> Which is weird.
Mar 19 17 15:59:43 <creesch> I guess I have some investigating to do.
Mar 19 17 16:06:19 <MuffinMedic> Hm, that's pretty odd.
Mar 19 17 16:06:55 <creesch> It really is, though with the asynchronous nature of node it probably has something to do with me abusing an aspect of that.
Mar 19 17 16:08:33 <creesch> Wouldn't be the first time I fell for that trap :P
Mar 19 17 16:08:42 <creesch> But in this case it is just odd
Mar 19 17 16:09:14 <creesch> Aha, found it..
Mar 19 17 16:09:43 <creesch> Spaces are trimmed by discord I think
Mar 19 17 16:09:46 <creesch> test
Mar 19 17 16:09:52 <creesch> yeah that is it
Mar 19 17 16:11:23 <MuffinMedic> It's always whitespace. Just like networking issues are always DNS.
Mar 19 17 16:11:53 <creesch> heh
Mar 19 17 16:12:12 <creesch> Hrm, I probably want to check more than the last line...
Mar 19 17 16:13:07 <MuffinMedic> I spent an hour fixing an IRC bug like that last night. I didn't realize that /me ACTIONs have an SOH (^A) control code before them, so I couldn't figure ot why "if message.startswith('ACTION')" was always false.
Mar 19 17 16:19:17 <creesch> Are you kidding me?
Mar 19 17 16:19:21 <creesch> Good to know
Mar 19 17 16:19:23 <creesch> Oh... I wonder
Mar 19 17 16:19:25 <creesch> ACTION test
Mar 19 17 16:19:31 <creesch> Right..
Mar 19 17 16:19:58 <creesch> Anyway, I got this bug fixed now.
Mar 19 17 16:20:01 <creesch> Right..
Mar 19 17 16:20:24 <creesch> On to the next one
Mar 19 17 16:20:54 <D0cR3d> creating next bug? 😛
Mar 19 17 16:21:11 <creesch> MuffinMedicluckily my current work has prepared me for silly stuff like this. Since I have been working on archaic systems that have software that needs to be migrated.
Mar 19 17 16:21:25 <creesch> ftp directory listings are a lot of fun for example
Mar 19 17 16:21:32 <creesch> D0cR3dprobably :P
Mar 19 17 16:22:06 <D0cR3d> creesch are you adding a space after usernames for mentions because on the other end it's lacking a space: https://i.imgur.com/seU1Arz.png
Mar 19 17 16:22:29 <creesch> Oh, I should fix that.
Mar 19 17 16:22:52 <MuffinMedic> I really wish FTP would go away and people WebDAV instead.
Mar 19 17 16:23:19 <creesch> SCP thank you very much
Mar 19 17 16:24:01 <MuffinMedic> Even better.
Mar 19 17 16:25:43 <MuffinMedic> Hm, I want to by anotehr domain. I have muffinmedic.net but I want a short verson I can setup a URL shortener on.
Mar 19 17 16:26:44 <D0cR3d> I've been wanting the same for my site, but can't come up with a short url format that still keeps the company name represented in it
Mar 19 17 16:26:46 <creesch> D0cR3d that should fix it.
Mar 19 17 16:26:52 <D0cR3d> can confirm fixed
Mar 19 17 16:27:08 <MuffinMedic> I can't find a short URL that isn't taken or $1200/year
Mar 19 17 16:27:08 <creesch> Also, tab complete is so much better with ircclients.
Mar 19 17 16:27:41 <creesch> I am not even sure why discord can't just do it based on the visible name. It is how I do it and then internally I translate it to a mention
Mar 19 17 16:27:58 <creesch> MuffinMedic try something else than .com
Mar 19 17 16:28:08 <MuffinMedic> I am. Trying all the TLDs that will work.
Mar 19 17 16:28:09 <D0cR3d> yeah it confuses me all the time wondering who I'm tab completing bc nick vs name
Mar 19 17 16:30:27 <creesch> Ugh...
Mar 19 17 16:30:40 <creesch> MuffinMedic private messages will be a pain...
Mar 19 17 16:30:46 <MuffinMedic> Why?
Mar 19 17 16:31:06 <creesch> Basically they are a seperate channel that has no connection with a specific server.
Mar 19 17 16:31:40 <MuffinMedic> Oh. Can you temporarily try/except pass the message block so it doesn't crash? I don't mind using the bridge as long as it doesn't crash on every PM.
Mar 19 17 16:32:13 <creesch> Sure, can you send me a pm really quick?
Mar 19 17 16:33:14 <MuffinMedic> Sent.
Mar 19 17 16:33:18 <creesch> thanks
Mar 19 17 16:33:23 <creesch> Can confirm it crashed 😛
Mar 19 17 16:36:03 <creesch> Hrm... I guess I could fix it in an annoying way.
Mar 19 17 16:36:27 <creesch> Which would entail the private conversation showing up in all connected servers.
Mar 19 17 16:36:43 <D0cR3d> or create a private messages server and attach to that?
Mar 19 17 16:36:44 <creesch> Or... I could make it into a seperate PM server
Mar 19 17 16:36:56 <creesch> Great minds :P
Mar 19 17 16:37:02 <MuffinMedic> No feasible way to have the PMs be server specific?
Mar 19 17 16:37:22 <creesch> I don't know how. Considering that on discord they are also seperate
Mar 19 17 16:37:59 <MuffinMedic> Oh, right, I forgot about that, woops.
Mar 19 17 16:38:08 <MuffinMedic> I keep forgetting Discord != Slack.
Mar 19 17 16:40:48 <creesch> Yeah, though I really wish they had kept the separation of servers intact on DM level.
Mar 19 17 16:41:05 <creesch> Sometimes is confusing to get a pricate message from people with a nickname you don't recognize.
Mar 19 17 18:48:57 <greenie> creesch i didnt realise discord used an IRCd tbh
Mar 19 17 18:57:00 <creesch> greenie no, I made one.
Mar 19 17 18:57:11 <greenie> you made an IRCd?
Mar 19 17 18:57:15 <creesch> Sort of
Mar 19 17 18:57:25 <creesch> https://github.com/creesch/discordIRCd
Mar 19 17 18:57:30 <creesch> Still work in progress
Mar 19 17 18:57:36 <greenie> ah you made a bridge?
Mar 19 17 18:57:44 <creesch> No
Mar 19 17 18:57:46 <creesch> Well...
Mar 19 17 18:57:51 <creesch> Depends on your definition of a bridge.
Mar 19 17 18:58:19 <creesch> Most people think of a relay that sits in both as sort of a bot.
Mar 19 17 18:58:38 <creesch> This thing pretends to be a proper ircserver on one side and is a discordclient on the other.
Mar 19 17 18:59:46 <greenie> ah, very cool
Mar 19 17 19:00:07 <greenie> i always thought i would be an XKCD 1782 person
Mar 19 17 19:00:15 <greenie> but I'm not
Mar 19 17 19:00:40 <greenie> I think after I started working on euphoria chat, I became more open to other chat platforms as well
Mar 19 17 19:00:55 <creesch> I mostly dislike having to juggle multiple clients.
Mar 19 17 19:01:15 <creesch> Since I have a dualscreen setup I often have irc in one corner so I can see what is going on.
Mar 19 17 19:01:31 <creesch> With multiple clients open I noticed I started to always neglect those that are not in view.
Mar 19 17 19:01:52 <creesch> Also the mobile discord client really isn't that good compared to irccloud.
Mar 19 17 19:03:17 <greenie> Yeah I tend to neglect discord, which I'm fairly okay with
Mar 19 17 19:04:07 <creesch> I am not okay with neglecting either.
Mar 19 17 19:04:27 <creesch> the /r/history team is on discord which is fairly important to me. But toolbox is still on irc
Mar 19 17 19:35:31 <creesch> D0cR3d alright, private messages now also are implemented. I can start them from any server and they will automatically be transfered to the private message server.
Mar 19 17 19:36:00 <D0cR3d> nice!
Mar 19 17 19:36:37 <creesch> Damn, just had look at the how much I wrote over the past two days.
Mar 19 17 19:36:38 <creesch> https://github.com/creesch/discordIRCd/blob/master/server.js
Mar 19 17 19:36:44 <creesch> Roughly 1k lines of code.
Mar 19 17 19:37:11 <creesch> Though I am fairly sure I could reduce the amount if I had to start over. Something about knowing some things now I didn't two days ago.
Mar 19 17 19:37:18 <SpyTec> That's double the amount since last time you linked it to me 😛
Mar 19 17 19:37:34 <creesch> It has more than double the amount of functionality though.
Mar 19 17 19:37:53 <creesch> The only thing really missing are embeds, which usually aren't an issue but some bots only send embeds.
Mar 19 17 19:38:31 <creesch> And somehow IRCCloud is being weird and refuses to show topics
Mar 19 17 20:25:56 <creesch> Yeah what ShaneH7646 linked is the easiest method. Basically takes care of all the special characters you need to replace for you.
Mar 19 17 20:27:42 <creesch> Yeah what ShaneH7646 linked is the easiest method. Basically takes care of all the special characters you need to replace for you.
Mar 19 17 20:27:51 <SpyTec> Getting dupe messages now
Mar 19 17 20:27:57 <SpyTec> In wrong channel
Mar 19 17 20:29:11 <creesch> Lol
Mar 19 17 20:29:23 <creesch> No that is just me being derpy
Mar 19 17 20:29:52 <SpyTec> Welp
Mar 19 17 20:30:20 <creesch> I was checking in discord but was looking at the wrong channel.
Mar 19 17 20:30:58 <creesch> So yeah...
Mar 19 17 20:31:00 <creesch> human error
Mar 19 17 20:39:46 <SpyTec> We can fix that. Lets just replace you with an AI
Mar 19 17 20:40:07 <D0cR3d> implying creesch isn't already an AI
Mar 19 17 20:40:20 <creesch> sssh!
Mar 19 17 20:40:24 <creesch> That is a secret
Mar 19 17 20:41:09 <creesch> The problem is that I was programmed by a drunken programmer in a late afternoon and he never tested the code.
Mar 19 17 20:41:23 <creesch> Ah well
Mar 19 17 20:42:53 <SpyTec> Never tested the code? Give me your credit card
Mar 19 17 20:45:17 <creesch> Why would I need a creditcard? I can just plug into payment traffic
Mar 19 17 20:45:31 <creesch> Secretly that is all irc protocol :P
Mar 19 17 21:08:51 <SpyTec> lol
Mar 20 17 01:05:27 <MuffinMedic> creesch Is the bridge code up to date and stable now on GH?
Mar 20 17 01:05:52 <MuffinMedic> (well, stable with regards to the issues we discussed)
Mar 20 17 01:08:15 <JessePuns> I'm thinking of making a bot for my sub /r/Darknet which gets a lot of spammers, but some of the keywords I want to flag are also used by legitimate users.
Do I make it remove it and PM me, or just PM me for later moderation
Mar 20 17 01:12:06 <D0cR3d> if the API allowed filtering like we're saying in <#278566343836565505> that would be a great usage. If you need it ot be removed, then remove and modmail. Otherwise use report
Mar 20 17 01:28:56 <JessePuns> ./script.py: line 4: syntax error near unexpected token `('
Mar 20 17 01:29:10 <JessePuns> reddit = praw.Reddit(client_id='id', client_secret='secret', redirect_uri='https://reddit.com/')
Mar 20 17 01:29:25 <JessePuns> What's wrong or is it because I'm running on Linux
Mar 20 17 01:32:29 <Deimos> problem is probably coming from the previous line
Mar 20 17 01:36:24 <Deimos> nothing looks wrong in that line unless either the client_id or client_secret have an apostrophe or something in them that's causing the string to end
Mar 20 17 01:37:34 <JessePuns> The lines before that are import praw and import time
Mar 20 17 01:37:35 <JessePuns> so
Mar 20 17 01:39:27 <allthefoxes> Well, pardon the question
Mar 20 17 01:39:29 <allthefoxes> is praw installed?
Mar 20 17 01:39:46 <JessePuns> Yes
Mar 20 17 01:39:49 <allthefoxes> Just being sure
Mar 20 17 01:39:49 <JessePuns> Well I hope so
Mar 20 17 01:39:53 <Deimos> I think it should give an ImportError instead of that if it wasn't
Mar 20 17 01:39:56 <JessePuns> I did sudo pip install praw
Mar 20 17 01:39:58 <JessePuns> which installed it
Mar 20 17 01:40:03 <D0cR3d> Can we see the whole code?
Mar 20 17 01:40:05 <allthefoxes> Deimos yeah, it would, Python is smarter than I give it credit
Mar 20 17 01:47:35 <SpyTec> JessePuns reset your secret now
Mar 20 17 01:47:44 <JessePuns> Woops
Mar 20 17 01:47:48 <JessePuns> Thatś some dumb shit
Mar 20 17 01:47:56 <SpyTec> Yep 😛
Mar 20 17 01:48:08 <JessePuns> import praw
import time
reddit = praw.Reddit(client_id='qRwuOOEgB3LAxA', client_secret='FUCKINGSECRET', redirect_uri='https://reddit.com/')
r.login(username='user', password='pass')
already_done = []
keywords = ['keywords]
while True:
subreddit = reddit.get_subreddit('Darknet')
for submission in subreddit.get_hot(limit=10):
op_text = submission.selftext.lower()
contains_keywords = any(string in op_text for string in keywords)
if submission.id not in already_done and contains_keywords:
msg = '[Possible Spam Thread](%s)' % submission.short_link
reddit.send_message('JessePuns', 'Possible Spam Thread', msg)
already_done.append(submission.id)
time.sleep(1800)
Mar 20 17 01:48:22 <SpyTec> I would suggest to change it either way
Mar 20 17 01:48:45 <JessePuns> I will
Mar 20 17 01:50:00 <Deimos> there are some other errors in there, but I don't see anything right near the top, so I'm not sure what it's complaining about up there
Mar 20 17 01:50:24 <Deimos> maybe it's just not counting the blank lines, take out the `r.login` line
Mar 20 17 01:50:28 <JessePuns> Would you mind enlightening me on those errors?
Mar 20 17 01:50:29 <D0cR3d> r.login is depreciated in PRAW 4 so that isn't necessary. that is all done in praw.reddit
Mar 20 17 01:50:56 <Deimos> the `keywords = ['keywords]` line is missing a single quote to close the string
Mar 20 17 01:51:08 <D0cR3d> ``` import praw
r = praw.Reddit(user_agent=self.USR_AGNT,
client_id=client_id,
client_secret=client_secret,
username=username,
password=password)```
Mar 20 17 01:51:09 <JessePuns> I know that was my error when I changed the keywords
Mar 20 17 01:51:19 <D0cR3d> that should be the format for using praw.Reddit
Mar 20 17 01:51:20 <JessePuns> In the script it has no error there
Mar 20 17 01:51:21 <JessePuns> oh
Mar 20 17 01:51:31 <JessePuns> Removing r.login didn't change the error btw
Mar 20 17 01:52:09 <SpyTec> Doesn't it need to be in a function?
Mar 20 17 01:52:42 <Deimos> I'd try re-typing that line manually, I don't know if you might have somehow copy-pasted some weird character in there that looks right but isn't
Mar 20 17 01:52:52 <Deimos> there shouldn't be anything wrong with it from what I can see
Mar 20 17 01:56:43 <JessePuns> Retyped
Mar 20 17 01:56:44 <JessePuns> same error
Mar 20 17 01:56:49 <JessePuns> probably linux autismo
Mar 20 17 01:56:57 <Deimos> what version of python is it?
Mar 20 17 01:57:06 <JessePuns> 2.7.xx
Mar 20 17 01:57:11 <D0cR3d> and PRAW?
Mar 20 17 01:57:17 <JessePuns> 4.3
Mar 20 17 01:57:25 <D0cR3d> update PRAW
Mar 20 17 01:57:36 <D0cR3d> 4.4 is the latest
Mar 20 17 01:57:48 <JessePuns> wait
Mar 20 17 01:57:51 <JessePuns> How do I check praw version
Mar 20 17 01:58:06 <D0cR3d> pip install praw --upgrade
Mar 20 17 01:58:13 <D0cR3d> will upgrade if needed
Mar 20 17 01:58:22 <JessePuns> Already up to date
Mar 20 17 01:58:31 <JessePuns> Guess I have 4.4 then
Mar 20 17 01:59:04 <D0cR3d> what if you try and do import praw, then run the r = praw.Reddit code without trying to run the whole script?
Mar 20 17 01:59:51 <D0cR3d> and are you using my format for praw login?
Mar 20 17 02:00:41 <JessePuns> Yes, and same error when running just the praw code
Mar 20 17 02:02:19 <SpyTec> Feels strange to me not running stuff within functions. Probably not the issue but it tilts me 😛
Mar 20 17 02:02:47 <Deimos> I don't really know what else to suggest, you can try just running "python" to get into the interactive shell thing, and try to just get the `praw.Reddit()` line to work in there
Mar 20 17 02:04:03 <D0cR3d> Do just this:
```import praw
username="username"
password="password"
client_id="client id"
client_secret="client secret"
USR_AGNT="user agent"
r = praw.Reddit(user_agent=USR_AGNT,
client_id=client_id,
client_secret=client_secret,
username=username,
password=password)```
Mar 20 17 02:04:25 <D0cR3d> inside a python shell by typing `python` into a command prompt
Mar 20 17 06:42:23 <JessePuns> Opened it up in IDLE editor and indentation was fucked up for some reason
Mar 20 17 06:42:32 <JessePuns> Fixed most errors and changed it to this:
Mar 20 17 06:43:35 <JessePuns> '''
import praw
import time
reddit = praw.Reddit(user_agent='asdad',
client_id='asdasd',
client_secret='asd',
redirect_uri='asd',
username='ads',
password='asd')
already_done = []
keywords = ['']
while True:
subreddit = reddit.subreddit('Darknet')
for submission in subreddit.get_new(limit=200):
op_text = submission.title.lower()
contains_keywords = any(string in op_text for string in keywords)
if submission.id not in already_done and contains_keywords:
msg = '[Possible Spam Thread](%s)' % submission.short_link
reddit.send_message('JessePuns', 'Possible Spam Thread', msg)
already_done.append(submission.id)
time.sleep(1800)
'''
Mar 20 17 06:45:12 <JessePuns> How do I format the code like yours
Mar 20 17 06:48:23 <JessePuns> Changed some things due to errors with PRAW like 'get_new' to .new() and short_link to shortlink
Mar 20 17 06:48:29 <JessePuns> but I can't find a replacement for send_message
Mar 20 17 06:58:10 <creesch> https://usercontent.irccloud-cdn.com/file/AuT6AMiV/Screenshot_20170320-075740.png
Mar 20 17 06:58:32 <JessePuns> that looks nice
Mar 20 17 06:58:41 <creesch> JessePuns you think your indentation was fucked up? :p
Mar 20 17 06:58:44 <JessePuns> How do I send a message with praw is my question basically
Mar 20 17 06:58:52 <JessePuns> yeah it went 12 spaces instead of 4
Mar 20 17 06:59:10 <Dirt Diglett> Jesse, if you wrap your entire code in 3 "`" it will turn it to a code block and show properly.
Mar 20 17 06:59:16 <Dirt Diglett> ```
```
Mar 20 17 06:59:23 <JessePuns> ''' test '''
Mar 20 17 06:59:28 <JessePuns> wow im autistic
Mar 20 17 06:59:33 <JessePuns> ``` test ```
Mar 20 17 06:59:35 <JessePuns> yes
Mar 20 17 06:59:49 <Dirt Diglett> And that will keep your indentation and whatnot nice.
Mar 20 17 07:00:04 <creesch> Maybe not use autistic as a derogatory term unless you have actually autism...
Mar 20 17 07:01:15 <JessePuns> Undiagnosed
Mar 20 17 07:03:06 <creesch> Anyway, I am not sure how to do it with praw. Praw tends to add much unneeded abstraction. Sending a message in essence is a really simple post request.
Mar 20 17 07:03:25 <JessePuns> Could you please show me how to do it without PRAW?
Mar 20 17 07:03:29 <JessePuns> That would be very nice 😃
Mar 20 17 07:03:44 <creesch> Also, limits can be no more than 100
Mar 20 17 07:03:58 <JessePuns> Oh okay
Mar 20 17 07:04:03 <creesch> Well they can be but you will not get more than hundred items.
Mar 20 17 07:04:13 <JessePuns> Can I just set no limit?
Mar 20 17 07:04:18 <JessePuns> I don't want it to stop
Mar 20 17 07:05:54 <JessePuns> I'm off to work, later guys
Mar 20 17 08:26:17 <creesch> JessePuns no that is not how it works 😃
Mar 20 17 08:26:28 <creesch> You have to get it per 100 items and the max is 1000 btw.
Mar 20 17 08:26:49 <creesch> With a few exceptions like the modlog and old modmail, those do go back much further.
Mar 20 17 14:58:05 <JessePuns> Oh okay
Mar 20 17 14:58:09 <JessePuns> How do I send a PM though?
Mar 20 17 15:33:29 <creesch> JessePuns over an authenticated connection you send a post request to the `/api/compose` endpoint with parameters `subject`, `text`, `to` filled.
Mar 20 17 22:40:56 <Phallindrome> Will someone check over an AM rule before I put it in?
Mar 20 17 22:41:13 <Phallindrome> it's regex so I wanna make sure I haven't completely britta'd it
Mar 20 17 22:41:37 <SpyTec> Sure
Mar 20 17 22:43:16 <Phallindrome> title (regex): ["with","the","it?s","and","do","to","at","are","for","him","her","he","she","they","them","why","how","who","you","did"]
action: filter
action_reason: Is this an English title?
Mar 20 17 22:43:23 <Phallindrome> title (regex): ["[\\w]+(ing|ed)"]
~title (regex): ["[\\w]+(eit|ung|ein)","und","auf","sich","das","ein","der","ist","zu","du","die"]
action: filter
action_reason: Is this an English title?
Mar 20 17 22:43:57 <Phallindrome> only german posts allowed
Mar 20 17 22:44:20 <Deimos> you need square brackets around the lists of different things
Mar 20 17 22:45:06 <Phallindrome> oooh okay. The library didn't have em in a bunch
Mar 20 17 22:45:21 <Deimos> it should whenever there are multiple comma-separated options
Mar 20 17 22:45:45 <Phallindrome> like that?
Mar 20 17 22:45:58 <Deimos> in the top one too
Mar 20 17 22:46:23 <Deimos> make sure you separate the two rules by a line with 3 hyphens too
Mar 20 17 22:46:40 <Phallindrome> yup!
Mar 20 17 22:46:48 <Deimos> there aren't any german words that end in "ing" or "ed"?
Mar 20 17 22:47:05 <Phallindrome> there are, that's why the "and not [german]"
Mar 20 17 22:47:05 <SpyTec> Supposed to catch English ones
Mar 20 17 22:47:42 <Deimos> I think you don't want the . inside the `~title` regex, that could cause issues
Mar 20 17 22:48:09 <Deimos> since a dot matches anything, that will include spaces/punctuation/etc.
Mar 20 17 22:48:09 <Phallindrome> it's supposed to catch any english ones, and if it runs into one of about 400 german words, hopefully other german will keep the other condition from being filled
Mar 20 17 22:48:14 <Phallindrome> oooh okay thank you
Mar 20 17 22:48:43 <Deimos> you can also use `\\w` instead of `[A-Za-z]` and I think it should include the non-ascii german letters
Mar 20 17 22:49:02 <Phallindrome> oh cool!! thank you, that's the effect i wanted haha
Mar 20 17 22:49:13 <SpyTec> Why double \\?
Mar 20 17 22:49:23 <Deimos> because he's inside double quotes, so you have to double-escape
Mar 20 17 22:49:33 <Deimos> you can put it inside single quotes to only need to single-escape, it's a bit weird
Mar 20 17 22:49:41 <Deimos> `"\\w"` or `'\w'`
Mar 20 17 22:49:53 <Phallindrome> it's showing up as single but i doubled it in source
Mar 20 17 22:50:02 <Phallindrome> jsut so you know i didn't screw up
Mar 20 17 22:50:50 <Deimos> it looks like it should probably work to me though, since it's just doing filter you'll see anything it removes anyway and can tweak if it's not working out
Mar 20 17 22:51:10 <Phallindrome> cool =D Thank you!
Mar 21 17 18:57:23 <ri0tnrrd> hmmm darn I thought this was for script automation help phooey
Mar 21 17 18:58:00 <creesch> Btw for people wanting to do stuff with the new user profile thing. Apparantly it is secretly a subreddit so you can apparantly use the api endpoints you'd use for subs.
Mar 21 17 18:58:24 <creesch> *"it’s a restricted subreddit which is displayed under /user/whatever/ but api responses will have subreddit_name = u/whatever"*
Mar 21 17 18:59:26 <ri0tnrrd> ah cool thanks for the info
Mar 21 17 21:16:07 <Shane> non mod related thing:
Mar 21 17 21:16:22 <Shane> how do you get python setuptools?
Mar 21 17 21:16:49 <Shane> all of this is just *whooshing* right over my head
Mar 21 17 21:17:06 <Deimos> that should probably just be a part of python, it's pretty standard
Mar 21 17 21:17:19 <Deimos> what are you trying to do?
Mar 21 17 21:17:39 <Shane> Try this
Mar 21 17 21:17:40 <Shane> https://github.com/althonos/instaLooter
Mar 21 17 21:17:51 <Shane> I have never used python before
Mar 21 17 21:18:34 <Deimos> what OS are you on?
Mar 21 17 21:19:13 <Shane> windows 10
Mar 21 17 21:20:22 <Deimos> it's probably going to be a bit annoying on windows, but if you just install one of the newest versions of python it should come with pip built-in
Mar 21 17 21:22:11 <Shane> right, thanks
Mar 21 17 21:22:14 <D0cR3d> Can confirm setup tools and pip come with latest python
Mar 21 17 21:22:42 <Deimos> so once you have a newer version installed, you should just need to get into its directory where the pip.exe is and do "pip install instaLooter"
Mar 21 17 21:23:10 <Deimos> there might be some more complexities with that though, I've never really done any python on windows
Mar 21 17 21:24:11 <D0cR3d> It's as simple as that on windows
Mar 21 17 21:29:38 <Shane> I must be misunderstanding this, what do you mean by go to the directory?
Mar 21 17 21:30:59 <SpyTec> folder
Mar 21 17 21:31:17 <Deimos> you'll probably need to do it through command prompt
Mar 21 17 21:33:15 <Shane> the python command line?
Mar 21 17 21:33:29 <Deimos> no, just the windows command prompt
Mar 21 17 21:35:04 <Shane> oh damn its doing stuff
Mar 21 17 21:35:12 <Shane> nice
Mar 21 17 21:40:54 <Shane> Thanks for the help 😃
Mar 21 17 21:57:15 <Shane> 😄
Mar 21 17 21:57:18 <Shane> it works
Mar 21 17 21:57:20 <Shane> 😄
Mar 21 17 21:57:48 <Shane> I wonder if theres a script for gfycat uploading
Mar 21 17 22:03:06 <Shane> this is so much quicker
Mar 21 17 22:03:13 <Shane> why didnt I do this before
Mar 21 17 22:06:16 <SpyTec> What are you doing?
Mar 21 17 22:06:44 <Shane> Downloading stuff from instagram using a python script
Mar 21 17 22:06:53 <SpyTec> Ah
Mar 21 17 22:29:59 <ri0tnrrd> Oh cool...how is it going?
Mar 21 17 23:41:41 <Shane> 3031 videos
Mar 21 17 23:42:33 <Shane> with a random 5 digit code at the start of the file name so its in a random order
Mar 22 17 15:32:56 <boredguy8> was gonna add "shit*[^\s]+" to my automod regex (to match shit, shitty, shitfaced, &c) but I'm getting an error: "found unknown escape character 's'" o.0
Mar 22 17 15:33:16 <boredguy8> any protips?
Mar 22 17 15:33:18 <SpyTec> Use ' instead of "
Mar 22 17 15:33:33 <boredguy8> ty ty
Mar 22 17 19:52:10 <creesch> https://www.reddit.com/r/modnews/comments/60w4x6/slug/df9s2mp
Mar 22 17 19:52:34 <creesch> Desktop rewrite, not just redesign...
Mar 22 17 19:52:40 <creesch> rip toolbox I guess
Mar 22 17 19:52:57 <Deimos> oh I thought you knew that, they're rebuilding it using react, like mobile web
Mar 22 17 19:53:02 <Deimos> you can see it on the new profile page
Mar 22 17 19:53:16 <Deimos> that's using the new stack
Mar 22 17 19:53:32 <Deimos> but yes, it's going to completely break toolbox, RES, all subreddit CSS, etc.
Mar 22 17 19:54:01 <creesch> Nah I didn't know for sure.
Mar 22 17 19:54:24 <creesch> Also why react... Blegh.
Mar 22 17 19:54:51 <creesch> Talking about unnecessary bloat and loading spinners where they don't belong.
Mar 22 17 19:54:57 <Deimos> but all the cool kids are using it
Mar 22 17 19:55:08 <creesch> At least with the reddit react stuff I have seen so far.
Mar 22 17 19:55:26 <Deimos> yeah, even the user profile page you get a loading thing for like 3+ seconds until the submissions load in
Mar 22 17 19:55:37 <creesch> Most cool kids can't actually code that well, they just look good on paper
Mar 22 17 19:56:02 <creesch> Imgur also is terrible these days on mobile.
Mar 22 17 19:56:12 <creesch> Even more so when not using chrome.
Mar 22 17 19:57:36 <creesch> So much wheel reinventing in front end stuff these days.
Mar 22 17 19:57:52 <SpyTec> I saw someone doing a comparison of the new mobile view vs. the old one. The new one took several seconds whilst the old one loaded almost instantly
Mar 22 17 19:58:03 <creesch> Bullshit
Mar 22 17 19:58:10 <creesch> Oj
Mar 22 17 19:58:13 <creesch> Oh
Mar 22 17 19:58:16 <creesch> Nvm
Mar 22 17 19:58:19 <allthefoxes> Lol
Mar 22 17 19:58:23 <SpyTec> lol, you thought opposite 😛
Mar 22 17 19:58:24 <creesch> Read that backwards
Mar 22 17 19:58:28 <creesch> Yeah
Mar 22 17 19:58:28 <allthefoxes> Yeah new mobile sucks
Mar 22 17 19:58:47 <SpyTec> I don't understand why go the route of sending snippets *now* though
Mar 22 17 19:58:57 <Phallindrome> _has never used mobile view_
Mar 22 17 19:59:04 <allthefoxes> It looks nice i guess but at the cost of so much functionality
Mar 22 17 19:59:06 <SpyTec> Unless it's been in development for years
Mar 22 17 19:59:26 <creesch> Anyway, just so you all know. If they did that for desktop it would effectively kill toolbox and I don't know how quick if at all we could rebuild.
Mar 22 17 19:59:47 <allthefoxes> Sounds like fun
Mar 22 17 20:00:04 <ThatAstronautGuy> if toolbox dies i give up
Mar 22 17 20:00:11 <SpyTec> Same
Mar 22 17 20:00:13 <ThatAstronautGuy> it would take too much time to do everything
Mar 22 17 20:00:37 <creesch> Honestly if new desktop is anything like mobile I will quit on the spot.
Mar 22 17 20:00:38 <SpyTec> I'd reckon another blackout would occur if there isn't functionality akin to toolbox
Mar 22 17 20:00:59 <ThatAstronautGuy> if admins break toolbox, and they cant fix it, i would be 100% for blacking out
Mar 22 17 20:01:23 <ThatAstronautGuy> only subs i wouldnt do it in would be my subs that people depend on to make a living
Mar 22 17 20:01:41 <Shane> They should really aim to work with toolbox and not just ignore it
Mar 22 17 20:02:11 <creesch> They don't completely ignore us, when they don't forget we often get early access.
Mar 22 17 20:02:17 <Shane> If they're completely rewriting, wouldnt it be a good time time to add its features?
Mar 22 17 20:02:34 <ThatAstronautGuy> yes
Mar 22 17 20:02:36 <Phallindrome> If toolbox got broken by the admins, I don't know if moderators *choosing* to blackout would really be relevant at that point
Mar 22 17 20:02:37 <creesch> That is no good when none of us has the time to do a full rewrite of the toolbox core though
Mar 22 17 20:02:46 <Phallindrome> It's not like much moderating can get done without it
Mar 22 17 20:03:14 <Phallindrome> the blackout just happens
Mar 22 17 20:04:08 <Deimos> I don't want to be too cynical, but you'll be lucky if even all the existing mod features make it into the rewrite, never mind new ones
Mar 22 17 20:04:18 <Phallindrome> Hah!
Mar 22 17 20:04:22 <Deimos> look at how long it took to add even basic remove/approve stuff to mobile web and the apps
Mar 22 17 20:04:47 <creesch> I should set up a reddit clone in advance, announce toolbox stopping because of reddit fucking up and offering the alternative
Mar 22 17 20:04:47 <creesch> :p
Mar 22 17 20:04:59 <SpyTec> Call it boat
Mar 22 17 20:05:03 <ThatAstronautGuy> our problem is the desktop being turned into mobile web, and causing stuff to break
Mar 22 17 20:05:06 <Shane> I'd concider it
Mar 22 17 20:11:22 <SpyTec> To be honest. If reddit desktop rewrite will turn out to be super fucking slow. I would probably want to use a third-party website, be it local or hosted somewhere, that is just a reddit-wrapper. Given I'd still want to moderate
Mar 22 17 20:25:42 <Deimos> this was a good article I read recently: https://brandur.org/interfaces
Mar 22 17 20:26:11 <Deimos> I don't necessarily agree with the whole thing, but I think he does a good job of talking about how insane it is that we've gotten so used to waiting for constant long loading times everywhere
Mar 22 17 20:27:22 <Shane> this websites interface bugs me
Mar 22 17 20:27:37 <Shane> its not centred and the tab menu is just hovering there
Mar 22 17 20:28:26 <Deimos> ah weird, I think there's something wrong with it, there's text hanging off the left edge that's unreadable
Mar 22 17 20:28:59 <Deimos> I don't remember it being like that when I read it, maybe he screwed something up recently
Mar 22 17 20:29:14 <ThatAstronautGuy> https://cdn.discordapp.com/attachments/279692806442844161/294205905036115979/unknown.png
Mar 22 17 20:29:18 <ThatAstronautGuy> this website is shit
Mar 22 17 20:29:27 <ThatAstronautGuy> this is everything visible on my screen
Mar 22 17 20:29:40 <ThatAstronautGuy> my opinion of him is terrible, and i havent even finished reading his title
Mar 22 17 20:29:45 <Deimos> yeah I think there's something wrong with his CSS, the text of the article is pretty decent though :b
Mar 22 17 20:30:19 <Shane> thats just a bad start on an article about bad interfaces
Mar 22 17 20:30:19 <ThatAstronautGuy> and yeah, shit off to the side for me too
Mar 22 17 20:30:21 <ThatAstronautGuy> ^
Mar 22 17 20:30:35 <ThatAstronautGuy> and he is right, i have 5 slack teams, and it takes almost a minute for them all to finish loading
Mar 22 17 20:30:38 <creesch> Deimos What disturbs me most is how much frontend devs these days want to do in the frontend but what is much better done in the backend.
Mar 22 17 20:30:45 <ThatAstronautGuy> and it takes up a lot of my computers resources
Mar 22 17 20:31:04 <Perma> Hello
Mar 22 17 20:31:07 <creesch> So much dynamic dom building that could just be done on the server side.
Mar 22 17 20:31:08 <Deimos> creesch it's because they're all terrified of the backend and don't want to learn about databases or anything
Mar 22 17 20:31:17 <ThatAstronautGuy> pls guys, learn backend
Mar 22 17 20:31:22 <ThatAstronautGuy> hey perma
Mar 22 17 20:31:33 <ThatAstronautGuy> my friends website is great
Mar 22 17 20:31:36 <Shane> ( ͡° ͜ʖ ͡°)
Mar 22 17 20:31:48 <ThatAstronautGuy> when you request a page, it builds the entire thing server-side into a single html file using shell scripts, then sends it to you
Mar 22 17 20:32:00 <ThatAstronautGuy> great way of doing dynamic content
Mar 22 17 20:32:43 <Phallindrome> Hey Perma! =)
Mar 22 17 20:33:00 <SpyTec> Sometimes doing everything in front-end is good. When back-end is limited in one way or another for example
Mar 22 17 20:33:21 <creesch> Deimos well,sort of I guess. They probably are terrified that they will be marginalized again. For a long time much of the heavy lifting was done by backend devs.
Mar 22 17 20:33:24 <Deimos> there are some sites that should be single-page apps and be done primarily front-end, but there are a lot that really don't need to be
Mar 22 17 20:33:30 <SpyTec> Yep
Mar 22 17 20:33:35 <creesch> Full stack stuff is hard I guess.
Mar 22 17 20:33:46 <Deimos> for example there's no reason for a blog or news site or anything else very text-centric to need to be a SPA
Mar 22 17 20:34:08 <ThatAstronautGuy> if my first-year university roommate can make his entire website backend scripted, with effectively no front-end scripts, someone who has gotten an entire education can do it too
Mar 22 17 20:34:11 <Deimos> the site I play go online on, that makes sense as an SPA because it's really interactive and wouldn't make sense as a traditional page-based web app
Mar 22 17 20:34:31 <ThatAstronautGuy> yup
Mar 22 17 20:34:35 <Deimos> but that's not really how most sites work
Mar 22 17 20:34:53 <creesch> Having said that, I really love abusing electron to build custom tooling at work.
Mar 22 17 20:35:37 <creesch> I also think most apps made with electron these days are top heavy.
Mar 22 17 20:37:41 <Deimos> what do you mean, Slack is fine https://i.redditmedia.com/TE-u_foImwclv59KfJ0bp-WgKvACTV1nP39S_YN8Ba8.jpg?w=1024&s=bc1ee1fa5bbd529f5d506de13d51741f
Mar 22 17 20:37:47 <SpyTec> Lol
Mar 22 17 20:38:43 <ThatAstronautGuy> holy shit
Mar 22 17 20:38:45 <Shane> I downloaded the slack windows program but it has never loaded
Mar 22 17 20:38:47 <ThatAstronautGuy> irony https://cdn.discordapp.com/attachments/279692806442844161/294208310901473281/unknown.png
Mar 22 17 20:39:13 <Shane> 48GB?what?
Mar 22 17 20:39:18 <Deimos> yeah I don't know what's up with that page's design now, I don't remember it looking like that when I read the article originally
Mar 22 17 20:39:38 <ThatAstronautGuy> slack is pretty badly done
Mar 22 17 20:39:43 <creesch> It looks absolutely fine on mobile which is where I am reading it.
Mar 22 17 20:39:44 <ThatAstronautGuy> all this for 5 teams https://cdn.discordapp.com/attachments/279692806442844161/294208549205311512/unknown.png
Mar 22 17 20:40:08 <creesch> Well every electron app is basically like running another chrome instance
Mar 22 17 20:40:38 <creesch> Which is mostly what it is, the website packaged in a window with some gimmicks on top.
Mar 22 17 20:40:44 <creesch> Same for the discord app.
Mar 22 17 20:40:51 <ThatAstronautGuy> https://cdn.discordapp.com/attachments/279692806442844161/294208832429883392/unknown.png
Mar 22 17 20:40:57 <creesch> Also atom itself is terrible in that regard.
Mar 22 17 20:41:01 <ThatAstronautGuy> discord is a lot less resource intensive though
Mar 22 17 20:41:08 <creesch> Ironically Microsoft did it much better.
Mar 22 17 20:41:15 <creesch> Visual Studio code is amazing.
Mar 22 17 20:41:25 <ThatAstronautGuy> i have literally twice as many discord teams as slack teams, and there are 3 slack processes using more than my discord process
Mar 22 17 20:41:34 <creesch> Seriously, I highly recommend it for everyone doing some coding
Mar 22 17 20:41:41 <ThatAstronautGuy> yeah, visual studio is nice
Mar 22 17 20:41:49 <ThatAstronautGuy> makes me wish i wasnt doing java right now
Mar 22 17 20:42:04 <creesch> ThatAstronautGuy I don't have to use discord anymore as I made an irc gateway.
Mar 22 17 20:42:08 <SpyTec> I haven't tried VS Code yet
Mar 22 17 20:42:17 <ThatAstronautGuy> im in too many discords to use IRC
Mar 22 17 20:42:22 <SpyTec> Been using Atom for one thing, Sublime for another 😛
Mar 22 17 20:42:54 <ThatAstronautGuy> but i do use IRC all the time to chat with some of my friends
Mar 22 17 20:43:00 <creesch> @ThatAstronautGuy nah, did you see the thing I made? Every discord server becomes an irc server.
Mar 22 17 20:43:10 <creesch> I am using it right now.
Mar 22 17 20:43:40 <creesch> https://usercontent.irccloud-cdn.com/file/aeZgTizu/Screenshot_20170322-214326.png
Mar 22 17 20:44:08 <ThatAstronautGuy> but can i see a channel list on the side and stuff?
Mar 22 17 20:44:13 <ThatAstronautGuy> and access multiple teams easily?
Mar 22 17 20:44:18 <creesch> Yeah
Mar 22 17 20:44:21 <creesch> No problem
Mar 22 17 20:44:24 <ThatAstronautGuy> 😮
Mar 22 17 20:44:35 <Deimos> did you figure out how to get private chats to work with it?
Mar 22 17 20:44:37 <Shane> That looks disgusting
Mar 22 17 20:44:44 <ThatAstronautGuy> its beautiful shane
Mar 22 17 20:44:49 <ThatAstronautGuy> its all you need
Mar 22 17 20:44:52 <SpyTec> Did I just hear ThatAstronautGuy get a hard-on for what creesch has done?
Mar 22 17 20:44:55 <ThatAstronautGuy> yes
Mar 22 17 20:44:56 <creesch> Deimos yup
Mar 22 17 20:44:58 <ThatAstronautGuy> not the first time tbh
Mar 22 17 20:45:10 <ThatAstronautGuy> creesch, how do i use this?
Mar 22 17 20:45:14 <creesch> Personal messages get their own server.
Mar 22 17 20:46:02 <ThatAstronautGuy> i want
Mar 22 17 20:46:06 <SpyTec> https://github.com/creesch/discordIRCd
Mar 22 17 20:46:25 <creesch> https://github.com/creesch/discordIRCd
Mar 22 17 20:46:29 <creesch> Right
Mar 22 17 20:46:36 <SpyTec> Too fast for you
Mar 22 17 20:47:15 <creesch> Shane and that is absolutely fine, there are tons of ircclients and even this one can be customized a ton. So I am not stuck to that clutterfuck of a discord client.
Mar 22 17 20:47:28 <creesch> Best of all, I don't have to see people spamming reactions
Mar 22 17 20:47:37 <creesch> Which is a win in my book.
Mar 22 17 20:47:51 <Shane> I like the discord client
Mar 22 17 20:48:04 <creesch> That's cool
Mar 22 17 20:48:09 <Shane> ¯\_(ツ)_/¯
Mar 22 17 20:48:14 <creesch> Nobody is forcing you not to use it.
Mar 22 17 20:48:18 <ThatAstronautGuy> your installation instructions are literally just "run `npm install`"
Mar 22 17 20:48:26 <ThatAstronautGuy> how do i do inline code on discord?
Mar 22 17 20:48:37 <creesch> Backticks
Mar 22 17 20:48:44 <ThatAstronautGuy> got it
Mar 22 17 20:48:45 <ThatAstronautGuy> yeah
Mar 22 17 20:48:52 <ThatAstronautGuy> anyway, my first question
Mar 22 17 20:48:53 <creesch> Also yeah, provided you have node installed.
Mar 22 17 20:49:02 <creesch> I should probably make it a bit more verbose
Mar 22 17 20:49:10 <ThatAstronautGuy> yes
Mar 22 17 20:52:27 <creesch> Deimos good article that indeed covers the essence of what bothers me most about the recent react stuff.
Mar 22 17 20:52:32 <ThatAstronautGuy> Deimos that is a great article, and im going to take your word that his website is just broken, since it very much so looks that way. thanksk for sharing! I really like what he said
Mar 22 17 20:53:05 <ThatAstronautGuy> his proposal of a happy medium between terminals and what we have is great
Mar 22 17 20:54:18 <creesch> It sort of is what many power users already do. I often have a terminal window open for a lot of basic tasks and switch to apps for other things.
Mar 22 17 20:54:35 <ThatAstronautGuy> https://cdn.discordapp.com/attachments/279692806442844161/294212284752986112/unknown.png
Mar 22 17 20:54:38 <creesch> He misses one point though, webapps don't have to be slow and cumbersome
Mar 22 17 20:54:42 <ThatAstronautGuy> i do all my IRC through putty now
Mar 22 17 20:54:57 <ThatAstronautGuy> to my server at home
Mar 22 17 20:54:59 <creesch> That is something recent even, or rather a regression.
Mar 22 17 20:55:05 <ThatAstronautGuy> and while it works great, it could use a lot more
Mar 22 17 20:55:26 <creesch> For a brief moment a few years ago we actually had a really good web experience.
Mar 22 17 20:55:26 <ThatAstronautGuy> i have no problem using ctrl+n/p to change tabs
Mar 22 17 20:55:42 <ThatAstronautGuy> but i wish i could see when new messages arrived in others
Mar 22 17 20:55:58 <ThatAstronautGuy> someone needs to arrive at a happy medium
Mar 22 17 20:56:23 <ThatAstronautGuy> i should probably stop talking and finish studying javafx, i have a test in 30 minutes...
Mar 22 17 20:56:38 <creesch> Yeah for irc I rather still use a non terminal app. Since you are effectively multitasking between channels and pure text doesn't always work all that well there.
Mar 22 17 20:56:47 <ThatAstronautGuy> yup
Mar 22 17 20:56:57 <ThatAstronautGuy> copying links is always a pain
Mar 22 17 20:59:05 <creesch> Hah
Mar 22 17 20:59:14 <creesch> I am currently involved in a migration project
Mar 22 17 20:59:41 <creesch> The app being migrated currently runs on openvms and is projected to the client machines over X
Mar 22 17 20:59:46 <ThatAstronautGuy> i always end up with a random x in my copied links, since that is what DVTM uses to separate windows
Mar 22 17 20:59:51 <creesch> Basically they are thin clients.
Mar 22 17 21:00:03 <ThatAstronautGuy> cool
Mar 22 17 21:00:03 <creesch> So no copy pasting, no nothing.
Mar 22 17 21:00:08 <creesch> But
Mar 22 17 21:00:11 <creesch> It is fast
Mar 22 17 21:00:19 <ThatAstronautGuy> fast is good
Mar 22 17 21:00:48 <ThatAstronautGuy> i have a putty session on my laptop and desktop, and i can barely see a difference between me typing on one, and the character appearing on the other
Mar 22 17 21:01:32 <creesch> Nah in this case it is nice that it is fast but the interface itself is archaic as hell.
Mar 22 17 21:01:38 <ThatAstronautGuy> rip
Mar 22 17 21:14:22 <creesch> https://www.reddit.com/r/modnews/comments/60w4x6/slug/dfa1xny?context=3
Mar 23 17 01:54:34 <Phallindrome> =) I'm glad I managed to get that out of him
Mar 23 17 01:55:11 <Deimos> him :b
Mar 23 17 01:55:17 <Phallindrome> thank you!
Mar 23 17 01:58:08 <cuddlefishcat> real good questions
Mar 23 17 18:28:27 <Deimos> speaking of electron apps https://github.com/Microsoft/vscode/issues/22900
Mar 23 17 18:28:42 <Deimos> 13% CPU usage for the blinking cursor in VSCode
Mar 23 17 19:25:52 <SpyTec> Oh I didn't know VS Code was made with Electron.. sort of makes me wonder why I should switch from Subline to it
Mar 23 17 19:56:00 <creesch> SpyTec entirely depends on what you want with it. VS Code is more of an idea than sublime is and actually one of the smoothest electron apps I know.
Mar 23 17 19:56:08 <creesch> It honestly is better than atom imho
Mar 23 17 19:56:43 <SpyTec> It's probably better than Atom that's for sure
Mar 23 17 19:57:10 <SpyTec> I should probably give it a try before anything else
Mar 23 17 19:57:25 <creesch> In any case, I can't compare it to sublime as I don't have a license for it and likely never will get on.
Mar 23 17 19:57:48 <creesch> At home I have full access to all the intelij products and at work I can't use a personal license so use things like visual studio code.
Mar 23 17 19:58:00 <SpyTec> I've sort of used the free version. Just closing the thing every time lol
Mar 23 17 19:58:30 <SpyTec> Not coding that much in it anymore
Mar 23 17 19:59:05 <SpyTec> IntelliJ is so good. I can't wait for Rider to release
Mar 23 17 19:59:17 <creesch> I am just grateful jetbrains offers full licenses for open source projects. Though if VS code had been around when we got the jetbrains webstorm license I might not even have tried.
Mar 23 17 20:00:14 <SpyTec> Well having all the lDE features is nice though
Mar 23 17 20:00:26 <SpyTec> I'm a student so I get all the licenses too
Mar 23 17 20:00:29 <creesch> True, but most of the ones we use also are part of vs code
Mar 23 17 20:00:43 <creesch> Vs code has git integration, tons of plugins, code completion, etc
Mar 23 17 20:01:12 <TheAppleFreak> You should at least give Sublime a try
Mar 23 17 20:01:25 <creesch> I don't see why.
Mar 23 17 20:01:27 <TheAppleFreak> It's a very good editor OOTB, IMO
Mar 23 17 20:01:29 <SpyTec> Well if you want to code for a few hours, opening up webstorm still feels like the better option
Mar 23 17 20:01:57 <SpyTec> VS Code is still just an editor 😛
Mar 23 17 20:03:32 <creesch> Not really
Mar 23 17 20:04:16 <creesch> An IDE usually consists of an editor, build tools, debugger, intelligent code completion.
Mar 23 17 20:04:21 <creesch> VS code has all that
Mar 23 17 20:04:28 <SpyTec> Oh really?
Mar 23 17 20:05:00 <creesch> Yah
Mar 23 17 20:07:16 <creesch> It is effectively an IDE
Mar 23 17 20:07:27 <creesch> So is atom I guess
Mar 23 17 20:07:50 <creesch> Line really becomes blurry these days.
Mar 23 17 20:08:31 <SpyTec> Wouldn't say Atom is tbh
Mar 23 17 20:08:42 <SpyTec> If you have plugins, you can effectively make it into one
Mar 23 17 20:08:48 <SpyTec> A laggy one but still
Mar 23 17 20:09:07 <creesch> Well a lot of the jetbrains products also work due to plugins
Mar 23 17 20:09:39 <SpyTec> But they're still an IDE out of the box
Mar 23 17 20:09:47 <creesch> At their core they are all the same bare bones framework and each one is tailored to the language with plugins.
Mar 23 17 20:10:02 <creesch> Eh, like I said blurry lines with these sorts of things.
Mar 23 17 20:10:11 <SpyTec> 😄
Mar 23 17 20:10:24 <creesch> But I agree atom is crap
Mar 23 17 20:10:34 <creesch> Which is odd because electron was made for atom
Mar 23 17 20:10:50 <creesch> But the team behind atom itself seems to be a bit odd.
Mar 23 17 20:11:01 <creesch> Having read some github issues they are rather defensive about inane stuff.
Mar 23 17 20:11:01 <SpyTec> Isn't it made by GitHub?
Mar 23 17 20:11:05 <creesch> yeah
Mar 23 17 20:11:24 <TheAppleFreak> All I know is that it takes about a fucking minute to start on my low end tablet
Mar 23 17 20:11:26 <creesch> I think the electron team at this point is a seperate team from atom though.
Mar 23 17 20:11:31 <TheAppleFreak> While Sublime takes three seconds
Mar 23 17 20:11:50 <SpyTec> Which is good. Wouldn't want Atom team working on Electron lol
Mar 23 17 20:12:05 <creesch> We get it, you love sublime :P
Mar 23 17 20:12:57 <SpyTec> WordPad guy myself
Mar 23 17 20:13:17 <creesch> It just isn't an option for me though, would be waste of money since a majority of the time I either use a full fledged ide or am at work where I can't use a personal license
Mar 23 17 20:16:42 <SpyTec> Tbh if you're okay with startup time and it doesn't lag. There's no real reason
Mar 23 17 20:16:53 <SpyTec> If Atom didn't lag so much it would probably still be a very good editor for most
Mar 23 17 20:19:32 <SpyTec> Does VS Code support projects and can it be switched between quickly?
Mar 23 17 20:27:02 <creesch> Yes
Mar 23 17 20:27:09 <SpyTec> \ o /
Mar 23 17 20:27:40 <creesch> You can open multiple instances of it and it opens directories as projects
Mar 23 17 20:28:00 <SpyTec> Alright
Mar 23 17 22:41:50 <allthefoxes> creesch HEADS UP: we’re turning on an A/B test for the new desktop2x app,, which is like the new profile page but for all post listings (frontpage, subreddit, multis) and comments page. Targeting 0.1% of traffic, so we’ll probably get some RESissues posts about “Reddit changed and RES broke!” Users can get out of it by clearing cookies.
Mar 23 17 22:41:51 <allthefoxes> ""
Mar 23 17 22:42:16 <allthefoxes> toolbox might break for people who get in this AB
Mar 23 17 23:10:40 <tiz> if anyone comes across it, be sure to screen shot it and share with us
Mar 23 17 23:12:18 <Deimos> http://imgur.com/a/JXoEc
Mar 23 17 23:13:09 <tiz> doesnt look much different
Mar 23 17 23:15:01 <Deimos> not too much, there's a decent number of things that are somewhat different though, and of course no CSS
Mar 23 17 23:24:17 <SpyTec> Those are some big buttons
Mar 24 17 19:06:34 <MuffinMedic> creesch HOw's Discord<->IRC coming along?
Mar 24 17 19:18:45 <creesch> MuffinMedic great, have been using it for a week now.
Mar 24 17 19:19:11 <creesch> Still need to refine some things and add some stuff but in general it is working like a charm
Mar 24 17 19:19:34 <creesch> https://github.com/creesch/discordIRCd/issues
Mar 24 17 19:19:41 <creesch> This is the stuff that is still open.
Mar 24 17 19:20:01 <creesch> The ones I want to tackle first are #8 #9 and #16
Mar 24 17 19:28:18 <allthefoxes> creesch I wonder if server could just detect Nick dupes and only assign those users the four digit code
Mar 24 17 19:29:01 <creesch> Well that is the tricky bit. The way I designed it now makes even that a tad difficult.
Mar 24 17 19:29:47 <creesch> When someone joins a channel I write all the ircSafe nicknames to an object with the discord id as value in that.
Mar 24 17 19:30:12 <allthefoxes> Also curious how this works https://github.com/creesch/discordIRCd/issues/1
Mar 24 17 19:30:22 <creesch> So that way I can easily translate actions from irc to discord.
Mar 24 17 19:30:24 <allthefoxes> Because any channel you can see in discord, you're in
Mar 24 17 19:30:34 <allthefoxes> If you can't see a channel you can't join it
Mar 24 17 19:30:40 <creesch> Not for the api
Mar 24 17 19:30:43 <allthefoxes> Ah
Mar 24 17 19:31:08 <creesch> https://usercontent.irccloud-cdn.com/file/Gxk3gH6d/
Mar 24 17 19:31:14 <creesch> allthefoxes ^
Mar 24 17 19:31:25 <allthefoxes> Well that's interesting
Mar 24 17 19:31:35 <allthefoxes> 🤔
Mar 24 17 19:32:04 <Deimos> secret channels EXPOSED
Mar 24 17 19:32:23 <allthefoxes> #6 will SHOCK you
Mar 24 17 19:33:11 <allthefoxes> More interested in the topics
Mar 24 17 19:33:21 <SpyTec> >modmins
Mar 24 17 19:33:25 <SpyTec> Terrible name
Mar 24 17 19:33:58 <Alipoodle> Music and Sport 🤔 10 and 12
Mar 24 17 19:34:18 <SpyTec> Just creesch and a bunch of alts
Mar 24 17 19:35:19 <Deimos> yeah, it shows topics even if you can't access the channel? that seems bad
Mar 24 17 19:35:53 <D0cR3d> That really does
Mar 24 17 19:36:38 <D0cR3d> Say put sensitive admin info In a topic like a trouble user and whoops now anyone can see
Mar 24 17 19:36:41 <SpyTec> Oh creesch can't access that?
Mar 24 17 19:37:00 <SpyTec> Just goes to show how good Discord does stuff 😄
Mar 24 17 19:37:01 <creesch> No I don't have access to half of those channels
Mar 24 17 19:37:07 <SpyTec> GG
Mar 24 17 19:37:20 <SpyTec> Don't bother telling Discord though, they won't care
Mar 24 17 21:22:41 <MuffinMedic> Cool creesch , I'll give i a shot.
Mar 24 17 21:23:08 <MuffinMedic> Does it do auto- join chans yet?
Mar 24 17 21:30:40 <creesch> no
Mar 26 17 17:11:01 <SpyTec> creesch What do you use to get notifications for /r/toolbox mention?
Mar 26 17 17:11:23 <creesch> Uhm a service by what's his name again.
Mar 26 17 17:11:26 <creesch> Let me look it up
Mar 26 17 17:11:56 <creesch> SpyTec https://www.reddit.com/r/SubNotifications/comments/3dxono/general_information/
Mar 26 17 17:12:20 <SpyTec> Alright thanks 😛
Mar 26 17 17:13:25 <creesch> Why are you always using that tongue out emoji? Or rather, what do you intend with it
Mar 26 17 17:16:15 <SpyTec> Idk, habit I guess
Mar 26 17 17:16:30 <SpyTec> Mostly use it as a better variant of 😃
Mar 26 17 17:16:34 <SpyTec> At least to me
Mar 26 17 17:20:08 <creesch> Well that is what I figured but it actually means you where not serious, kidding etc ;)
Mar 26 17 17:20:41 <SpyTec> Depends who you ask
Mar 26 17 17:22:55 <creesch> Nah pretty sure the common use is to make clear you say something jokingly
Mar 26 17 17:22:57 <Madbrad200> I know someone who uses :P in every sentence
Mar 26 17 17:23:15 <Madbrad200> *slightly* infuriating lol
Mar 26 17 17:23:44 <creesch> Anyway, I don't mind. Was mostly curious.
Mar 26 17 17:23:50 <creesch> but it might get you misunderstood :)
Mar 26 17 17:24:38 <SpyTec> Just look at the face on Discord! It looks like a happy person
Mar 26 17 17:48:06 <creesch> ffs the windows media creation tool keeps failing on multiple pcs.
Mar 26 17 17:48:21 <creesch> And of course I can't simply download an iso directly.
Mar 26 17 17:48:24 <creesch> That would be too easy.
Mar 26 17 17:49:30 <AnaMel> You can
Mar 26 17 17:49:32 <AnaMel> IIRC
Mar 26 17 17:49:39 <AnaMel> That's what I did with media creation tool
Mar 26 17 17:50:35 <creesch> No I mean it is also failing at that
Mar 26 17 17:51:05 <creesch> But the problem is that instead of downloading an iso it wants to make one and that isn't going to well.
Mar 26 17 18:15:56 <creesch> Weird it fails on the check at 85% every time. Even in a virtual machine I had around.
Mar 26 17 18:16:07 <creesch> Wonder if it is my connection
Mar 30 17 04:36:07 <Phallindrome> Hey, is there any way to tell through reddit's API whether a comment has been gilded or not?
Mar 30 17 04:43:18 <Deimos> should be in the comment data, yeah
Mar 30 17 04:47:15 <D0cR3d> Phallindrome you are looking for the `gilded` value as seen here: https://i.imgur.com/GcC0UHg.png
Mar 30 17 04:47:39 <Phallindrome> oh hey cool!
Mar 30 17 04:47:47 <Phallindrome> can't believe I didn't notice that before
Mar 30 17 04:48:46 <Phallindrome> Got curious cause of this https://www.reddit.com/r/socialism/comments/62agt3/in_response_to_the_recent_bash_the_fash_drama_on/dfl8a17/
Mar 30 17 13:04:56 <HEAVEN_OR_HECK> Hi folks, can anyone direct me to a guide to implement the Reddit verification bot we have here?
Mar 30 17 13:05:28 <HEAVEN_OR_HECK> With the latest kiddie porn scares and some cross-server attacks, I'm looking to implement this on our subreddit's server.
Mar 30 17 13:07:28 <SpyTec> HEAVEN_OR_HECK If it's a general subreddit server I don't see the point to verify to talk. I feel it would just be better to use a higher verification level
Mar 30 17 13:07:40 <SpyTec> The CP scares were a very small issue that was blown up to crazy levels
Mar 30 17 13:07:51 <HEAVEN_OR_HECK> Haha, isn't everything?
Mar 30 17 13:08:08 <SpyTec> There are bot that detects brigades, spam etc. which is probably better
Mar 30 17 13:09:28 <HEAVEN_OR_HECK> Linking server handles to Reddit accounts makes modding easier.
Mar 30 17 13:09:43 <HEAVEN_OR_HECK> We're a small sub, so spam isn't a big issue for us.
Mar 30 17 13:10:01 <HEAVEN_OR_HECK> But we do get a good number of trolls.
Mar 30 17 13:10:18 <HEAVEN_OR_HECK> A one-to-one ID just makes keeping track of people easier.
Mar 30 17 13:10:48 <HEAVEN_OR_HECK> But I'll look into the brigade bot. That is one of our concerns.
Mar 30 17 13:10:54 <SpyTec> As do every server, but with Discord moderators, higher verification level and some management bots that should be easy to handle
Mar 30 17 13:11:11 <creesch> Noku made the bot here
Mar 30 17 13:11:31 <creesch> I am sure he put it on github somewhere but I can't seem to find the conversation where he mentioned it
Mar 30 17 13:11:51 <SpyTec> I don't think he's posted it here, but I have a link to it from PMs. Noku mind if I post it here?
Mar 30 17 13:12:07 <HEAVEN_OR_HECK> After seeing how easy it is to dodge bans on Discord, I've been a skeptic.
Mar 30 17 13:12:32 <HEAVEN_OR_HECK> I we suspect some users to be dodgers with new names.
Mar 30 17 13:12:54 <SpyTec> Even then, people could just create a throwaway on reddit, connect to your Discord and still be fine
Mar 30 17 13:13:03 <HEAVEN_OR_HECK> So a more grounding ID is desirable since there are a lot less users with a seasoned Reddit account.
Mar 30 17 13:13:04 <Noku> Sure
Mar 30 17 13:13:06 <SpyTec> https://github.com/nokusukun/popular-bot
Mar 30 17 13:13:34 <HEAVEN_OR_HECK> Cultivated throwaways have been rarer, thankfully.
Mar 30 17 13:13:48 <HEAVEN_OR_HECK> Most troll throwaways we've dealt with are fresh.
Mar 30 17 13:13:49 <SpyTec> Verifying to their reddit account should be for embedding rights. Or if it has a higher pre-requisite like this server
Mar 30 17 13:14:24 <SpyTec> I've not tried anything but gf's bot, but look into Dyno or similar bots 😛
Mar 30 17 13:14:39 <HEAVEN_OR_HECK> Our community nominates users for embedding privileges, so that has been working for us haha
Mar 30 17 13:14:54 <HEAVEN_OR_HECK> Alrighty.
Mar 30 17 13:15:02 <HEAVEN_OR_HECK> Thanks for the wisdom, SpyTec
Mar 30 17 13:15:11 <HEAVEN_OR_HECK> Thanks for the share, Noku
Mar 30 17 13:15:47 <Noku> I am planning to write a proper public verification bot
Mar 30 17 13:16:11 <creesch> Hrm interesting... Noku is not showing up in irccloud when connected through discordIRCd
Mar 30 17 13:16:19 <creesch> I wonder why...
Mar 30 17 13:16:37 <Noku> Mhhhm
Mar 30 17 13:16:42 <HEAVEN_OR_HECK> Noku What are your general plans for it? What feature set suits a public verification bot?
Mar 30 17 13:17:13 <Noku> Currently just thinking of a 1 discord account = 1 reddit account thing
Mar 30 17 13:17:22 <SpyTec> One that either sends a PM to a bot, or in Noku's case just authorizes the bot to see your username. With that you can connect the reddit username to the Discord one
Mar 30 17 13:17:29 <SpyTec> Then bot just adds the role verified or something
Mar 30 17 13:17:37 <Noku> Yeah.
Mar 30 17 13:17:39 <HEAVEN_OR_HECK> Is there a way for the bot to record the Reddit username as a note?
Mar 30 17 13:17:53 <Noku> I mean, I can just host a DB so you only really need to verify once.
Mar 30 17 13:18:30 <Noku> The current implementation of Popularbot is compact and hacky as possible and some form of persistent storage is necessary.
Mar 30 17 13:18:45 <SpyTec> You can look through this to get ideas of a note system, verification system etc. https://github.com/RheaAyase/Botwinder.discord
Mar 30 17 13:19:34 <HEAVEN_OR_HECK> This sums up my interest in such a feature: https://feedback.discordapp.com/forums/326712-discord-dream-land/suggestions/15654363-link-a-reddit-account-to-access-channels
Mar 30 17 13:19:36 <SpyTec> Botwinder itself has notes that you can add yourself, adds one with kick, ban, etc. command, and also shows link to their verified profile. But the bot is limited to a set few of people atm 😛
Mar 30 17 13:19:42 <Noku> Yeah, I had some idea regarding server safeguarding
Mar 30 17 13:20:16 <creesch> Wait Noku why don't you have your reddit name?
Mar 30 17 13:20:28 <HEAVEN_OR_HECK> I understand there is no perfect solution, but I think this measure could suit the pace of our server sign-ups while precluding casual trolling.
Mar 30 17 13:20:53 <Noku> Hmmmm, I never really use reddit other than the news and /r/newsokur
Mar 30 17 13:21:06 <creesch> I mean...
Mar 30 17 13:21:17 <creesch> this server sets everyone's nickname to their reddit nickname
Mar 30 17 13:21:21 <creesch> Except yours it appears
Mar 30 17 13:21:25 <SpyTec> *changes nickname to spez*
Mar 30 17 13:21:34 <Noku> I was here before I made the bot.
Mar 30 17 13:21:40 <SpyTec> No excuse!
Mar 30 17 13:21:45 <HEAVEN_OR_HECK> *Before time began...*
Mar 30 17 13:22:08 <HEAVEN_OR_HECK> *...there was Noku, the Botsmith of the Mods.*
Mar 30 17 13:22:37 <Noku> But yeah, I'm planinng a featured discord bot that's basically for server management.
Mar 30 17 13:22:59 <Noku> I like the idea of popular bot but it's really sad in it's current state.
Mar 30 17 13:23:52 <SpyTec> Noku I mean, although I like the idea of a good bot for once, one that can compete with Botwinder's features.. Discord devs and the API is terrible, not worth the effort
Mar 30 17 13:24:10 <Noku> I've worked with worse.
Mar 30 17 13:24:39 <SpyTec> If you bot becomes a bit larger, it will get several disconnects a second sometimes. And devs will say that's normal behaviour
Mar 30 17 13:24:55 <SpyTec> Due to disconnects happening so frequently, you will also be ratelimited and your key will be reset
Mar 30 17 13:25:04 <Noku> There's sharding in any case.
Mar 30 17 13:25:09 <Noku> Ahh that though.
Mar 30 17 13:25:16 <SpyTec> Botwinder has sharding, doesn't help with that 😛
Mar 30 17 13:25:28 <HEAVEN_OR_HECK> When I take a broader look at why I'm seeking this ID feature, it's to add a layer of accountability that I think Discord currently lacks. Just like Reddit, I feel a bit blinded when it comes to back end verification. I understand we can't be handed IP addresses and such, but I think we could use something beyond what is given.
Mar 30 17 13:26:02 <Noku> I mean not everyone has hundreds of year old reddit accounts for verification.
Mar 30 17 13:26:12 <HEAVEN_OR_HECK> Of course.
Mar 30 17 13:26:35 <HEAVEN_OR_HECK> But we know the difference between an authentic history and a manufactured one.
Mar 30 17 13:26:45 <HEAVEN_OR_HECK> There are multiple layers to look at.
Mar 30 17 13:26:50 <Noku> True.
Mar 30 17 13:27:04 <HEAVEN_OR_HECK> This isn't to rule out any further assessment.
Mar 30 17 13:27:27 <HEAVEN_OR_HECK> I'd like a tool to help us make the same assessments we can on Reddit.
Mar 30 17 13:27:38 <HEAVEN_OR_HECK> Haha, I don't mean to sound demanding. I have no demands.
Mar 30 17 13:27:51 <HEAVEN_OR_HECK> Just thinking out loud here.
Mar 30 17 13:27:58 <SpyTec> I'm sure there are bots who does reddit verification that isn't PopularBot or Botwinder though
Mar 30 17 13:28:00 <SpyTec> Just have to look 😛
Mar 30 17 13:28:28 <HEAVEN_OR_HECK> It's a relatively new platform and it seems to have taken off on Reddit pretty recently too
Mar 30 17 13:28:45 <HEAVEN_OR_HECK> I don't think it's an old concern
Mar 30 17 13:28:48 <HEAVEN_OR_HECK> Just my impression
Mar 30 17 13:28:49 <Noku> SpyTec I'm building a new python discord bot framework. Should be pretty sweet.
Mar 30 17 13:29:29 <SpyTec> Which library will it use?
Mar 30 17 13:29:36 <Noku> I mean it's the same modular yada yada.
Mar 30 17 13:29:41 <Noku> I mean there's only discord.py
Mar 30 17 13:29:56 <Noku> But implementing commands are pretty neat imo
Mar 30 17 13:30:01 <Noku> ```python
@on.message("echo")
async def echo(event, client):
await client.send_message(event.message.channel, " ".join(event.args[1:]))```
Mar 30 17 13:30:05 <SpyTec> Ah right
Mar 30 17 13:30:46 <SpyTec> Don't think too much into making it suitable for bigger bots, as they'll get fucked by the API either way 😛
Mar 30 17 13:31:02 <Noku> haha, true.
Mar 30 17 13:32:31 <SpyTec> I'll hate on Discord any day
Mar 30 17 22:29:44 <lingrush> same
Mar 31 17 16:17:37 <tiz> anyone know why the sub count is different on the new ad pages than the subreddit itself?
<https://ads.reddit.com/api/audience/communities/?filter=casualconversation> `1,309,461`
<https://www.reddit.com/r/CasualConversation/about/traffic/> `198,335`
Mar 31 17 16:20:18 <SpyTec> Doesn't your first link entail more subreddits?
Mar 31 17 16:20:26 <SpyTec> Or is it specifically CasualConversation?
Mar 31 17 16:22:44 <Shane> Admin fuck up probably
Mar 31 17 16:23:31 <tiz> it's for all subreddits though, they all have different counts
Mar 31 17 16:23:47 <tiz> https://cdn.discordapp.com/attachments/279692806442844161/297405628945661953/Screenshot_1.png
Mar 31 17 16:24:31 <SpyTec> What about r/EliteDangerous?
Mar 31 17 16:24:50 <tiz> https://ads.reddit.com/api/audience/communities/?filter=EliteDangerous
Mar 31 17 16:25:04 <tiz> `9,919,121`
Mar 31 17 16:25:46 <SpyTec> Alright
Mar 31 17 16:30:56 <Shane> Anyone actually used this to grow a sub? is it any good?
Mar 31 17 16:32:02 <tiz> i used the old one before, it gave me about 1/3 more subscribers than usual
Mar 31 17 16:32:07 <tiz> per day
Mar 31 17 16:32:35 <Shane> Thats a decent ammount, How much did you spend on it? and for how long?
Mar 31 17 16:34:40 <D0cR3d> Don't subs get free ads?
Mar 31 17 16:35:10 <tiz> yeah, not the promoted link ads though
Mar 31 17 16:35:14 <tiz> sometimes
Mar 31 17 16:35:36 <tiz> also i paid for it before they started promoting subs for free using the sidebar ad
Mar 31 17 16:36:02 <tiz> but i dont remember how much , i think like $5 for a month, maybe it was ten idk
Mar 31 17 16:37:18 <Shane> I've submitted subreddit ads twice now, just not getting picked
Mar 31 17 16:42:59 <Shane> I think they hate me
Mar 31 17 16:43:12 <Phallindrome> For subscriber discrepancies: could it be that reddit is counting IPs without accounts who browse the subreddit?
Mar 31 17 16:43:42 <tiz> might be a hiccup? a few admin replied aabout it maybe being wrong https://www.reddit.com/r/changelog/comments/62fake/weve_launched_a_completely_revamped_selfserve_ads/dfmg3ek/
Mar 31 17 16:43:48 <Phallindrome> This appeared in SRC https://www.reddit.com/r/The_Donald/comments/62lh2b/can_confirm_the_donald_has_over_6_million/
Mar 31 17 16:48:43 <SpyTec> "This is fucking sickening how far they have gone to even supress the number of subscribers. Spez needs to go."
Mar 31 17 16:48:49 <SpyTec> I like how that's most upvoted assumption
Mar 31 17 16:50:12 <Phallindrome> =D According to this /r/BlueMidterm2018 has 74k users
Mar 31 17 16:50:27 <Shane> Is there a way to schedule the css to be changed? for april fools
Mar 31 17 16:50:36 <SpyTec> Bot perhaps?
Mar 31 17 16:50:42 <Shane> r/Pigifs apparently doesnt exist according to the ads
Mar 31 17 16:50:43 <SpyTec> Upload all images now, then do a bot that changes CSS on a specific time
Mar 31 17 16:51:02 <SpyTec> Shane Literally 0 subs
Mar 31 17 16:51:16 <Shane> Doesnt even show up for me
Mar 31 17 16:51:40 <Shane> r/Pigs does and thats smaller. something is fishy
Mar 31 17 16:52:07 <Phallindrome> pigifs is pretty new though isn't it?
Mar 31 17 16:52:27 <SpyTec> Cached data that's not really the right value
Mar 31 17 16:52:32 <SpyTec> Is my guess
Mar 31 17 16:52:44 <Shane> Couple months now, not sure why it wouldnt show up
Mar 31 17 18:12:22 <Deimos> tiz I'm pretty sure that "subscribers" is supposed to be something closer to "visitors", an estimate of how many ad impressions you'd get
Mar 31 17 18:17:27 <SpyTec> There is no way /r/EliteDangerous is getting close to 1mil "visitors". What would that be, month?
Mar 31 17 18:19:04 <SpyTec> It also states that we get 5.9m daily impressions compared to the 3.5m *monthly* pageview we see in traffic stats
Mar 31 17 18:19:45 <Phallindrome> what are your monthly uniques?
Mar 31 17 18:21:01 <beelzeybob> I've always suspected more people were viewing than we're let on though
Mar 31 17 18:21:52 <SpyTec> 200k uniques per month
Mar 31 17 18:21:58 <beelzeybob> once my sub only had around 150 pople browsing at the time, and I removed a made up rumor within 3 mins
Mar 31 17 18:22:23 <beelzeybob> then there was a huge thread on the BioWare forums about how around 50 people claimed that rumor was on reddit and they saw it
Mar 31 17 18:41:05 <Deimos> the "users here now" count is only *logged-in* people, so there can definitely be way more
Mar 31 17 18:42:03 <SpyTec> Still, from 200k a month to 1mil daily?
Mar 31 17 18:42:23 <Deimos> it could be ad impressions, which is multiple per viewer
Mar 31 17 18:42:40 <Deimos> I don't know what their intention is supposed to be, but that would be my guess
Mar 31 17 18:42:44 <SpyTec> Alright
Mar 31 17 19:59:56 <tiz> They commented on the chamgelog about what the issue was
Mar 31 17 20:00:10 <tiz> It's for visitors in 24 hours
Mar 31 17 20:01:37 <Phallindrome> Well that's just bizarre. There's no way my 10k sub gets 74k daily visitors
Mar 31 17 20:01:45 <tiz> https://www.reddit.com/r/changelog/comments/62fake/weve_launched_a_completely_revamped_selfserve_ads/dfnt0lu/
Mar 31 17 20:06:25 <SpyTec> Right, so we have 90k daily unique visitors
Mar 31 17 20:06:28 <SpyTec> I don't buy it
Mar 31 17 20:11:20 <Deimos> T_D is sure freaking out about these stats
Mar 31 17 20:16:01 <Phallindrome> tbf, its big if true
Mar 31 17 22:46:25 <Chiyo> hey, what permissions are needed to edit automod?
Mar 31 17 22:46:41 <Chiyo> `config`, `wiki`, `config+wiki`?
Mar 31 17 22:47:41 <SpyTec> In theory just config.. but since it's a wiki page I don't know
Mar 31 17 22:47:49 <SpyTec> Creesch's modding 101 probably goes into it though
Mar 31 17 22:49:37 <SpyTec> Ehh I have no idea
Mar 31 17 22:50:09 <D0cR3d> Chiyo just config
Mar 31 17 22:50:14 <D0cR3d> wiki is for other wiki stuff
Mar 31 17 22:53:19 <Chiyo> ahh
Mar 31 17 22:53:47 <Chiyo> yea i wasn't sure as it used to be just wiki iirc
Mar 31 17 22:57:17 <SpyTec> Everything under wiki/config requires config permissions to edit 😛
Apr 01 17 03:55:00 <Chiyo> hey, is AM down?
Apr 01 17 04:01:54 <Meltingteeth> I heard someone on the /r/Videos Discord mention it. I think it is.
Apr 01 17 04:02:21 <Meltingteeth> https://www.reddit.com/r/bugs/comments/62q5xl/if_your_comment_is_not_appearing_in_a_thread_its/
Apr 01 17 04:02:43 <Meltingteeth> Chiyo
Apr 01 17 04:03:09 <Chiyo> Meltingteeth wasn't it you that mentioned it? :P
Apr 01 17 04:03:29 <Meltingteeth> ...Naaaah.
Apr 02 17 22:19:50 <Zeno> https://www.reddit.com/r/modclub/comments/62l7t0/subreddit_statistics_and_splunk_light_free_edition/
Apr 03 17 17:59:27 <Zirr> Hey, anyone has some automod code for shadowbanned users?
Apr 03 17 18:14:11 <D0cR3d> For what Zirr
Apr 03 17 18:14:22 <Zirr> For telling people they are shadowbanned
Apr 03 17 18:15:22 <D0cR3d> So you want automod to tell Reddit shadow banned people that they are such?
Apr 03 17 18:15:37 <D0cR3d> Or like a macro a mod can use to tell them
Apr 03 17 19:20:30 <Zirr> The first one
Apr 03 17 19:20:37 <Zirr> If that exists
Apr 03 17 19:21:22 <D0cR3d> I don't think you can detect Reddit shadow banned users via automod
Apr 03 17 19:24:25 <Zirr> Hm
Apr 03 17 19:25:00 <SpyTec> Can't you enable "show shadowbanned in modqueue" subreddit setting?
Apr 03 17 19:25:01 <Zirr> Can it check total karma? They'd have a 0 or just n/a
Apr 03 17 19:25:12 <Zirr> I do have it enabled
Apr 03 17 19:25:31 <SpyTec> https://i.imgur.com/75WV9YA.png
Apr 03 17 19:25:33 <Zirr> I just want to automate it in true factorio faction
Apr 03 17 19:25:41 <SpyTec> Ah no
Apr 09 17 02:30:03 <PM-ME-YOUR-TITS-GIRL> Anyone know if it's possible to set an individual up as an approved usbmitter across a list of 10 subreddits? I've got about 10 throw away accounts I'd like to approve across a bunch of my new cat subreddits. Is this something mod toolbox can do?
Apr 09 17 04:01:31 <allthefoxes> Hmm, not easily I think
Apr 09 17 04:01:43 <allthefoxes> toolbox would make it easier, but its still a pain
Apr 09 17 05:35:30 <PM-ME-YOUR-TITS-GIRL> allthefoxes I think awkwardtheturtle may have a work around (via toolbox). Mod another account of mine to all the subs then globally approve certain throw away accounts used to fill my subs. I'll give this a go. Right now I'm still just scrounging for content to fill the subs with to make them active. I'm zoning out so I'll give this a try tomorrow.
Apr 09 17 05:36:43 <PM-ME-YOUR-TITS-GIRL> Odd question. Even if a user is an approved submitter, each post they make still must be "approved" in the mod Q?
Apr 09 17 05:41:01 <cuddlefishcat> I believe so, but it will still show up on the subreddit while approval is pending
Apr 09 17 06:00:03 <PM-ME-YOUR-TITS-GIRL> Thanks cuddle. Moding is something I'm not experienced with so every thing is fairly new to me. I love learning new stuff though.
Apr 10 17 01:54:42 <boredguy8> Anyone else had issues with scheduled posts not going up?
Apr 10 17 01:56:21 <boredguy8> https://www.reddit.com/r/AutoModerator/comments/64gppt/problem_with_scheduled_posts/
Apr 10 17 16:03:20 <mbetts> now that you mention it
Apr 10 17 16:03:35 <mbetts> I tried setting a weekly post up for /r/Steel_Division
Apr 10 17 16:04:23 <mbetts> and it refused to acknowledge me at all, even though I copied it over from weekly posts on another sub I have
Apr 11 17 02:17:30 <boredguy8> same thing happened again today
Apr 11 17 02:17:49 <boredguy8> can you chime in, mbetts, so they get the idea it isn't isolated?
Apr 15 17 03:18:52 <Chiyo> hey, just to check - AM does the priority by highest number first, right?
Apr 15 17 03:21:34 <ThatAstronautGuy> it runs down the list
Apr 15 17 03:48:14 <thirdegree> Chiyo yes
Apr 19 17 05:05:25 <Zeno> For those interested in my progress with Splunk and subreddit metrics https://cdn.discordapp.com/attachments/279692806442844161/304120280748523520/splunk1.png
Apr 19 17 05:18:43 <Phallindrome> Interesting! Did you need to scrape and import data yourself?
Apr 19 17 12:39:54 <Zeno> Yeah just using PRAW
Apr 19 17 12:40:09 <Zeno> I have Splunk monitoring a file so no manual imports needed
Apr 19 17 17:01:40 <mbetts> yo so is anyone having issues setting up automod weekly posts?
Apr 19 17 17:01:53 <mbetts> I can't get one to be set up at all
Apr 19 17 17:05:15 <beelzeybob> Not that I know of.. I just reconfigured ours last night with no problem
Apr 19 17 17:05:36 <beelzeybob> What are you trying to update it with, and what URL page?
Apr 19 17 17:06:18 <beelzeybob> Also, are you messaging automod afterwards?
Apr 19 17 17:07:10 <mbetts> Yeah, I have a weekly thread already set up on another sub
Apr 19 17 17:07:25 <mbetts> so it's not like I haven't done this before 😛
Apr 19 17 17:07:35 <mbetts> I'm sending the msg, but not getting any reply
Apr 19 17 17:07:40 <beelzeybob> Ah
Apr 19 17 17:07:58 <mbetts> ```###### If you edit this page, you must [click this link, then click "send"](http://www.reddit.com/message/compose/?to=AutoModerator&amp;subject=Steel_Division&amp;message=schedule) to have AutoModerator re-load the schedule from here
---
first: "April 19, 2017 20:00"
repeat: 1 week
sticky: 1
distinguish: true
title: "Weekly /r/Steel_Division Deck/Replay Thread [{{date %d/%m/%y}}]"
text: |
Welcome to the weekly deck/replay thread. Post your decks here for tips and improvements by other players! A few rules first though.
* One deck per post! If you want more than one deck reviewed, just submit them as multiple top level comments.
* Including an image of your deck is a must! It is easier for others to review your decks this way.
* All images should be posted through [imgur](http://imgur.com/) or another reputable image hosting site.
* All replays should be posted on the [hosting site](http://sd-replays.net/replay-list) and should be a direct download link.
* If you are new to Steel Division and want to get answers quick or just want to ask around, visit our discord at [this link.](https://discordapp.com/invite/3k3cVjJ)
---
```
Apr 19 17 17:07:58 <beelzeybob> Hm I didn't notice a rpely either
Apr 19 17 17:08:12 <mbetts> have I been stupid and missed something?
Apr 19 17 17:08:17 <beelzeybob> But our newest thread went up without a problem
Apr 19 17 17:08:41 <mbetts> right, I'll wait and see if it gets put up
Apr 19 17 17:08:50 <mbetts> I was just used to getting a reply that's all
Apr 19 17 17:08:59 <Deimos> if you don't get a reply it's almost certainly not going to work
Apr 19 17 17:09:19 <Deimos> the indentation on that looks wrong, the stuff below the `text: |` line has to be indented *further* than that line, not the same amount
Apr 19 17 17:09:53 <beelzeybob> Okay I just checked, the latest thread isnt updated text
Apr 19 17 17:09:55 <mbetts> right, lets try that then
Apr 19 17 17:10:01 <beelzeybob> Its fucked for me too
Apr 19 17 17:10:31 <Deimos> also make sure automod can access the wiki page, either that it's public or automod is a mod
Apr 19 17 17:12:17 <beelzeybob> Can automod still be added as a mod?
Apr 19 17 17:12:37 <beelzeybob> I think it still has a pending invite on our sub
Apr 19 17 17:13:13 <Deimos> it should accept automatically, you can try just canceling that invite and re-sending it
Apr 19 17 17:13:45 <Deimos> it seems to be pretty unreliable in a lot of ways now though, it probably just fails to accept some
Apr 19 17 17:23:35 <beelzeybob> Yay adding it as a mod worked, I got the inbox, thanks!
Apr 19 17 17:24:30 <beelzeybob> Automod stepped down as a mod about a year ago automatically even though we were using it for scheduled posts so I figured it was unneeded
Apr 19 17 18:50:53 <tiz> `sticky: 1` isn't valid for am-schedule, it can't decided which place to sticky, you'll have to do that via am configs
Apr 19 17 18:51:57 <SpyTec> `sticky: 1` is definitely valid
Apr 19 17 18:52:05 <SpyTec> We use it
Apr 19 17 18:52:16 <tiz> in the configs page yeah, but not the schedule page
Apr 19 17 18:52:30 <tiz> unless im mistaken then ignore me
Apr 19 17 18:52:40 <SpyTec> https://www.reddit.com/r/EliteDangerous/wiki/automoderator-schedule
Apr 19 17 18:52:44 <SpyTec> ¯\_(ツ)_/¯
Apr 19 17 18:54:28 <SpyTec> But yeah, I'm very sure I saw it in an announcement somewhere
Apr 20 17 19:03:40 <mbetts> So I possibly just got the weirdest msg from automod ever just now
Apr 20 17 19:04:13 <mbetts> https://puu.sh/vqE6a/55ab26fec8.png
Apr 20 17 19:04:23 <mbetts> I have no idea why it has that first part of the msg
Apr 20 17 19:08:25 <ThatAstronautGuy> lol
Apr 20 17 19:10:58 <Deimos> that's an internal staging domain, looks like someone named Kevin Dious was running automod on his staging instance for some reason
Apr 20 17 19:14:45 <SpyTec> Possibly new AutoMod maintainer ~~
Apr 20 17 19:18:29 <Deimos> maybe, should mean something's being worked on, at least
Apr 20 17 19:18:48 <SpyTec> Filtering capability for API!
Apr 20 17 19:18:48 <Deimos> should be https://www.reddit.com/user/the_other_kdot, looks like a really new employee
Apr 20 17 19:19:28 <SpyTec> Well that explains why it's being run internally
Apr 21 17 01:43:58 <picflute> best part of splunk is when you start adding reddit tools to the dashboard
Apr 21 17 01:44:21 <picflute> Zeno like auto-removal or ban actions
Apr 21 17 15:36:48 <Chiyo> does anyone know how to sanitise the placeholders in AutoMod?
Apr 22 17 18:44:05 <Boop> Has anyone had their entire subreddit config on something like github or similar before?
Apr 23 17 02:55:40 <Microshrimp> I'm sorry if this has been discussed recenlty. I haven't scrolled back too far. Is there a known issue with Automod schedule posts lately? We have a daily scheduled thread that has missed April 21, April 19th, April 17th, April 14th, April 10th, April 7th, March 24th... (more if I keep looking), and we have a Monday weekly thread that has missed the last two Mondays. I think a lot of those daily missed posts are Mondays and Fridays. This isn't a config issue becuase we set this up a LONG time ago and haven't touched lately.
Apr 23 17 02:58:35 <Microshrimp> If I knew how to make a bot I would just make our own to handle this, but I don't. 😦
Apr 23 17 03:12:22 <Deimos> Microshrimp Yeah I think something isn't working properly with it, there have been a lot of complaints
Apr 23 17 03:12:48 <Deimos> Is your config set up right on an hour? Like 8:00 exactly or something?
Apr 23 17 03:12:54 <Microshrimp> Yes, that's correct
Apr 23 17 03:13:29 <Microshrimp> I was wondering if maybe we picked a "popular time" (Mondays and Fridays seem to be the ones getting missed) and maybe the server is too busy or something
Apr 23 17 03:13:30 <Deimos> Try changing it a little off the hour, like go back to :57 or :03 or something
Apr 23 17 03:13:38 <Microshrimp> Oh excellent idea
Apr 23 17 03:13:56 <Deimos> Thats way it should be posted on a separate run of the bot and might be less likely to fail
Apr 23 17 03:14:21 <Microshrimp> Thank you for the suggestion. I'll definitely give that a try
Apr 23 17 03:14:22 <Deimos> Assuming they're still running it every 2 minutes like I used to, but I don't actually know
Apr 23 17 03:14:53 <Microshrimp> ahh ok, good point
Apr 23 17 03:15:28 <Deimos> If you change the schedule, make sure you send the message and get a response back or it hasn't updated
Apr 23 17 03:15:44 <Phallindrome> I need to use /wiki/config/automoderator-schedule right?
Apr 23 17 03:15:55 <Deimos> Sometimes it takes sending a few messages for it to work, that part is very unreliable too :/
Apr 23 17 03:15:56 <Phallindrome> Because I just tried to create that page and it said I wasn't allowed.
Apr 23 17 03:16:00 <Microshrimp> Yeah, after it missed our Monday post twice in a row I temporarily set it to post on Tuesday which worked OK, but I think a lot of people wanted it on Mondays
Apr 23 17 03:16:01 <Deimos> No /config/
Apr 23 17 03:16:13 <Microshrimp> lo lyeah, I usually have to send the message twice
Apr 23 17 03:16:18 <Phallindrome> oh, then it's already set up but hasn't worked the last three days.
Apr 23 17 03:17:11 <Deimos> Have you definitely sent the schedule message and gotten a response?
Apr 23 17 03:17:13 <Phallindrome> Well, I guess I'll find out in five hours if it works now.
Apr 23 17 03:17:19 <Phallindrome> I'm supposed to get a response?
Apr 23 17 03:17:31 <Deimos> Yeah, if you don't, it didn't work
Apr 23 17 03:17:55 <Deimos> Make sure the wiki page is accessible to automod, either public or add it as a mod
Apr 23 17 03:20:48 <Phallindrome> I thought automoderator was built in now...
Apr 23 17 03:20:56 <Phallindrome> I guess not the scheduled posts part?
Apr 23 17 03:28:38 <Deimos> Yeah that's a separate thing that just logs into the same account
Apr 23 17 03:29:00 <Phallindrome> Alright, sent and got a reply back, thank you so much!
Apr 23 17 03:29:19 <Deimos> I used to run about 5 or 6 different scripts that all went through the automod account
Apr 23 17 03:29:39 <Phallindrome> Can the actual account run more complex instructions than automod rules?
Apr 23 17 03:33:34 <Deimos> I'm not sure what you mean
Apr 23 17 04:06:54 <Phallindrome> "Make me a daily roundtable thread only if the current thread is 24 or more hours old"
Apr 23 17 04:16:04 <Deimos> Someone could make a new script to do that, but it's not currently possible, no
Apr 23 17 04:20:40 <Phallindrome> eh, oh well.
Apr 23 17 04:20:56 <Phallindrome> Next question: Can I edit an automoderator-created scheduled post after it's made?
Apr 23 17 04:25:09 <beelzeybob> you can use https://laterforreddit.com/ with a mule account
Apr 23 17 04:25:16 <beelzeybob> if it's just one post a week you need
Apr 23 17 04:34:41 <Phallindrome> Nope, daily.
Apr 23 17 04:37:09 <Deimos> no you can't edit them either, because they're just a normal post made by automod
Apr 23 17 04:45:52 <Phallindrome> Sigh. Oh well.
Apr 23 17 04:51:03 <Deimos> maybe they'll make a scheduled post widget
Apr 23 17 05:03:39 <Phallindrome> You mean like.... an actual tool for mods?
Apr 23 17 05:03:48 <Phallindrome> instead of just taking things away?
Apr 23 17 05:04:25 <Deimos> hey now, they gave you the... well... hmm...
Apr 23 17 05:04:30 <Deimos> an extra text box on the rules page?
Apr 23 17 05:10:47 <Phallindrome> <:haHAA:302103397413158922>
Apr 23 17 14:15:22 <IPv4> Does reddit have any api that is public for stats?
Apr 23 17 17:33:56 <creesch> IPv4 basically all URLs on reddit double as passive api endpoint.
Apr 23 17 17:34:13 <creesch> So you can put .json at the end of the stats page.
Apr 23 17 17:34:49 <creesch> Though I am not sure how useful that currently is.
Apr 23 17 17:35:03 <creesch> The json is a bit cryptic and stats don't show mobile visitors and a bunch more.
Apr 23 17 17:38:22 <IPv4> I wanted to do a graph of the daily gold goal
Apr 23 17 17:39:18 <creesch> Oh not sure you can get that through the api
Apr 23 17 17:39:34 <creesch> Probably need to do page scraping for that
Apr 23 17 20:52:29 <IPv4> Hm thanks
Apr 23 17 23:56:45 <justcool393> Question, is there a way to approve more than one post per request. I tried looking at the API docs, but couldn't find anything
Apr 24 17 02:14:19 <boredguy8> same here Phaillindrome, it's been a real problem for a while (https://www.reddit.com/r/pokemonduel/search?q=daily+question+megathread+for&sort=new&restrict_sr=on&t=all)
Apr 24 17 02:15:42 <boredguy8> Microshrimp & others that are having issues with automod ( Phallindrome ) make sure you're messaging /r/reddi.com so this gets bumped up priority / gives them more data
Apr 24 17 02:18:31 <Microshrimp> Good idea, boredguy8.
Apr 24 17 02:28:54 <Phallindrome> My issue was just with the automod wiki being so old that it assumed anyone using it would have the automoderator account on their team
Apr 24 17 02:29:08 <Phallindrome> so really I should be PMing those mods.
Apr 24 17 02:29:56 <Phallindrome> Oh, it's Deimorz.
Apr 24 17 02:31:07 <Phallindrome> Deimos if you're able to edit this post https://www.reddit.com/r/AutoModerator/comments/1z7rlu/now_available_for_testing_wikiconfigurable/ can you add a line like "Integrated automoderator functionality will not do scheduled posts, you must invite /u/Automoderator to your mod team to do this"?
Apr 24 17 02:32:48 <Deimos> sure, maybe I'll add a separate little section for that above the "Setting up the wiki page"
Apr 24 17 02:37:27 <Phallindrome> Thank you =)
Apr 24 17 02:43:57 <Deimos> I really should have written a "proper" instructions post for those at some point, but ¯\_(ツ)_/¯
Apr 24 17 02:44:08 <ThatAstronautGuy> lol
Apr 24 17 03:00:20 <Phallindrome> Nah, it worked except for me not knowing that one crucial fact
Apr 24 17 08:27:54 <creesch> https://www.reddit.com/r/ModSupport/comments/677rba/some_brainstorming_about_potential_widgets_in_the/
Apr 24 17 08:28:16 <creesch> I figured some people in here might have some good ideas about widgets that have some sort of automated backend.
Apr 24 17 13:34:31 <tiz> I would like to see a or sme widgets that are mod only, where only mods can see them.
Apr 24 17 13:35:48 <tiz> think something like
- # of repots on the sub
- # of modqueue items
- unusual uptick in traffic
- links to sub related resources
Just things that could make modding a little easier.
Apr 24 17 13:37:10 <Shane> I like the idea of widgets but when I think of css I think of how the sub looks not what it can do
Apr 24 17 13:47:42 <creesch> D0cR3d Simpsons did it! Seems like you beat me to the idea by two days. I tried to write a bunch of them out as much as possible. Figured that things that have clearer "requirements" are harder for admins to fuck up.
Apr 24 17 13:48:45 <creesch> Shane for many subreddits it is also largely what they can do though. Which is one more reason to like widgets though since they will be (if done well) better than css hacks.
Apr 24 17 13:49:37 <creesch> tiz that sort of stuff should just be functionality not a widget imho.
Apr 24 17 13:49:53 <tiz> true but admins
Apr 24 17 13:50:16 <creesch> Fair
Apr 24 17 13:50:25 <creesch> They promised to integrate toolbox stuff
Apr 24 17 13:50:30 <creesch> Which is a first
Apr 24 17 13:50:39 <creesch> Before we were basically ignored.
Apr 24 17 13:50:49 <tiz> toolbox widget you say
Apr 24 17 13:51:03 <creesch> No just plain toolbox integration
Apr 24 17 13:51:15 <creesch> Says it right there in the modnews post
Apr 24 17 13:51:31 <tiz> that's pretty cool, let's hope they keep at that though
Apr 24 17 13:51:36 <creesch> Also I can dox admins now since we have been in mail contact.
Apr 24 17 13:52:09 <Phallindrome> I have this really sad feeling in the pit of my stomach that they're going to neuter the tool I use most often, the history feature
Apr 24 17 13:52:59 <-Massachoosite> To view a users history you mean?
Apr 24 17 13:53:41 <Phallindrome> yes
Apr 24 17 13:54:18 <Phallindrome> it's incredibly useful all the time all over the site and if they take it over I think they'll only allow it on subs you moderate
Apr 24 17 13:54:52 <creesch> No worries, if they fuck up a toolbox tool we will still provide it where possible
Apr 24 17 13:55:00 <creesch> Toolbox isn't going away, yet...
Apr 24 17 13:55:08 <Phallindrome> <3 you have no idea how much I appreciate hearing that
Apr 24 17 13:57:40 <D0cR3d> Lol creesch we had the same idea. Feel free to hash out the stuff from my post
Apr 24 17 13:59:08 <creesch> Phallindrome The only issue is the amount of developers available for toolbox once we can start working on the port. Currently it is mostly just me busy with work, one relatively new guy who is busy with school and sometimes dakta whenever he is around. Agentlame basically has way too much going on irl and pretty much all other devs are who knows where.
Apr 24 17 13:59:32 <creesch> Anyway, that is something we'll tackle once work needs to start on the actual port.
Apr 24 17 13:59:35 <creesch> Which is months away.
Apr 24 17 14:00:01 <creesch> We'll probably make a big post trying to shame everyone that can actually contribute in doing so :P
Apr 24 17 14:00:31 <Shane> Have you talked 💰 💰 💰 yet?
Apr 24 17 14:00:43 <creesch> fuck you and your money.
Apr 24 17 14:00:47 <creesch> Toolbox is a commie tool.
Apr 24 17 14:01:14 <creesch> Done by the people for the people or something like that.
Apr 24 17 14:01:27 <creesch> Wait... mods are the ones in power... Hrm...
Apr 24 17 14:01:30 <creesch> technical detail.
Apr 24 17 14:01:33 <creesch> Still a commie tool.
Apr 24 17 14:03:05 <Shane> a commie tool that you built and that reddit will bank off
Apr 24 17 14:07:45 <creesch> Eh they are already.
Apr 24 17 14:08:05 <creesch> I don't care, made it for the people actually running the communities and caring for them.
Apr 24 17 14:08:55 <allthefoxes> we must seize the memes of production or some shit
Apr 24 17 14:10:12 <creesch> Currently with toolbox I do have the means of production in hands.
Apr 24 17 14:10:38 <creesch> My cynical part likes to believe that is their main reason for reaching out to us.
Apr 24 17 14:11:26 <creesch> Because they know we can actually create an actual riot if we announced "the change admins are going to make breaks toolbox and we will not be provided with the tools to easily make toolbox work again".
Apr 24 17 14:12:28 <creesch> I might or might not have implied such a scenario could happen once or twice towards admins in the past few months.
Apr 24 17 14:13:06 <creesch> Well not the part of us making a big post about it, just the part of mods actually rioting if toolbox suddenly was no longer available.
Apr 24 17 14:13:37 <-Massachoosite> TFW you didnt know about toolbox until you joined this chat but had been modding for five years
Apr 24 17 14:13:41 <-Massachoosite> (insert pic of my face)
Apr 24 17 14:13:46 <tiz> o_O
Apr 24 17 14:13:51 <-Massachoosite> No one told me!
Apr 24 17 14:14:38 <creesch> One more reason the big stuff should just be native to reddit.
Apr 24 17 14:14:46 <Shane> creesch does this mean there will finally be a pig in the queue creatures?
Apr 24 17 14:14:52 <creesch> We really never intended toolbox to become this big and essential for many subreddits.
Apr 24 17 14:15:39 <creesch> maybe...
Apr 24 17 14:15:45 <Shane> 😄
Apr 24 17 14:19:26 <creesch> Shane how about this one
Apr 24 17 14:19:27 <creesch> https://www.flickr.com/photos/hthg1983/1519121063
Apr 24 17 14:19:57 <creesch> or this one http://www.geograph.org.uk/photo/577604
Apr 24 17 14:20:19 <tiz> the second one
Apr 24 17 14:21:27 <Phallindrome> creesch Your cynical side is making some pretty reasonable inferences
Apr 24 17 14:22:39 <creesch> Oh yeah, my reasonable side tends to somewhat agree with my cynical side on this one as well :P
Apr 24 17 14:22:55 <creesch> Still, if it gets us good integration I am really not complaining.
Apr 24 17 14:24:44 <Shane> 1st one I think
Apr 24 17 14:24:52 <Shane> I did send you some gifs ages ago
Apr 24 17 14:26:27 <creesch> I know, forgot to save them and you talk an awful lot so it is hard to find in my logs :P
Apr 24 17 14:27:32 <creesch> https://www.flickr.com/photos/49937157@N03/4583155450/
Apr 24 17 14:28:09 <Shane> http://i.imgur.com/ojpLXRx.gifv http://i.imgur.com/xw3Nkuo.gifv
Apr 24 17 14:28:34 <creesch> I don't know if those fall under creative commons.
Apr 24 17 14:28:42 <Shane> https://archive.org/details/SantaPig https://commons.wikimedia.org/w/index.php?title=File%3APigsinapen-usdavideo.ogv
Apr 24 17 14:28:58 <creesch> And they need to be happy.
Apr 24 17 14:29:02 <creesch> All queue creatures are happy.
Apr 24 17 14:29:09 <creesch> Reminds me, I need to insert snek.
Apr 24 17 14:30:55 <creesch> https://www.flickr.com/photos/keithroper/3966990730/
Apr 24 17 16:17:20 <Alipoodle> What does this have to do with Automation?
Apr 24 17 16:18:24 <SpyTec> It's not creesch that is saying this. It's his markov bot... obviously
Apr 24 17 16:26:49 <creesch> Alipoodle it is a toolbox feature.
Apr 24 17 16:27:01 <creesch> Toolbox is automation related.
Apr 24 17 16:27:26 <Alipoodle> It just seemed like a large amount of pig images .-.
Apr 24 17 16:27:28 <creesch> Never seen queue kitty or any of the other queue creatures?
Apr 24 17 16:27:42 <creesch> It is missing a piglet
Apr 24 17 16:32:18 <cuddlefishcat> there are more??
Apr 24 17 16:32:24 <cuddlefishcat> i've only ever seen kitteh
Apr 24 17 16:33:42 <tiz> https://www.reddit.com/#?tbsettings=queuetools&setting=queuecreature
Apr 24 17 16:34:00 <cuddlefishcat> omg
Apr 24 17 17:54:31 <AmericanDerp> what are the rules and customs on bots mentioning a specific subreddit in their left comments, in another subreddit? e.g. you scan /all for some keyword combinations -- A+B+C *all* appear, your bot leaves a comment saying "Hello! You may find more help about your topic in /r/whatever, if you're interested."
Apr 24 17 17:55:44 <creesch> If it is not a bot we made or allowed in /r/history it gets banned.
Apr 24 17 17:55:58 <creesch> All subs I mod actually.
Apr 24 17 17:57:08 <AmericanDerp> That's what I figured would be the case. In ours we let the random helpful subs wander through, but that seemed to be a step too far. The thought came to me, and I was like, "that seems helpful, BUT..."
Apr 24 17 17:58:01 <creesch> I simply do not allow unauthorized bots in my subs. They rarely contribute and even if they slightly do they do distract from the discussion between humans.
Apr 24 17 17:58:30 <creesch> The wiki bot for example would just show a tiny bit of the article and make it seem the person that linked it wanted to specifcially talk about that.
Apr 24 17 17:58:55 <creesch> A bot promoting other subreddits will trigger on false positives and also once more distract from the discussion.
Apr 24 17 17:58:56 <creesch> etc.
Apr 24 17 18:01:40 <Shane> do you allow u/OinkyRobot?
Apr 24 17 18:02:14 <creesch> banned
Apr 24 17 18:03:15 <Shane> 😦
Apr 24 17 18:03:17 <Deimos> this is the shittiest bot I've seen recently: https://www.reddit.com/user/nohomo_bot
Apr 24 17 18:03:41 <-Massachoosite> Jesus
Apr 24 17 18:03:43 <Phallindrome> really, the shittiest one? :)
Apr 24 17 18:03:48 <Shane> how hasnt that been shadowbanned yet
Apr 24 17 18:03:50 <Phallindrome> :(
Apr 24 17 18:03:53 <Shane> 😃
Apr 24 17 18:03:53 <Phallindrome> :)
Apr 24 17 18:03:57 <Phallindrome> :(
Apr 24 17 18:03:59 <Shane> 😃
Apr 24 17 18:04:10 <Shane> I too saw that fucker
Apr 24 17 18:04:13 <creesch> I actually think that is rather funny.
Apr 24 17 18:04:20 <creesch> Though I would still ban the bot if I saw it.
Apr 24 17 18:04:38 <Shane> it was on his normal user account too
Apr 24 17 22:46:20 <theonefoster> I like this one, I think it's pretty funny
Apr 24 17 22:46:20 <theonefoster> https://www.reddit.com/user/RemindMeBotBro
Apr 24 17 22:46:32 <theonefoster> It's a bit spammy but I can't not love it
Apr 25 17 14:48:06 <fritzy> I thought I did this right but it doesnt seem to be working. Can yall double check it?
Apr 25 17 14:48:08 <fritzy> type: any
author:
comment_karma: "< 10"
post_karma: "< 10"
account_age: "< 24 hours"
satisfy_any_threshold: false
action: remove
action_reason: "New User"
Apr 25 17 14:53:21 <Phallindrome> no quote marks in those first three author conditions
Apr 25 17 14:55:20 <fritzy> cool thanks for the tip
Apr 25 17 14:55:43 <Phallindrome> =) Any time
Apr 25 17 14:59:04 <fritzy> It still doesnt seem to work >:/
Apr 25 17 14:59:25 <Phallindrome> Hmmm.
Apr 25 17 15:01:18 <fritzy> is the threshold: false wrong?
Apr 25 17 15:01:21 <fritzy> should it be any?
Apr 25 17 15:01:35 <fritzy> or just take that part out completely
Apr 25 17 15:02:34 <Phallindrome> What's your goal with that check?
Apr 25 17 15:04:33 <Phallindrome> Er, okay. The way it's set up, any new comment posted by a user who has less than 10 of both types of karma *and* is less than 24 hours old will be removed
Apr 25 17 15:04:37 <Phallindrome> and they can't be a mod
Apr 25 17 15:05:59 <fritzy> ah. I want it to remove comments from people that fit any of that criteria
Apr 25 17 15:06:21 <fritzy> so I guess I should change that to true then
Apr 25 17 15:06:26 <Phallindrome> Yup =)
Apr 25 17 15:11:12 <fritzy> yay now its working. Not sure why I decided to put false there to begin with. Seems so obvious now haha
Apr 25 17 15:11:53 <Phallindrome> Meh it's not really an intuitively-named check
May 03 17 23:16:22 <SpyTec> Does anyone know of an open source bot that can update sidebar table with a Google Calendar?
May 04 17 14:06:42 <BaRKy> SpyTec If you share some of that sweet sellout money with me I'll try find one?
May 04 17 14:23:47 <creesch> Actually not that difficult to do assuming the google calendar has an api.
May 04 17 14:26:03 <beelzeybob> I used this one 2 years ago, but it looks like it's still being updated
May 04 17 14:26:05 <beelzeybob> https://github.com/chromakode/reddit-sidebar-updater
May 04 17 14:30:35 <creesch> oh cool, even better.
May 04 17 14:50:39 <creesch> Wouldn't be cool if that was just a widget you needed to configure?
May 04 17 14:50:43 <creesch> :p
May 04 17 15:10:37 <SpyTec> ohh nice
May 04 17 15:11:10 <SpyTec> We currently have two tables, one for upcoming events and one for recurring weekly events.. will probably have to merge the two but no matter. This will be much better 😛
May 04 17 15:54:08 <Shane> is there script to approve everything in r/mod/unmoderated?
May 04 17 15:55:18 <Shane> nvm, wasnt as long as I expected
May 04 17 15:56:01 <beelzeybob> 🤣
May 04 17 15:56:12 <beelzeybob> there is u/approve_unmoderated
May 04 17 15:56:59 <beelzeybob> I just used it to approve r/masseffect's 2-something year queue a couple of months ago
May 04 17 15:57:27 <SpyTec> Well, it's only the past 2000 items iirc
May 04 17 15:57:30 <SpyTec> So not too much..
May 04 17 15:57:32 <Shane> I thought r/flashtv had never touched it but apparently it was just a few days
May 04 17 15:58:22 <SpyTec> Never touched would still be last 2000 items or w/e
May 04 17 15:58:49 <SpyTec> Hence general tip is: Use RES to scroll to botton, use toolbox to select everything and hit approve
May 04 17 16:43:44 <creesch> Toolbox makes it a few minutes work at most
May 04 17 16:43:56 <creesch> Right
May 04 17 16:44:00 <creesch> What SpyTec13 said
May 04 17 18:36:25 <SpyTec> creesch Any reason the troubleshooter isn't showing up? https://i.imgur.com/10xflCm.png
May 04 17 19:25:20 <creesch> SpyTec are beta features enabled?
May 04 17 19:30:57 <SpyTec> Yep
May 04 17 19:32:40 <SpyTec> Is it because of the thread size? Shows up on smaller threads, but not one with ~170
May 04 17 19:32:47 <SpyTec> Comments that is
May 04 17 19:39:04 <creesch> Not sure, the troubleshooter module wasn't made by me. Afaik it should work on all threads
May 04 17 19:40:28 <creesch> showing up for me.
May 04 17 19:40:50 <SpyTec> Weird 😦
May 04 17 19:41:17 <creesch> Just to double check.
May 04 17 19:41:17 <creesch> This is enabled: https://www.reddit.com/#?tbsettings=toolbox&setting=betamode ?
May 04 17 19:41:17 <creesch> And this is enabled: https://www.reddit.com/#?tbsettings=toggle_modules&setting=trouble
May 04 17 19:41:19 <creesch> ?
May 04 17 19:46:02 <SpyTec> Yep, shows up on smaller threads. Checking on <10 comments etc. it works fine
May 04 17 19:46:05 <SpyTec> The 170 comments one doesn't
May 04 17 19:54:03 <creesch> no clue what that could be.
May 04 17 19:54:12 <creesch> I just tested it on a thread with over 900 comments
May 04 17 19:54:44 <SpyTec> Now it showed up. But then I refreshed and it won't appear 😦
May 06 17 23:07:14 <justcool393> Hey, what would cause AutoModerator's config page to not save?
May 06 17 23:07:29 <justcool393> I clicked on the save icon and there is a circle for a few seconds and then nothing.
May 06 17 23:07:48 <justcool393> Here is my config if its helpful at all:
May 06 17 23:07:57 <justcool393> `type: comment
author:
is_moderator: false
action: remove
---
type: submission
moderators_exempt: false
action:
set_lock: true
`
May 06 17 23:15:02 <justcool393> As an aside, I looked with the Chrome dev tools, and reddit returned HTTP 500.
May 06 17 23:16:25 <justcool393> nevermind, I figured it out
May 06 17 23:22:35 <SpyTec> Yeah 500 means reddit servers bork
May 06 17 23:33:47 <justcool393> apparently not this time
May 06 17 23:34:09 <justcool393> My AutoMod config was incorrect, but it didn't know what the error was, so it was screwing it up.
May 06 17 23:34:43 <justcool393> `set_locked` isn't an action, it is its own thing. Why there was no error message is beyond me
May 07 17 15:33:42 <AmericanDerp> Question: there's quite a few bots or users who partially automate their accounts to collect news stories to various ends, to put them into subreddits of their own along whatever criteria. I was looking at this:
https://www.reddit.com/r/TheColorIsBlue/duplicates/69qqec/timeline_nigerias_kidnapped_chibok_girls_3_years/
So it looks like /u/bluethecoloris posted that article into their own sub. That user seems to be a bot. But then Autonewsadmin bot picked it up and cross poted it. If you follow these news bots, some of them seem to harvest URLs from either RSS/feeds or user submissions. I've seen some really topic specific subs over the years where people are collecting news stories or images or whatever from whatever specific topic is their thing, then they xpost them into their own subreddits.
That's all fine. But what if those xposts were to tag OP? Like...
1. OP posts some news story somewhere.
2. Whatever bot logic decides, submission x by user y meets z thresholds, so post it into another subreddit. This is all cool.
3. But then the bot logic leaves a comment in the new xposted subreddit - not the original OP subreddit - under the cross post. "This xpost in [New sub] was originally posted by /u/whomever in /r/blah at [URL]. Thanks for the find!"
Is #3 OK?
May 07 17 16:26:30 <Shane> nvm got it
May 07 17 19:33:04 <Shane> Say I have a comment thats says
May 07 17 19:33:16 <Shane> ```Cactus is better than melon```
May 07 17 19:33:32 <Shane> and I have a rule that filters the words cactus and melon
May 07 17 19:34:20 <Shane> Can I use {{match}} to put both cactus and melon as the reason?
May 07 17 19:34:40 <creesch> no, it will just match one of them I think.
May 07 17 19:34:49 <creesch> However
May 07 17 19:35:00 <creesch> there is something like match-1 match-2
May 07 17 19:35:11 <creesch> not entirely sure how that works and if it works in this instance.
May 07 17 19:35:18 <creesch> my automod is a bit rusty
May 07 17 19:35:33 <Shane> http://i.imgur.com/wjaph3h.png
May 07 17 19:35:59 <Shane> this is what it says in the wiki but I don't quite understand what {{match-number}} actually does
May 07 17 19:36:21 <creesch> why not link the actual wiki? :D
May 07 17 19:36:40 <creesch> oh right it is for capture groups in regex
May 07 17 19:36:47 <Shane> https://www.reddit.com/wiki/automoderator/full-documentation#wiki_match_placeholders
May 07 17 19:37:03 <creesch> so uhm ... "this (group) and (group2)"
May 07 17 19:39:39 <Shane> that does
May 07 17 19:39:43 <Shane> ```Found john and {{match-2}}```
May 07 17 19:40:12 <Shane> ``` type: any
title+body+url (includes, regex): ["series 11","S11","s11","season 11", "regenerat","last series","leaving Doctor Who","simm","simms","john","master", "mondas", "mondasian", "Saxon", "Cyber"]
parent_submission:
~id: [4g4a30, 5r42ct]
~flair_text: ["Spoilers"]
~title (includes): ["[SPOILER]", "[Spoilers]"]
action: filter
moderators_exempt: false
action_reason: Temporarily filtering for spoilers - Found {{match-1}} and {{match-2}}```
May 07 17 19:40:41 <Shane> this is what I currently have
May 09 17 19:27:34 <SpyTec> I'm also curious about new lines within dropdown options. creesch, is that in any way supported? I.e. with selection box/contextSelectbox
May 09 17 19:28:48 <creesch> nah
May 09 17 19:29:00 <SpyTec> Okay 😦
May 09 17 19:29:02 <creesch> html select boxes don't support that.
May 09 17 19:29:13 <SpyTec> No hacky workaround?
May 09 17 19:29:39 <creesch> you can try \n and see if it does anything.
May 09 17 19:29:44 <creesch> I guess it will not though
May 09 17 19:30:05 <SpyTec> Yeah tried that, didn't work
May 09 17 19:47:37 <SpyTec> Should create some custom modules to be able to do this.. maybe have it be based on ReactJS, AngularJS and VueJS just to be extra safe
May 12 17 22:38:45 <Shane> I have automod setting flairs based on keywords in the title and messaging users to double check. can I make it so it messages the user about flairs if it doesnt match any of the keywords?
May 12 17 22:39:03 <andytuba> sure can
May 12 17 22:39:46 <andytuba> ```
type: submission
~title: [ keyword1, keyword2, keyword3 ]
message: |
Yo dawg.
Pick a flair.
```
May 12 17 22:40:07 <andytuba> hmm that's not quite it
May 12 17 22:40:32 <SpyTec> Or
```
message: |
We picked `flair` for you. Change if not correct
```
May 12 17 22:40:51 <andytuba> oh right it is just `message: |`
May 12 17 22:40:56 <SpyTec> Yeah
May 12 17 22:41:09 <Shane> thats what I have atm. but I want one for when it doesnt find anything. like "yo pick a flair pls"
May 12 17 22:41:24 <Shane> I think andys should do it
May 12 17 22:41:24 <andytuba> yeah `~title: [ all, of, the, keywords]` will do that
May 12 17 22:41:32 <andytuba> the `~` means "not"
May 12 17 22:41:40 <andytuba> you'll hafta make two rules ofc
May 12 17 22:41:43 <andytuba> and keep your keywords in sync
May 12 17 22:41:56 <andytuba> should probably add a `# Keep this in sync with that` comment
May 12 17 22:42:45 <Shane> 2 rules?
May 12 17 22:42:59 <andytuba> one for auto- assigning the flair, one for messaging the user if the flair couldn't be auto-assigned
May 12 17 22:43:29 <andytuba> well, it's probably one rule per flair-assignment
May 12 17 22:43:40 <andytuba> and then one more rule for "couldn't find a match"
May 12 17 22:43:56 <Shane> ah yeah, thats what I'm doing 😃
May 12 17 22:51:17 <Shane> ```#General flairing message - keep in sync with above flairing rules
type: submission
~title: ["News","Article","headline","infomation","report","Art","Craft","Fanart","Misc","miscellaneous","Discussion","Cosplay","Theory","speculation","speculate","[Meta]","Comic","Book","Shitpost", "shit", "meme", "humor", "fridge","Spoilers", "spoiler","#s"]
message: |
Hi, /u/{{author}}!
**Thank you for [your submission]({{permalink}}) to /r/{{subreddit}}!**
Please Flair your post by following the following steps:
There is a 'flair' button at the bottom of your post's header section. [Example.](http://i.imgur.com/mVsZgZ5.png) Click that, select the appropriate flair and click save. That's it! Thanks
```
May 12 17 22:51:21 <Shane> perfect
May 12 17 22:52:02 <andytuba> > Please Flair
May 12 17 22:52:09 <andytuba> sentence-casing friendo
May 12 17 22:52:36 <andytuba> also .. hmm how do flair on mobile
May 12 17 22:52:55 <Shane> Use reddit is fun
May 12 17 22:53:05 <Shane> Fuck the reddit app
May 12 17 22:53:50 <Shane> serious note, I imagine its similar on most mobile apps
May 12 17 22:54:25 <andytuba> oh yeah i guess official app doesn't have flair editing yet
May 12 17 22:54:43 <andytuba> but i think you're right, most mobile apps are probably similar enough to that
May 12 17 23:17:07 <abe> Shane is there anything like Reddit is fun for iOS, reddits app is shit on iOS too.
May 12 17 23:17:34 <Deimos> the iOS apps I usually see people mention are antenna and narwhal, I think
May 12 17 23:18:53 <Shane> abe Android
May 12 17 23:23:19 <abe> Shane you wana pay for a new android phone for me?
May 12 17 23:23:41 <Shane> They dont cost a bomb like apple
May 12 17 23:24:28 <SpyTec> Mine was cheap
May 12 17 23:24:48 <SpyTec> Got a used one from a company for very cheaps. Almost brand new
May 12 17 23:27:39 <abe> My one was like $200 (NZD) for a 6 from a friend. Find me a Samsung one that cheap.
May 12 17 23:28:34 <Shane> If you want something cheap dont get samsung
May 12 17 23:29:25 <abe> What then? I want a good phone.
May 12 17 23:50:57 <SpyTec> Most other brands are good
May 12 17 23:51:16 <SpyTec> Samsung at this point is like Razer
May 13 17 14:13:04 <dis_is_my_account> how do i make this
May 13 17 14:13:08 <dis_is_my_account> type: submission
media_author_url (includes): "mlghwnt"
domain: ["youtube.com", "youtu.be"]
action: approve
set_flair: ["Steven's Channel", "steven-channel"]
May 13 17 14:13:16 <dis_is_my_account> auto approve posts as well?
May 13 17 19:18:36 <justcool393> dis_is_my_account AutoModerator won't approve posts if it doesn't have to (i.e. it won't clear the unmoderated queue).
May 13 17 21:46:03 <dis_is_my_account> what do you mean if it doesnt have to?
May 13 17 21:48:13 <justcool393> dis_is_my_account I mean that it won't approve posts that aren't removed.
May 13 17 21:51:45 <dis_is_my_account> oh thats a shame
May 13 17 22:01:00 <dis_is_my_account> do you know if its possible to take the link of a thread, edit the reddit part to ceddit, and post the link in the comments?
May 13 17 22:44:47 <justcool393> I don't think so.
May 13 17 22:45:13 <justcool393> quick question, are you running a bot that links to a specific subreddit?
May 13 17 22:45:47 <justcool393> I know a lot of the transparency subreddits do a similar sort of thing
May 13 17 23:02:13 <dis_is_my_account> no ive just been looking to phase out snapshill. sorry, but its links fail too often
May 13 17 23:09:58 <dis_is_my_account> automod is supposed to message me back if i successfully set up a schedule thing right?
May 13 17 23:11:33 <justcool393> Yeah, the issue with it is the sites themselves. We're looking into trying to make it more reliable (and add more sites). Unforunately there just aren't that many archive everything sites.
May 13 17 23:11:40 <justcool393> and we don't have infinite storage space
May 13 17 23:12:47 <dis_is_my_account> what ever happened to it taking pictures?
May 13 17 23:16:47 <justcool393> It never did. That was /u/ttumblrbots
May 13 17 23:17:04 <justcool393> And I'm pretty sure those link to malware sites now :/
May 13 17 23:17:04 <dis_is_my_account> oh. why not do that?
May 13 17 23:17:32 <justcool393> We probably could, it'd just take a while to get set up
May 13 17 23:17:44 <justcool393> Imgur would probably work for hosting.
May 13 17 23:18:08 <dis_is_my_account> ya thats what i was thinking. i dont know why you would need to make your own image hosting site
May 13 17 23:18:28 <dis_is_my_account> you could probably get some revenue if you did that though...
May 13 17 23:18:57 <justcool393> yeah. it'd probably be a much larger pita though
May 13 17 23:19:06 <justcool393> at least initially
May 13 17 23:19:12 <dis_is_my_account> a larger what?
May 13 17 23:19:20 <SpyTec> pain in the ass
May 13 17 23:19:23 <dis_is_my_account> ah
May 13 17 23:19:29 <dis_is_my_account> never seen it abbreviated before
May 13 17 23:19:37 <SpyTec> Not used much 😛
May 15 17 04:19:58 <Dave> Our subreddit is for a game that is fairly complex and we get many simple questions. We started a daily Q&A Megathread but I would love to not make them manually.
May 15 17 04:20:18 <Dave> Can someone help me with automatically posting the same post only changing the title and message slightly (with the correct date)
May 15 17 04:29:05 <abe> Dave using automod to post regularly is simple
May 15 17 04:29:16 <abe> but changing content automatically is complicated\
May 15 17 09:51:03 <mbetts> Why not just set up multiple posts?
May 15 17 09:51:13 <mbetts> And have them overwrite eachother
May 16 17 16:53:47 <Shane> whats the name of the aprove all unmoderated bot?
May 16 17 16:55:29 <beelzeybob> u/approve_umoderated
May 16 17 16:56:59 <Shane> http://i.imgur.com/BP7WLWf.png
May 16 17 16:57:01 <Shane> 😦
May 16 17 16:59:44 <Shane> fuck it, I'll run the script myself
May 16 17 17:02:27 <beelzeybob> yeah it only runs once every hour I think
May 16 17 17:12:02 <Shane> got OinkyRobot on the job!
May 16 17 17:13:20 <Shane> or... not?
May 16 17 18:07:21 <Shane> I'd like to remove every post on a subreddit ever made, how do?
May 16 17 18:08:26 <beelzeybob> how big is the sub>
May 16 17 18:13:09 <ThatAstronautGuy> set items per page to 100
May 16 17 18:13:17 <ThatAstronautGuy> use NER from RES
May 16 17 18:13:28 <ThatAstronautGuy> and then scroll down as far as you can with toolbox queue tools on
May 16 17 18:13:32 <ThatAstronautGuy> and select everything and remove
May 16 17 18:17:12 <Shane> how do I get toolbox queue tools up?
May 16 17 18:17:45 <ThatAstronautGuy> theres a button somewhere to enable queue tools
May 16 17 18:19:03 <SpyTec> It should be at the top
May 16 17 18:19:57 <Shane> I'm not seeing a queue tools button
May 16 17 18:20:52 <SpyTec> Should be where all nav buttons are https://i.imgur.com/8kEf6zi.png
May 16 17 18:21:27 <SpyTec> For me sometimes it doesn't pop up at all
May 16 17 18:24:38 <Shane> huh
May 16 17 18:24:40 <Shane> I'm blind
May 16 17 23:45:50 <pock> does the approve modqueue bot literally approve everything? I'd rather the things that were removed stay removed
May 16 17 23:46:40 <pock> is there a bot that will approve the things that were never removed and remove the things that were removed in the modqueue?
May 17 17 00:05:48 <pock> i have a large sub with 6 years of backlogs so it's impossible to do this manually
May 17 17 00:06:08 <pock> pls halp
May 17 17 00:27:31 <Snipe> pock "impossible to do this manually". why not just use RES and toolbox? neverending reddit and select all works wonders.
May 17 17 00:42:41 <pock> yeah but i dont wanna approve all or remove all
May 17 17 00:43:06 <pock> i want the things removed to stay removed and the things not removed to stay approved
May 17 17 00:43:47 <pock> if i use the approve all bot a shit ton of spam is gonna flood the sub
May 17 17 00:44:08 <pock> and it's an extremely active sub so that wouldn't be good.
May 17 17 00:46:14 <pock> Snipe plus, this is **6 years** of shit, i would crash my computer or the browser before i loaded everything onto the page
May 17 17 00:46:25 <pock> more like 7 years actually
May 17 17 00:47:07 <Snipe> " want the things removed to stay removed and the things not removed to stay approved" Go to your UNMODERATED POSTS queue. removed posts do not show up there
May 17 17 00:47:19 <Snipe> no chance of approving a removed post
May 17 17 00:47:55 <pock> i swear spammed posts get into the modqueue sometimes
May 17 17 00:48:21 <Snipe> modqueue yes. but i am not talking about that one specifically. I am talking about UNMODERATED POSTS.
May 17 17 00:48:41 <Snipe> wait wait wait...
May 17 17 00:48:48 <pock> but i'm not talking about unmoderated posts
May 17 17 00:48:53 <pock> wat are we talking about
May 17 17 00:49:02 <Snipe> how in the name of christ do you have 6 years of shit in the MODQUEUE
May 17 17 00:49:06 <Snipe> WHAT
May 17 17 00:49:12 <pock> I KNOW I KNOW IT SOUNDS BAD
May 17 17 00:49:14 <Snipe> HOW IS THAT POSSIBLE
May 17 17 00:49:20 <Snipe> THAT IS LITERALLY.... WHAT
May 17 17 00:49:22 <pock> LET ME EXPLAIN
May 17 17 00:49:29 <Snipe> O_O
May 17 17 00:49:36 <pock> i flipped out when i got modded here too
May 17 17 00:49:43 <Snipe> *snipe.exe has stopped working*
May 17 17 00:49:48 <pock> you see um...
May 17 17 00:49:59 <pock> the mods there have an unconventional way of moderating posts
May 17 17 00:50:18 <Snipe> so the other mods of the sub... they didnt APPROVE anything in the modqueue, they just removed shit? they just ignored everything that didnt need removed????
May 17 17 00:50:22 <pock> that is, they have automoderator modmail every time there's a report
May 17 17 00:50:34 <pock> and they don't press approve, they just press ignore reports
May 17 17 00:50:37 <Snipe> those mods should not be mods
May 17 17 00:50:45 <Snipe> they should not fuckin be a mod anywhere on reddit
May 17 17 00:50:49 <justcool393> oh god
May 17 17 00:50:55 <Snipe> that is god damn insane
May 17 17 00:51:00 <Snipe> who the fuck does that
May 17 17 00:51:04 <pock> this is a subreddit with close to 100,000 subscribers
May 17 17 00:51:06 <pock> uh huh.
May 17 17 00:51:09 <justcool393> I rarely use "ignore reports"
May 17 17 00:51:11 <Snipe> holy shit the bed
May 17 17 00:51:34 <Snipe> im sorry i misunderstood you othersophie. i am just blown away right now
May 17 17 00:51:40 <pock> believe me i've tried to tell them they're fucked in the head
May 17 17 00:51:41 <Snipe> my head hurts
May 17 17 00:51:42 <pock> but i'm the "new guy"
May 17 17 00:52:00 <Snipe> well its fuckin sad when the new guy wants to do shit proper and they think you are nuts
May 17 17 00:52:07 <Snipe> id be outta that sub
May 17 17 00:52:11 <Snipe> nope.exe
May 17 17 01:00:52 <pock> well not the "new guy" technically but the "person who just shuts up and does the css"
May 17 17 01:02:26 <Snipe> that is sad...
May 17 17 01:03:14 <pock> it's complicated...
May 17 17 01:03:27 <pock> they're actually really good friends of mine
May 17 17 01:03:34 <pock> outside of moderation...
May 17 17 01:03:55 <pock> i did not know all kinds of crazy was goin on behind that door
May 17 17 01:04:15 <cuddlefishcat> kill their css until they mod the right way lol
May 17 17 16:38:19 <beelzeybob> anyone know if it's possible to get report reasons out of a modqueue rss feed?
May 20 17 05:45:55 <Boop> coconut is an interesting language for making analysis scripts
```
karma.user = submissions |> filter$(-> _.author) |> map$(-> Counter({_.author.name:_.ups})) |> reduce$(+)
```
kinda works nicely? and works with praw
May 20 17 17:28:42 <tiz> prob easy or dumb qustion/ How can i make it so AM approves new posts made by approved submitters.
May 20 17 17:34:45 <SpyTec> ```yaml
author:
is_contributor: true
action: approve
```
May 20 17 17:34:47 <SpyTec> I guess
May 20 17 17:36:15 <SpyTec> tiz
May 20 17 17:36:44 <tiz> oh ha, i forgot about the author: thing. ty SpyTec
May 20 17 17:36:51 <SpyTec> 😛
May 20 17 17:37:45 <SpyTec> I like this more though
```yaml
type: any
author:
is_moderator: true
action: remove```
May 20 17 17:38:10 <SpyTec> Can't have any drama if mods are silent
May 20 17 17:38:22 <tiz> lol
May 20 17 17:54:16 <justcool393> got to have `moderators_exempt: false` in there as well.
May 20 17 17:54:31 <SpyTec> True
May 21 17 22:15:00 <fritzy> is there a way to have automod approve mod comments when reported?
May 21 17 22:16:58 <SpyTec> ```yaml
type: comment
reports: 1
author:
is_moderator: true
action: approve
moderator_exempt: false
```
May 21 17 22:17:00 <SpyTec> I guess
May 21 17 22:17:05 <SpyTec> But would only do it once AFAIK
May 21 17 22:20:29 <fritzy> hmm
May 21 17 22:20:45 <fritzy> in ahs we get brigades and people report us mods a lot
May 21 17 22:20:59 <fritzy> it would save a few clicks if every reported mod was auto approved
May 21 17 22:21:26 <fritzy> guess I could copy the code and change the report number
May 21 17 22:25:13 <tiz> ootl has that , ill find it
May 21 17 22:26:33 <SpyTec> ootl?
May 21 17 22:26:45 <SpyTec> OutOfTheLoop?
May 21 17 22:27:17 <tiz> ``` # Re-approve any comment or submission that a moderator makes if it gets reported
author:
is_moderator: true
reports: 1
action: approve```
this is what ootl uses fritzy
May 21 17 22:27:44 <fritzy> will that work if it gets reported more than once?
May 21 17 22:28:10 <fritzy> either way thank you
May 21 17 22:28:44 <tiz> i rarely see any reports on our sticky comments so im assumin yes
May 21 17 22:29:11 <XenoBen> Wouldnt it rerun on every report?
May 21 17 22:29:43 <tiz> https://i.gyazo.com/fef6b10d731eb62dd49d67356f051ddc.png
May 21 17 22:29:52 <tiz> it approved it each time
May 21 17 22:30:06 <XenoBen> Ye would only ever see 1 report
May 21 17 22:30:15 <XenoBen> Since others already cleared
May 21 17 22:31:29 <fritzy> ah yeah I forgot thats how it worked
May 21 17 22:31:33 <fritzy> thanks yall
May 21 17 22:54:15 <SpyTec> Oh right that's true
May 21 17 22:54:18 <SpyTec> XenoBen Genious
May 21 17 22:54:42 <SpyTec> tiz I like how you tagged ManWithoutModem as a robot
May 21 17 22:55:04 <tiz> ha
May 21 17 22:55:11 <tiz> that's a toolbox feature
May 21 17 22:55:27 <tiz> puts that icon on things AM or any other bot does
May 21 17 22:57:01 <SpyTec> Never gotten it to work for me
May 22 17 01:10:27 <justcool393> It's only for approvals SpyTec
May 22 17 08:51:46 <SpyTec> Ah I see
May 22 17 14:47:02 <Zeno> Trying to update automod-schedule is like pulling teeth, arghhhh
May 22 17 14:48:24 <dis_is_my_account> youre having trouble with it too?
May 22 17 14:48:53 <dis_is_my_account> idk what i did wrong but im not getting a reply back whether it succeeded or not
May 22 17 14:49:42 <beelzeybob> I recently had to reinvite automod to get a reply
May 22 17 14:49:45 <beelzeybob> but it worked
May 22 17 14:50:10 <beelzeybob> I hadn't needed it to be invited in months to update shit but for some reason it seems to be required now
May 22 17 14:51:31 <dis_is_my_account> kick and reinvite?
May 22 17 14:53:08 <beelzeybob> oh is it already on your list? you can try
May 22 17 14:56:07 <dis_is_my_account> so am i supposed to put an extra space between each thing in the code?
May 22 17 14:56:14 <dis_is_my_account> or just leave it
May 22 17 14:57:59 <beelzeybob> either works I think.. I have subs that use both
May 22 17 15:01:07 <dis_is_my_account> oh apparently i have to give distinguish: a value. couldve sworn the guide said it would default to true if i just left it
May 22 17 15:05:42 <dis_is_my_account> whats the longest i should wait for a reply?
May 22 17 15:06:11 <beelzeybob> i would say 10 mins
May 22 17 15:53:57 <dis_is_my_account> goddamn janky automod still wont reply
May 22 17 15:57:27 <dis_is_my_account> oh wait it finally went through
May 23 17 10:16:11 <creesch> does discord automation also belong here?
May 23 17 10:16:49 <creesch> Just finished making a sort of automod for the /r/history discord that is configured in a similar way through a reddit wiki.
May 23 17 12:55:56 <Shane> Ooh
May 23 17 14:00:54 <tiz> yeah, any automoation is fine
May 23 17 14:21:12 <creesch> cool
May 23 17 20:30:06 <Gumdrops> dis_is_my_account Hm, does AutoMod not respond if there's an error in your config?
May 23 17 20:33:20 <Deimos> depending on the error I think sometimes it won't reply, or if it doesn't have access to the wiki page
May 23 17 20:55:04 <Gumdrops> Definitely has access, just trying to update one of the scheduled posts with some changes to the text and title. Do parantheses need to be escaped or in quotes or anything?
May 23 17 20:56:06 <Deimos> it can depend a bit, the most common issue is bad indentation on a multiple-line post
May 23 17 20:56:20 <Deimos> if you copy-paste the page or give me access to it I can take a look though
May 23 17 21:00:11 <Gumdrops> Deimos Thanks, here's a link that you should be able to access https://www.reddit.com/r/gumdropseu/wiki/index, copied from the AutoMod config
May 23 17 21:04:01 <Deimos> hmm it looks okay to me
May 23 17 21:05:53 <Gumdrops> I've sent the update message 4 times now over the last 3 days and still had no response
May 23 17 21:06:48 <Deimos> yeah I just copied that to my own subreddit and sent a few update messages and didn't get anything
May 23 17 21:06:59 <Deimos> let me see if it responds to a simpler one, or if it's just totally broken
May 23 17 21:07:22 <tiz> talking about the am schedule?
May 23 17 21:07:31 <Gumdrops> Yeah
May 23 17 21:07:51 <tiz> what worked for me in the past was spamming it like 4 messages , ususally took one of them
May 23 17 21:08:27 <Deimos> yeah that's what I always do, but it still didn't respond
May 23 17 21:08:41 <Deimos> I think it might just be totally not working, unless someone else can get a response
May 23 17 21:08:52 <Deimos> I didn't get one even with a really basic config
May 23 17 21:10:59 <tiz> I just tried it and got a respons https://i.gyazo.com/46d4165541d219b4d586246f79b737c8.png
May 23 17 21:11:11 <Gumdrops> Hm I'll try the spam technique
May 23 17 21:11:33 <tiz> My config is p long too, https://www.reddit.com/r/CasualConversation/wiki/automoderator-schedule
May 23 17 21:13:37 <dis_is_my_account> i got a response after kicking and readding it twice and sending it a message twice after the 2nd readd
May 23 17 21:14:11 <dis_is_my_account> idk if the kicking did anything
May 23 17 21:14:15 <tiz> are you sure you have it under the right url Gumdrops `/wiki/automoderator-schedule`
May 23 17 21:14:19 <dis_is_my_account> or if it was sending it the message twice
May 23 17 21:15:00 <tiz> wish the admins would include the scheduled post into actually reddit instead of piggy backing
May 23 17 21:15:11 <Gumdrops> Yeah the URL is correct, has been working fine as of my last update 2 months ago. Just needed to make some minor changes to thread titles/body
May 23 17 21:15:44 <Gumdrops> Ah finally just got a reponse now after the spam method
May 23 17 21:15:50 <Gumdrops> Thanks for the assists!
May 23 17 21:16:35 <tiz> nice, glad you got it!
May 23 17 21:24:13 <Deimos> I had a fully-rewritten version of the schedule bot that didn't miss messages, sent error messages correctly, etc. that just needed some testing to switch to
May 23 17 21:24:29 <Deimos> I left it with them, but obviously they haven't used it ¯\_(ツ)_/¯
May 23 17 21:31:51 <Gumdrops> Plot twist: They did 🤔
May 24 17 00:15:26 <tiz> Wow, dei tell them to add it
May 25 17 21:13:24 <SpyTec> Is there a way to have a newline in a table cell?
May 25 17 21:14:11 <SpyTec> If you look at https://www.reddit.com/r/EliteDangerousMeta/ we recently setup the script r/IAmA uses, just modified slightly. But it looks a bit weird if there's no newlines for the dates. Or anyone have suggestions to make the datetime look better
May 25 17 21:30:31 <justcool393> 4 spaces and enter?
May 25 17 21:30:36 <justcool393> maybe?
May 25 17 21:36:51 <SpyTec> Any enter or newline breaks the table
May 25 17 21:39:52 <Deimos> I don't think there will be any way, I think reddit's table implementation was a custom one too so it probably doesn't have edge-cases very well covered
May 25 17 21:43:16 <SpyTec> Then.. any suggestions to the datetime so it doesn't look terrible? 😛
May 25 17 21:45:20 <Deimos> I'm not certain if this works, but can you replace the spaces with `&nbsp;` to stop it from wrapping?
May 25 17 21:46:48 <SpyTec> It does work yeah. I'll modify the script and see 😛
May 25 17 23:20:39 <SpyTec> I'm doing
```javascript
var date.replace(" ", "&nbsp;")```
and it turns out like this on the sidebar: https://i.imgur.com/cCZl13u.png
May 25 17 23:22:04 <Deimos> check the sidebar and see if it's getting double-replaced somehow so you're ending up with like `&amp;nbsp;`
May 25 17 23:44:43 <SpyTec> ```
Date | Event | Description
---|---|----|----
3&nbsp```
May 25 17 23:44:45 <SpyTec> Thats all
May 25 17 23:46:32 <Deimos> assuming that's javascript you have to do it differently to replace all the spaces, by default it's only going to replace the first one
May 25 17 23:50:23 <SpyTec> Tried doing `.replace(/ /g, "&nbsp;")` but yet again same issue
May 25 17 23:50:48 <Deimos> is the line `var date.replace ...` like you had above? that's not valid
May 25 17 23:52:06 <SpyTec> This is the full thing, was just long so didn't want to copy-paste
```javascript
var date = Utilities.formatDate(eventDate, SCHEDULE_TIME_ZONE, 'd MMM').replace(/ /g, "&nbsp;")```
May 25 17 23:52:32 <SpyTec> Works fine if I don't have replace, so that's something
May 25 17 23:56:16 <Deimos> does the date get passed through some sort of escaping function after that or anything?
May 25 17 23:59:24 <SpyTec> ```javascript
var tableLine = [
date + Utilities.formatDate(eventDate, SCHEDULE_TIME_ZONE, eventDate.getMinutes() != 0 ? 'h:mma' : 'ha').toLowerCase(),
event.getTitle(),
event.getDescription()
].join('|') + '\n'
```
May 25 17 23:59:31 <SpyTec> That's more or less it
May 25 17 23:59:49 <SpyTec> Which is then appended to sidebarTable var `sidebarTable += tableLine`
May 26 17 00:01:22 <Deimos> I'm not sure, it looks fine to me but there must be something weird
May 26 17 00:01:47 <Deimos> I'd probably try to check on the value of `date` right after the initial line with the replace and see if it's broken at that point or if something later causes it
May 26 17 00:05:28 <SpyTec> Yeah tried doing that, same issue
May 26 17 00:05:51 <SpyTec> Running this in Google Scripts for the record
May 26 17 00:12:41 <SpyTec> So seems like if I replace with semi-colon it just doesn't do it
May 26 17 00:12:53 <SpyTec> `.replace(/\s/g, ";")`
May 26 17 00:48:16 <SpyTec> (╯°□°)╯︵ ┻━┻
May 26 17 01:02:30 <SpyTec> Here's the code I modified. If anyone comes up with anything I'd love to hear it.. tried a bunch of things but no luck.
https://github.com/chromakode/reddit-sidebar-updater/blob/master/update-sidebar.js#L98
May 26 17 10:05:42 <creesch> https://www.microsoft.com/store/apps/9npkpj1gj7gw
May 26 17 10:33:57 <SpyTec> justcool393 You had any luck? 😦
May 26 17 16:31:01 <justcool393> SpyTec unforunately not. I couldn't figure out why it wasn't working. Do you have the source of what you're using that causes the &nbsp thing?
May 26 17 16:31:57 <SpyTec> I'm trying to add nbsp, not remove it 😛
May 26 17 16:32:23 <SpyTec> Want the "7 May" to be "7&nbsp;May"
May 26 17 22:14:06 <SpyTec> https://cdn.discordapp.com/attachments/279692806442844161/317787510862512129/unknown.png
May 26 17 22:14:14 <SpyTec> That's just before it submits a request to reddit
May 26 17 22:14:29 <SpyTec> Is there something specific with API and semi-colons?
May 26 17 22:16:54 <SpyTec> Sidebar itself when submitting: https://i.imgur.com/TPivWYs.png
May 26 17 22:22:48 <SpyTec> Deimos you have any idea? :/
May 26 17 22:23:13 <SpyTec> Everything past the first semi-colon is gone
May 26 17 22:23:30 <Deimos> it sounds like something wrong with how you're sending the data where the semicolon is getting treated as a terminator
May 26 17 22:23:49 <Deimos> there's definitely nothing in the reddit API that prevents you from using semicolons or anything like that
May 26 17 22:24:04 <SpyTec> ```javascript
UrlFetchApp.fetch('https://oauth.reddit.com/r/' + SUBREDDIT + '/api/wiki/edit', {
payload: {
content: sidebar,
page: 'config/sidebar',
reason: 'Automated Google Apps Script update @ ' + Utilities.formatDate(now, 'America/Los_Angeles', 'd MMM h:mma z')
},
method: 'post',
headers: {'Authorization': 'bearer ' + authToken}
})```
May 26 17 22:24:15 <SpyTec> That's what I'm using <https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app>
May 26 17 22:25:47 <Deimos> https://stackoverflow.com/questions/13393768/posts-that-contain-a-semicolon-are-cut-off-after-semicolon
May 26 17 22:26:50 <justcool393> SpyTec try escaping the semicolon?
May 26 17 22:26:52 <SpyTec> Ahhh interesting..
May 26 17 22:27:00 <justcool393> i just thought of that
May 26 17 22:27:16 <justcool393> oh that was in the SO link. :/
May 26 17 22:29:05 <Deimos> yeah I didn't realize it was being treated as a form post
May 26 17 22:35:44 <SpyTec> So is there a way to solve this? Using some other content-type? 😛
May 26 17 22:37:42 <Deimos> you should be able to just encode it, like the SO answers say
May 26 17 22:38:32 <Deimos> `encodeURIComponent(sidebar)`
May 26 17 22:38:36 <SpyTec> Yeaah.. if I do that: https://www.reddit.com/r/EliteDangerousMeta/
May 26 17 22:38:42 <SpyTec> It won't decode
May 26 17 22:38:44 <Deimos> haha
May 26 17 22:39:05 <SpyTec> Tried application/json and encode it to that but no luck
May 26 17 22:41:38 <Deimos> I think you'll want application/json and then you'll need to encode all of the content/page/reason into a json string? that's what you tried?
May 26 17 22:42:27 <SpyTec> Yep. Unless I'm doing it wrong:
```javascript
UrlFetchApp.fetch('https://oauth.reddit.com/r/' + SUBREDDIT + '/api/wiki/edit.json', {
payload: {
content: JSON.stringify(sidebar),
page: 'config/sidebar',
reason: 'Automated Google Apps Script update @ ' + Utilities.formatDate(now, 'America/Los_Angeles', 'd MMM h:mma z')
},
method: 'post',
contentType: 'application/json',
headers: {'Authorization': 'bearer ' + authToken}
})```
May 26 17 22:42:45 <Deimos> yeah, that's not quite right
May 26 17 22:43:33 <Deimos> you'll need to do something like ```
payload: JSON.stringify({
content: ...,
page: ...,
}),
method: ...```
May 26 17 22:45:48 <SpyTec> No luck
May 26 17 22:46:07 <Deimos> is it giving you an error or anything?
May 26 17 22:47:57 <SpyTec> Getting 200 and updates according to modlog
May 26 17 22:48:32 <Deimos> check the wiki page history for the sidebar
May 26 17 22:48:56 <Deimos> https://www.reddit.com/r/EliteDangerousMeta/wiki/revisions/config/sidebar
May 26 17 22:50:22 <SpyTec> Yeah it doesn't update it..
May 26 17 22:53:07 <Deimos> what's the whole fetch call now?
May 26 17 22:53:31 <SpyTec> ```javascript
UrlFetchApp.fetch('https://oauth.reddit.com/r/' + SUBREDDIT + '/api/wiki/edit', {
payload: JSON.stringify({
content: sidebar,
page: 'config/sidebar',
reason: 'Automated Google Apps Script update @ ' + Utilities.formatDate(now, SCHEDULE_TIME_ZONE, 'd MMM h:mma z')
}),
method: 'post',
contentType: 'application/json',
headers: {'Authorization': 'bearer ' + authToken}
})```
May 26 17 22:54:31 <Deimos> should it still be `edit.json` ?
May 26 17 22:55:18 <SpyTec> Couldn't find anywhere on the API docs about `.json`. Added it in before to try but no success, think it's only for the response (which is empty either way)
May 26 17 22:57:03 <Deimos> I don't know, that looks fine to me so I don't know why it's not editing the wiki page
May 26 17 23:00:50 <SpyTec> Everything I try googling for turns up with no answers either 😛
May 26 17 23:01:47 <SpyTec> Getting code 200, modlog say we edited a wikipage, wiki pages claim otherwise
May 26 17 23:09:46 <SpyTec> Tried doing `multipart/form-data` and the servers spew out server error 500
May 26 17 23:16:40 <SpyTec> There must be a way to encode data sent to reddit.. creesch you have any suggestions?
May 26 17 23:18:59 <Deimos> if you can figure out why your JSON post isn't working, that will work
May 26 17 23:26:43 <SpyTec> No clue
May 27 17 22:18:52 <SpyTec> Here's the source code for the Google Scripts.. if anyone wants to experiment trying to get it to work https://cdn.discordapp.com/attachments/279692806442844161/318151096843632640/Code.gs
May 27 17 22:19:03 <XenoBen> its a virus!
May 27 17 22:20:08 <SpyTec> XenoBen Since you wrote a message here.. want to help figure out the problem? 😄
May 27 17 22:20:18 <XenoBen> duno
May 27 17 22:20:19 <XenoBen> do i
May 27 17 22:20:32 <SpyTec> Idk
May 27 17 22:20:43 <SpyTec> I want to send URI encoded or JSON encoded data to reddit, but nothing works
May 27 17 22:20:51 <SpyTec> Need to encode to be able to transmit semi-colon
May 27 17 22:22:36 <XenoBen> eh
May 27 17 22:23:38 <SpyTec> What? 😛
May 27 17 22:24:36 <XenoBen> ye i dont know to that
May 27 17 22:24:44 <XenoBen> i know who would probs know, but hes on hols for a week
May 27 17 22:25:06 <SpyTec> Alright
May 27 17 22:25:23 <XenoBen> what does your script try to do?
May 27 17 22:25:28 <SpyTec> Well it would be helpful to get it to work..
May 27 17 22:25:40 <SpyTec> Creates and updates the sidebar table for https://www.reddit.com/r/EliteDangerousMeta
May 27 17 22:25:44 <SpyTec> Based on a Google Calendar
May 27 17 22:26:25 <SpyTec> Everything works, but if there is a semi-colon or any deliminator in sidebar it will screw up, as it's not encoded when I edit the sidebar
May 27 17 22:26:39 <XenoBen> ah, so its causing it to break?
May 27 17 22:28:11 <SpyTec> Yep, causes it to stop
May 27 17 22:28:32 <SpyTec> https://stackoverflow.com/questions/13393768/posts-that-contain-a-semicolon-are-cut-off-after-semicolon
May 27 17 22:28:45 <SpyTec> That's the exact problem
May 27 17 22:29:19 <XenoBen> what happens if you send the ; as &#59?
May 27 17 22:30:16 <SpyTec> It gets displayed as &#59 in text
May 27 17 22:30:29 <XenoBen> but it all goes through fine?
May 27 17 22:30:45 <SpyTec> Yeah, just not decoded on Reddit's part
May 27 17 22:31:27 <XenoBen> in that file
May 27 17 22:31:31 <XenoBen> what line is handling it
May 27 17 22:32:28 <SpyTec> 101 is the replace with semi-colon
123 is the actual POST, where problem is
May 27 17 22:33:24 <SpyTec> If I run it as JSON.stringify (as it's shown in the file) together with `contentType: 'application/json'` (which I forgot to add in the file) it will simply just not update the sidebar at all
May 27 17 22:33:40 <SpyTec> Reddit returns 200, logs say wiki page has been edited, but sidebar is the same
May 27 17 22:36:10 <XenoBen> have you ran it through encodeURIComponent at all?
May 27 17 22:39:34 <SpyTec> Yeah I tried doing that on the payload itself
May 27 17 22:40:41 <SpyTec> ```javascript
var url = UrlFetchApp.fetch('https://oauth.reddit.com/r/' + SUBREDDIT + '/api/wiki/edit', {
payload: {
content: encodeURIComponent(sidebar),
page: 'config/sidebar',
reason: 'Automated Google Apps Script update @ ' + Utilities.formatDate(now, SCHEDULE_TIME_ZONE, 'd MMM h:mma z')
},
method: 'post',
headers: {'Authorization': 'bearer ' + authToken}
})```
May 27 17 22:40:48 <SpyTec> And you can see the result.. https://www.reddit.com/r/EliteDangerousMeta
May 27 17 22:41:01 <XenoBen> nice
May 27 17 22:41:16 <XenoBen> so its taking it at literal
May 27 17 22:41:20 <XenoBen> and not decoding
May 27 17 22:42:24 <SpyTec> Reddit must be able to decode somehow.. otherwise that would be stupid as you cutoff the sidebar if there's any deliminators, like semi-colon, in sidebar
May 27 17 22:43:37 <XenoBen> https://github.com/reddit/reddit/blob/master/r2/r2/controllers/wiki.py#L384
May 27 17 22:43:42 <XenoBen> it looks like it takes it as it is
May 27 17 22:46:23 <SpyTec> Soo nothing we can do?
May 27 17 22:46:38 <XenoBen> Doesnt look like it unless im missing something
May 27 17 22:46:44 <XenoBen> can ask andytuba when hes back next week
May 27 17 22:46:54 <SpyTec> Does seem kinda stupid..
May 27 17 22:47:11 <SpyTec> Just insert a semi-colon into r/IAmA sidebar template and their whole sidebar is broke, gg
May 27 17 22:47:16 <XenoBen> And if it was confirmed an issue, wouldnt expect it to be fixed
May 27 17 22:47:23 <XenoBen> i barely class reddit as open source anymore
May 27 17 22:47:36 <XenoBen> so many issues they just dont care about and dont update repo
May 27 17 22:47:37 <SpyTec> Yeah most likely..
May 27 17 22:47:55 <XenoBen> i18n has been broken on reddit since it was implemented
May 27 17 22:47:58 <XenoBen> never been fixed
May 27 17 22:48:12 <SpyTec> ¯\_(ツ)_/¯
May 27 17 22:49:59 <SpyTec> Wouldn't mind if you asked andy though.. would've thought json to be at least possible if not uri encoding
May 27 17 22:50:02 <SpyTec> Anyway, I'm off
May 27 17 22:50:27 <XenoBen> ill ping him when hes back
May 27 17 22:50:35 <SpyTec> Thanks 😛
May 28 17 17:00:09 <Snipe> Is it possible to setup an automod rule to remove any posts that dont start with a specific set of characters? in /r/needamod, I want to start making things a bit more neat and uniform. I would like it so every post title starts with the name of the sub, or the name of the user. So basically *every* post would have to start with r/ or u/
May 28 17 17:06:42 <beelzeybob> ```~title (starts-with): ["r/","u/"]
action: remove```
May 28 17 17:07:32 <beelzeybob> + whatever removal message you want it to send
May 28 17 17:15:58 <Snipe> oh that was easy. thanks
May 28 17 17:16:46 <Snipe> i can do basic automod stuff, but I have never really gotten far into it. seems easier than I thought.
May 29 17 21:52:58 <Shane> Recently discovered you can schedule posts on reddit using Date & Time on https://ifttt.com/
0⃣ **SIGN UP/IN**
🔹 click my applets in the top bar
🔹 click new applet
1⃣ **THIS** - Time & Date
🔹 Select how regular you want the post to be from the following (listed as shown on ifttt)
+ Daily
+ Hourly
+ Weekly (or multiple times a week)
+ Yearly
2⃣ **THAT** - Reddit
🔹 Connect reddit when prompted
🔹 Customise post to your liking
Not as customisable as automod but much easier to set up IMO
Jun 01 17 04:35:46 <chard> Anyone know of an easy integration to create multiple weekly posts, and then a stickied post with links to the other weekly posts?
Jun 01 17 05:29:18 <creesch> That sounds rather specific
Jun 01 17 05:29:40 <creesch> Probably easier to get someone to make a specific bot for that.
Jun 01 17 05:29:50 <creesch> Especially since you want to crosslink
Jun 01 17 06:27:45 <chard> creesch How can I get someone to make a specific bot? The there a useful sub? Or shall I find my own pet dev?
Jun 01 17 07:30:13 <SpyTec> There are request a bot subreddits
Jun 01 17 07:31:22 <SpyTec> Easiest way to code them (seeing as they will probably be posted on different dates) would be to search a specific flair that only one weekly post has and pick the newest post
Jun 01 17 09:10:20 <creesch> Or just keep a local database with the previous posts made
Jun 01 17 10:27:43 <SpyTec> True
Jun 01 17 17:40:09 <beelzeybob> We just make a custom search to filter weekly posts (sorted by new) and link people to the search
Jun 01 17 17:40:49 <beelzeybob> then use css to hide the search bar and other stuff so that people don't immediately know it's just a search
Jun 01 17 17:46:44 <chard> We're coding a bot
Jun 01 17 17:53:29 <beelzeybob> if you're just linkg to weekly posts, you dont need a bot for that
Jun 01 17 17:53:51 <beelzeybob> ¯\_(ツ)_/¯
Jun 01 17 20:32:29 <chard> I don't know how to do that with amod
Jun 01 17 20:35:02 <Deimos> you'd just have to link to searches, it works okay but isn't really the same
Jun 01 17 20:50:24 <chard> Oh, I see. Yeah, I'd rather not. I think we can get a bot to do it.
Jun 02 17 18:28:29 <AmericanDerp> Automod still can't filter against local per-subreddit karma, instead of global account karma, right?
Jun 02 17 21:00:54 <justcool393> No, it can't.
Jun 02 17 22:29:47 <AmericanDerp> Shame. Even if the mods can't see it (and we shouldn't see a user's per-sub values), I was thinking being able to filter off that plus some other values like, "Is the post on /r/all?" could be a useful thing to curb brigading. Match those, any new comments drop into the Filter bucket perhaps
Jun 03 17 16:17:14 <Balancegenerally> anyone have a ready made automod rule to shadowban anyone with a /u/ that contains a keyword? have a user ban evading and want a quick fix until the admins get to him
Jun 03 17 16:17:53 <creesch> That is an easy enough rule
Jun 03 17 16:22:01 <Balancegenerally> so there is this from the library but how do i change it to any /u/ that contains something?
```
---
author:
name: [username1, username2, username3]
action: remove
```
Jun 03 17 16:35:33 <Squingu> I think it should work if you just add `(includes)` after `name`.
Jun 03 17 16:38:09 <SnowPhoenix> Yup.
Jun 03 17 16:55:33 <Balancegenerally> so does this look right?
```
---
# user shadow ban, only use on ban evaders
author:
name (includes): ["SESsie"]
action: filter
```
Jun 03 17 16:58:00 <SnowPhoenix> Yup, assuming you want it to block messages from anyone with that in their nick, e.g. Somesessie, Nessessie, Sessieopolis, etc.
Jun 03 17 16:58:26 <SnowPhoenix> And of course the filter action puts them in the modqueue upon their removal so you get a chance to review them anyway.
Jun 03 17 16:58:48 <Balancegenerally> yep i want to be able to review in modque
Jun 03 17 16:58:57 <Balancegenerally> ok thanks for the help
Jun 03 17 16:59:06 <SnowPhoenix> 👍
Jun 04 17 11:31:26 <Boop> does anyone have a python script to post new posts to a discord webhook? (preferably with persistance, so it can be restarted if needed)
Jun 04 17 12:31:57 <Shane> use ifttt
Jun 04 17 12:32:04 <Shane> or zapier
Jun 04 17 12:35:11 <Shane> alright, I have a folder with short videos in that I've pulled from instagram to gif and post to my sub
Jun 04 17 12:35:48 <Shane> I would like a way to randomize the sort of them and have a way to mark it as posted that isnt deleting
Jun 04 17 12:36:47 <Shane> The script I'm using keeps the folder up to date with newer video posts and deleted/renaming the ones in there would just make it pull them again
Jun 04 17 12:37:18 <Shane> anyone know the best way to do this?
Jun 04 17 12:38:54 <Boop> a text file containing the file names of the already posted content?
Jun 04 17 12:43:31 <Boop> ```python
import glob, random
with open('posted.txt') as f:
already_posted = set(map(str.strip, f))
to_post = set(glob.glob('*')) - already_posted
item = random.choice(tuple(to_post)) # contains the random filename
# do whatever with item
with open('posted.txt', 'a') as f:
f.write(item+'\n')
```
Jun 04 17 12:43:35 <Boop> would work
Jun 04 17 12:44:23 <Boop> "work"
Jun 04 17 12:45:08 <Boop> if your script is using `youtube-dl`, you can use the `--download-archive` option to stop re-downloading after deletion iirc
Jun 04 17 12:46:15 <Shane> thanks, I'm using instalooter actually
Jun 04 17 12:50:50 <SpyTec> Still.. IFTTT doesn't work with Discord
Jun 04 17 12:51:54 <Boop> slack-compatible webhook I'm imagining
Jun 04 17 12:52:32 <Boop> 🤔 my issue is more along the lines of IFTTT is dirty data grubbers
Jun 04 17 12:55:57 <Boop> "lets just pick one of the more popular instagram accounts to test with i guess" `Downloading page 60` and continuing...
Jun 04 17 12:57:48 <Boop> 96 pages, also wow the videos are downloading way faster than the pages are
Jun 04 17 13:54:47 <Shane> Alright, second Idea
Jun 04 17 13:56:05 <Shane> add the files to a google spreadsheet and then I can add something if its posted
Jun 04 17 14:00:45 <Shane> can't find anything to add a file list to a spreadsheet, help? 😃
Jun 04 17 16:07:40 <Boop> _shrugs_
Jun 04 17 16:07:55 <Boop> google spreadsheet has its own api, but otherwise
Jun 04 17 16:09:05 <Boop> the command `DIR /B | CLIP` in windows will get a listing of the files in that folder
Jun 04 17 16:09:17 <Boop> and then you can just paste that into google spreadsheet
Jun 04 17 16:09:36 <Boop> easier than getting a bloody google api key
Jun 05 17 07:59:42 <creesch> Boop getting an api key isn't that hard?
Jun 05 17 08:00:04 <creesch> Making bots that make use of the google api is sometimes a bit finnicky though
Jun 05 17 08:00:24 <creesch> But rewarding, we have one bot that posts application done through google forms to our backroom sub.
Jun 05 17 08:00:57 <creesch> And one bot that posts emails send to a gmail adress we use for AMA coordination to the backroom as well. So everyone can get involved but only a few people actually need the password of the gmail account
Jun 05 17 20:30:09 <bobjrsenior> Initially connecting through the google api was a bit of a pain for me. Figuring out how to call the sheets api functions was a bit odd two, but not too bad after figuring it out. I didn't do any fancy things like only getting non-null rows or anything though
Jun 05 17 21:00:10 <Snipe> can someone check this and see if i have it all correct?
Jun 05 17 21:00:23 <Snipe> ```
title (starts-with): ["u/","/u/"]
author:
combined_karma: "< 500"
author:
account_age: "< 90 days"
action: remove
```
Jun 05 17 21:00:29 <Snipe> DAMMIT DISCORD
Jun 05 17 21:01:36 <Snipe> will that make sure the user meets the karma and age requirments on any post that starts with /u/ or u/
Jun 05 17 21:06:01 <Squingu> remove the second `author:` and just have both `combined_karma` and `account_age` together right after each other
Jun 05 17 21:06:12 <Snipe> ahh thank you
Jun 05 17 21:07:22 <Deimos> do you want it removed if they fail _either_ of those checks, or _both_?
Jun 05 17 21:07:41 <Snipe> either. they must meet both requirements
Jun 05 17 21:08:19 <Deimos> ok, then you also need to add (indented inside the `author:` section too): `satisfy_any_threshold: true`
Jun 05 17 21:08:31 <Snipe> thank you thank you.
Jun 05 17 21:09:54 <Snipe> ```
title (starts-with): ["u/","/u/"]
author:
combined_karma: "< 500"
account_age: "< 90 days"
satisfy_any_threshold: true
action: remove
```
so that will remove any post that starts with u/ or /u/ if the user doesnt have at least 500 karma and an account of 90 days then
Jun 05 17 21:10:02 <Snipe> you guys are great
Jun 05 17 21:11:31 <Squingu> wait no...you said either, just making sure this is right. this will remove posts from authors that have accounts newer than 90 days, even if they have more than 500 karma, or accounts with less than 500 karma, even if they are older than 90 days
Jun 05 17 21:11:34 <Squingu> did you want that?
Jun 05 17 21:13:23 <Snipe> im confusing myself sorry 😄
so if a user has 300 karma and an account of 6 months old, their post will be removed? I am assuimg that is what you mean. If so, then yes that is what i need it to do.
Jun 05 17 21:14:04 <Snipe> they must meet both requirements. so it will be removed if the check fails either.
Jun 05 17 21:16:17 <Squingu> Ah both, then you should remove what deimorz said to add, it will default to false.
If you have it set `true` it will remove posts from all of the following:
account age: 1 day, karma: 1
account age: 5 years, karma: 1
account age: 1 day, karma 1000
If you have remove the line it would only remove the first one in the list.
Jun 05 17 21:18:51 <Deimos> including that line should be correct, it's just a bit confusing to talk about
Jun 05 17 21:19:09 <Deimos> because if a user needs to meet both conditions (which is what ffsnipe said), you need to remove if either of them is not satisfied
Jun 05 17 21:20:17 <Deimos> it's a bit confusing because the rule needs to target people that don't meet the conditions, but you usually talk about it in terms of people that do
Jun 05 17 21:26:53 <Snipe> `FFSnipe hurt itself in its confusion!`
Jun 05 17 21:28:12 <Snipe> i think i understand though. with threshold:true, if the user has less than 500 karma OR account age of less than 90 days it will be removed. without threshold true, it would be AND instead of OR
Jun 05 17 21:28:53 <Snipe> <:hmme:312669111983538176> im making it worse. sorry guys.
Jun 05 17 21:29:15 <Shane> Threshold = any / nothreshold = all I believe
Jun 05 17 21:29:37 <Squingu> false is AND
true is OR
Jun 06 17 16:33:47 <SpyTec> Any way I can phrase it better? https://www.reddit.com/r/redditdev/comments/6fhp9w/uri_encoding_data_when_editing_wiki_articles/
Jun 06 17 16:44:10 <creesch> Hrm... never had that issue before
Jun 06 17 16:44:21 <creesch> I am going to blame it on the google app system
Jun 06 17 16:48:20 <creesch> SpyTec Are you manually creating the json or converting an object to a json string?
Jun 06 17 16:48:46 <creesch> wait I can have a looksie at the code
Jun 06 17 16:52:39 <SpyTec> Identical to this code, only with changed table row structure https://github.com/chromakode/reddit-sidebar-updater
Jun 06 17 16:52:40 <creesch> SpyTec you could try JSON.stringify(sidebar)
Jun 06 17 16:52:49 <SpyTec> I did
Jun 06 17 16:52:50 <creesch> Because you are sending a object into the post
Jun 06 17 16:52:58 <creesch> Which is weird to me
Jun 06 17 16:53:14 <creesch> but then you also need to change the header
Jun 06 17 16:53:22 <creesch> To the application/json thingy
Jun 06 17 16:53:39 <SpyTec> Yeah also tried that, but it didn't work
Jun 06 17 16:54:11 <creesch> really?
Jun 06 17 16:54:18 <creesch> If you did both?
Jun 06 17 16:54:26 <creesch> In the bottom post request?
Jun 06 17 16:54:26 <SpyTec> Wait, JSONify on payload and headers field?
Jun 06 17 16:54:43 <creesch> JSON.stringify and headers yeah
Jun 06 17 16:54:49 <creesch> Because... you are now sending json
Jun 06 17 16:56:33 <SpyTec> ```javascript
payload: JSON.stringify({
content: sidebar,
page: 'config/sidebar',
reason: 'Automated Google Apps Script update @ ' + Utilities.formatDate(now, SCHEDULE_TIME_ZONE, 'd MMM h:mma z')
}),
method: 'post',
headers: JSON.stringify({'Authorization': 'bearer ' + authToken})```
Jun 06 17 16:56:35 <SpyTec> Like that?
Jun 06 17 17:01:05 <SpyTec> Says headers is invalid though
Jun 06 17 17:01:42 <creesch> uhm no
Jun 06 17 17:02:04 <creesch> sec
Jun 06 17 17:05:11 <creesch> ```javascript
UrlFetchApp.fetch('https://oauth.reddit.com/r/' + SUBREDDIT + '/api/wiki/edit', {
payload: {
content: JSON.stringify(sidebar),
page: 'config/sidebar',
reason: 'Automated Google Apps Script update @ ' + Utilities.formatDate(now, 'America/Los_Angeles', 'd MMM h:mma z')
},
method: 'post',
headers: {
'Authorization': 'bearer ' + authToken,
'content-type': 'application/json'
}
})
```
Jun 06 17 17:05:20 <creesch> SpyTec
Jun 06 17 17:05:26 <creesch> Something like that
Jun 06 17 17:05:53 <creesch> I dunno if you can change the content-type somewhere else
Jun 06 17 17:06:56 <SpyTec> Ah yeah that's more or less what we've been testing. The UrlFetchApp does have its own contentType field
Jun 06 17 17:07:38 <SpyTec> Tried JSONify on content, everything in payload, the payload itself. Tried encodeURI the same way as well but no results
Jun 06 17 17:14:29 <SpyTec> With JSONify it says in modlog "edited wiki page (Page index edited)" and clears /wiki/index
Jun 06 17 17:14:31 <SpyTec> ¯\_(ツ)_/¯
Jun 06 17 17:15:25 <SpyTec> creesch
Jun 06 17 17:15:52 <creesch> Okay, let me recreate it with a toolbox call
Jun 06 17 17:16:12 <creesch> or a direct one... probably better
Jun 06 17 17:17:38 <creesch> Okay we do stringify the data for sure in toolbox btw
Jun 06 17 17:18:37 <SpyTec> JSON stringify?
Jun 06 17 17:21:55 <creesch> yeah, still need to try that call.
Jun 06 17 17:22:06 <creesch> I got sidetracked
Jun 06 17 17:26:12 <creesch> SpyTec it most certainly is something in the framework you are using.
Jun 06 17 17:26:46 <creesch> ```json
$.post(TBUtils.baseDomain + '/r/creesch/api/wiki/edit', {
content: 'te;st',
page: 'test2',
reason: 'good reason',
uh: TBUtils.modhash
});
```
Jun 06 17 17:26:58 <creesch> That is done through jquery post and works fine
Jun 06 17 17:28:00 <creesch> Also looking at the jquery documention they also just application/x-www-form-urlencoded; charset=UTF-8
Jun 06 17 17:28:02 <creesch> Oh...
Jun 06 17 17:28:07 <creesch> could it be the charset for you?
Jun 06 17 17:30:01 <SpyTec> Don't think so
Jun 06 17 17:30:44 <SpyTec> So are you using encodeURI there?
Jun 06 17 17:30:51 <creesch> jquery is
Jun 06 17 17:31:05 <creesch> http://api.jquery.com/jquery.ajax/
Jun 06 17 17:31:34 <creesch> point is, if it is a string it should just work
Jun 06 17 17:32:11 <creesch> SpyTec try sidebar.toString()
Jun 06 17 17:32:21 <creesch> Just to be sure it is actually a string
Jun 06 17 17:35:32 <SpyTec> Tried toString(), no luck
Jun 06 17 17:37:37 <SpyTec> If I just do encodeURI to the payload it just shows as encoded content on reddit
Jun 06 17 17:50:36 <SpyTec> If I do encodeURI on payload itself, wrap it all around, it clears index wiki, and gives no reason
Jun 06 17 17:52:29 <SpyTec> If I encode each field itself, post, reason, page, it will not decode on reddit's end
Jun 06 17 17:52:38 <SpyTec> creesch this is annoying 😦
Jun 06 17 17:52:52 <creesch> Yeah I can imagine.
Jun 06 17 17:53:06 <creesch> It really is something the google app engine does I figure
Jun 06 17 17:54:45 <SpyTec> `edited wiki page (Updated subreddit sidebar: Automated%20Google%20Apps%20Script%20update%20@%206%20Jun%205:51PM%20UTC)`
Jun 06 17 17:54:51 <SpyTec> 10/10
Jun 06 17 18:04:47 <SpyTec> `UrlFetchApp.fetch([https://oauth.reddit.com/r/EliteDangerous/api/wiki/edit, {headers={Authorization=bearer code}, method=post, payload={reason=Automated Google Apps Script update @ 6 Jun 6:01PM UTC, page=config/sid, =}, =}]...)`
Jun 06 17 18:09:16 <SpyTec> XMLHttpRequest isn't supported either
Jun 06 17 18:10:01 <SpyTec> creesch hate to bother you more but.. spot anything here that I'm missing? https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app
Jun 06 17 18:11:33 <creesch> Let me see...
Jun 06 17 18:21:59 <creesch> ```javascript
var apiCallData = {
'content': sidebar.toString(),
'page': 'config/sidebar',
'reason': 'Automated Google Apps Script update @ ' + Utilities.formatDate(now, 'America/Los_Angeles', 'd MMM h:mma z')
};
var headers = {
'Authorization': 'bearer ' + authToken
}
var options = {
'method' : 'post',
'payload' : apiCallData,
'headers' : headers
};
var response = UrlFetchApp.fetch('https://oauth.reddit.com/r/EliteDangerous/api/wiki/edit', options);
Logger.log(response.getResponseCode());
Logger.log(response.getContentText());
```
Jun 06 17 18:22:16 <creesch> SpyTec I'd say to give that a go.
Jun 06 17 18:22:27 <creesch> I cleaned it up and split up stuff so I had a better overview.
Jun 06 17 18:22:45 <creesch> It is basically the same call but now everything is consistent and it logs the response.
Jun 06 17 18:25:54 <SpyTec> Ran it with semi-colon in sidebar, no luck. Cuts off
Jun 06 17 18:26:08 <creesch> what does the logger output say?
Jun 06 17 18:26:13 <SpyTec> [17-06-06 20:25:38:009 CEST] 200.0
[17-06-06 20:25:38:010 CEST] {}
Jun 06 17 18:26:16 <creesch> that is what I am more curious about
Jun 06 17 18:26:20 <creesch> the hell
Jun 06 17 18:26:37 <creesch> That says the call went absolutely fine
Jun 06 17 18:26:55 <SpyTec> It did, but the deliminator just cut it short
Jun 06 17 18:27:22 <creesch> That makes absolutely no damn sense at all
Jun 06 17 18:27:31 <SpyTec> 😄
Jun 06 17 18:28:10 <creesch> okay uhm
Jun 06 17 18:28:35 <creesch> ```javascript
var apiCallData = {
'content': sidebar.toString(),
'page': 'config/sidebar',
'reason': 'Automated Google Apps Script update @ ' + Utilities.formatDate(now, 'America/Los_Angeles', 'd MMM h:mma z')
};
var headers = {
'Authorization': 'bearer ' + authToken,
'Content-Type', 'application/json;charset=UTF-8'
}
var options = {
'method' : 'post',
'payload' : apiCallData,
'headers' : headers
};
UrlFetchApp.fetch('https://oauth.reddit.com/r/EliteDangerous/api/wiki/edit', options);
```
Jun 06 17 18:28:37 <creesch> try again
Jun 06 17 18:29:52 <creesch> Also are you sure it is the delimiter not the header size?
Jun 06 17 18:30:33 <SpyTec> Now it cleared index
Jun 06 17 18:30:38 <creesch> Okay
Jun 06 17 18:30:48 <creesch> ```javascript
var apiCallData = {
'content': sidebar.toString(),
'page': 'config/sidebar',
'reason': 'Automated Google Apps Script update @ ' + Utilities.formatDate(now, 'America/Los_Angeles', 'd MMM h:mma z')
};
var headers = {
'Authorization': 'bearer ' + authToken,
'Content-Type', 'application/x-www-form-urlencoded;charset=UTF-8'
}
var options = {
'method' : 'post',
'payload' : apiCallData,
'headers' : headers
};
UrlFetchApp.fetch('https://oauth.reddit.com/r/EliteDangerous/api/wiki/edit', options);
```
Jun 06 17 18:30:52 <creesch> now try this one 😄
Jun 06 17 18:31:22 <SpyTec> 'Content-Type': btw, not coma 😉
Jun 06 17 18:31:36 <creesch> right yeah
Jun 06 17 18:31:58 <creesch> If that one doesn't work try the following
```javascript
var apiCallData = {
'content': encodeURIComponent(sidebar),
'page': 'config/sidebar',
'reason': 'Automated Google Apps Script update @ ' + Utilities.formatDate(now, 'America/Los_Angeles', 'd MMM h:mma z')
};
var headers = {
'Authorization': 'bearer ' + authToken,
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
}
var options = {
'method' : 'post',
'payload' : apiCallData,
'headers' : headers
};
UrlFetchApp.fetch('https://oauth.reddit.com/r/EliteDangerous/api/wiki/edit', options);
```
Jun 06 17 18:32:07 <creesch> Just going through all the steps 😛
Jun 06 17 18:32:58 <SpyTec> No luck on neither
Jun 06 17 18:33:34 <SpyTec> Last one encoded everything
Jun 06 17 18:33:42 <SpyTec> Showed up on reddit as encoded stuff
Jun 06 17 18:33:49 <SpyTec> `%23Service%20Status%0D%0A%3E%5B%5D(%23sbeditstart)%5BServers%3A%20O` etc
Jun 06 17 18:34:08 <creesch> Okay I am going to run it myself. One sec
Jun 06 17 18:43:15 <creesch> Well... The good news is that I can replicate the issue
Jun 06 17 18:45:10 <SpyTec> Bad news is that it's difficult to find out why it's bork
Jun 06 17 18:45:12 <creesch> Fixed it
Jun 06 17 18:45:17 <creesch> I think
Jun 06 17 18:45:23 <SpyTec> O_O
Jun 06 17 18:46:27 <creesch> dammit
Jun 06 17 18:46:50 <SpyTec> <:lul:297371306200924160>
Jun 06 17 18:57:05 <creesch> Okay I have no fucking idea what the hell is going on there
Jun 06 17 18:57:32 <creesch> except that I am 99% sure it is google fucking up their request
Jun 06 17 18:57:51 <SpyTec> Gg
Jun 06 17 18:58:44 <SpyTec> Well lets just wait for Google to fix the bug
Jun 06 17 18:58:50 <SpyTec> However long that will take
Jun 06 17 19:41:48 <SpyTec> Bug report submitted, time to start the timewatch
Jun 06 17 20:00:06 <chard> You mean start the calendar?
Jun 10 17 12:44:32 <Cleroth> Confused about how this auto-mod line works:
Jun 10 17 12:44:34 <Cleroth> ```title (regex, includes): >-
^\[[\w\s/|]+\]|\[[\w\s/|]+\]$|^\([\w\s/|]+\)```
Jun 10 17 12:44:45 <Cleroth> I've never seen the `>-` thing
Jun 10 17 14:52:15 <Deimos> That's one of the options for yaml "line folding" http://yaml.org/spec/1.2/spec.html#id2779048
Jun 10 17 14:53:14 <Deimos> In that case, basically just lets them put the regex on the next line without quotes, and no need to double-escape all the backslashes
Jun 10 17 15:16:11 <Cleroth> Thank you
Jun 12 17 00:38:53 <Cleroth> If I do `spam` on a YouTube link, does the spam filter take into consideration the media data, rather than just spam the domain? (eg. `media_author`, the channel's name)
Jun 12 17 00:40:21 <SpyTec> I've never heard of spam removal actually doing anything..
Jun 12 17 00:50:04 <Cleroth> Huh? It trains the spam filter on the sub. Sometimes you'll see stuff in the mod queue that will be red with just `[removed]`. That's the spam filter at work
Jun 12 17 00:50:44 <Cleroth> I know it trains on domains, I just don't know if for media links whether it'll look up the media data, or just spam the domain
Jun 12 17 00:55:22 <SpyTec> Nothing we've ever done has come up in modqueue though. Mostly just random stuff that is probably global banned
Jun 12 17 00:57:21 <Deimos> in theory clicking "spam" trains the filter, but in reality it almost never works the way you want it to
Jun 12 17 01:07:22 <Cleroth> I'm making a rule to ban a specific youtube user, so I guess I should just do `remove`
Jun 12 17 01:12:24 <justcool393> Deimos thats actually a real shame. I was hoping it was a bit smarter than that being a Bayesian filter and all
Jun 12 17 01:13:09 <justcool393> though it is pretty old and I'm guessing most of the anti spam is just manual rules
Jun 12 17 01:22:39 <Deimos> yeah the concept of a bayesian filter for it is pretty good, but it just doesn't seem to work at all
Jun 12 17 01:23:01 <Deimos> I pretty much wrote automod because I wanted a spam filter I could actually tell what to do, instead of making vague hints and hoping it might someday figure out what I wanted
Jun 12 17 02:56:37 <justcool393> Deimos yeah, gotcha. this is also why I wrote my own tool for cross-subreddit spam filtering and why others have wrote things like sentinelbot.
AutoMod and the other tools have been super helpful in that respect.
Jun 12 17 23:04:41 <Squingu> I wonder if comment/post karma will be displayed separately on new profiles in the end. I feel like hiding it has more disadvantages than it has advantages. And what if they end up only showing combined karma? Will AM still be able to do `comment_karma` and `post_karma` checks?
Jun 12 17 23:07:20 <cuddlefishcat> Behind every new profile, for now at least, is still the old profile. I wonder if they plan on getting rid of that?
Jun 12 17 23:07:41 <cuddlefishcat> I'm not exactly sure where automod pulls the karma from
Jun 12 17 23:09:46 <justcool393> the API. karma is publicly visible
Jun 12 17 23:09:56 <justcool393> Well, not the API now, but it used to
Jun 12 17 23:24:17 <cuddlefishcat> is it possible that they'll get rid of the overview function though?
Jun 12 17 23:25:26 <nt337> I really hope not
Jun 12 17 23:26:35 <SpyTec> They won't until they swap over to new system
Jun 12 17 23:26:51 <SpyTec> As in, after the co-existance between the new and old has ended
Jun 12 17 23:33:27 <cuddlefishcat> Yeah I still use the separated karma values
Jun 12 17 23:33:33 <cuddlefishcat> And the exact account age
Jun 12 17 23:34:27 <justcool393> Just so you know, if you use an API client, it should still be able to read both (it pulls the info from /r/<name>/about.json or w/e)
Jun 13 17 00:15:50 <pHorniCaiTe> so is there a library for discord that actually includes the API endpoint for user connections, or do I have to do it myself
Jun 13 17 00:31:18 <justcool393> pHorniCaiTe Probably.
Jun 13 17 00:31:34 <justcool393> Here's a few: https://discordapp.com/developers/docs/topics/libraries
Jun 13 17 00:31:45 <pHorniCaiTe> i just added the endpoint myself
Jun 13 17 00:32:20 <justcool393> Well, that works too
Jun 13 17 00:32:47 <pHorniCaiTe> lol
Jun 13 17 00:35:08 <pHorniCaiTe> now the question is how to work with them
Jun 13 17 00:46:13 <SpyTec> Magic
Jun 13 17 00:48:18 <pHorniCaiTe> ok so i can't find a single endpoint for _other_ users connections
Jun 13 17 00:48:26 <pHorniCaiTe> i can get my own connections just fine
Jun 13 17 23:43:05 <ClearlyCoder> https://www.reddit.com/r/FlairTimeBot/comments/6h3je9/banbot_tutorial/?utm_content=title&utm_medium=user&utm_source=reddit&utm_name=frontpage
Jun 14 17 18:46:33 <creesch> https://www.perspectiveapi.com/
Jun 14 17 18:46:47 <creesch> Anyone who tried to request access to that api and implement it?
Jun 14 17 18:50:22 <Deimos> interesting, I remember reading about that when it was announced
Jun 14 17 18:51:04 <creesch> Yup
Jun 14 17 18:51:29 <creesch> I just signed up, if it is works properly I want to turn it loose on comments
Jun 14 17 18:57:08 <Deimos> I don't know if they're granting access that easily, but definitely let me know if they do
Jun 14 17 19:03:33 <creesch> I dunno, I figured that a subreddit with a few million subscribers might catch their attention
Jun 14 17 19:16:43 <creesch> Or rather, I am hoping that will do it
Jun 14 17 19:51:32 <ClearlyCoder> creesch Deimos I'm doubtful. The website might be pretty, but look at this: https://cdn.discordapp.com/attachments/279692806442844161/324636998759350294/Screen_shot_2017-06-14_at_3.49.35_PM.png
Jun 14 17 19:51:50 <ClearlyCoder> https://cdn.discordapp.com/attachments/279692806442844161/324637075897057281/Screen_shot_2017-06-14_at_3.50.46_PM.png
Jun 14 17 19:52:01 <ClearlyCoder> ok so admittedly I was kind of mean to it
Jun 14 17 19:52:02 <ClearlyCoder> but still
Jun 14 17 19:52:07 <creesch> Well it is not wrong about the second one
Jun 14 17 19:52:12 <ClearlyCoder> not everyone is not going to use perfect english
Jun 14 17 19:52:18 <ClearlyCoder> 🤔
Jun 14 17 19:53:00 <ClearlyCoder> creesch https://cdn.discordapp.com/attachments/279692806442844161/324637368361418752/Screen_shot_2017-06-14_at_3.52.48_PM.png
Jun 14 17 19:53:00 <ClearlyCoder> lol?
Jun 14 17 19:54:04 <creesch> Well nobody said it would be perfect but this one https://cdn.discordapp.com/attachments/279692806442844161/324637075897057281/Screen_shot_2017-06-14_at_3.50.46_PM.png
Jun 14 17 19:54:12 <creesch> is actually rather hostile/passive agressive
Jun 14 17 19:54:38 <creesch> Because literally nobody is going to write that sentence and mean it in a positive way.
Jun 14 17 19:54:41 <ClearlyCoder> yep I was trying to see if it might detect that
Jun 14 17 19:54:48 <ClearlyCoder> of course that is a lot to ask lol
Jun 14 17 19:54:54 <ClearlyCoder> I don't think we're there yet as humans with tech
Jun 14 17 19:55:23 <ClearlyCoder> Just, the website is so fancy and it seems like a basic classifier lol
Jun 14 17 19:55:26 <ClearlyCoder> 🤔
Jun 14 17 19:55:38 <Deimos> it's certainly not suitable as the only moderator, but I think if it can help with things like pulling out things that are obviously hostile immediately that can be a good thing
Jun 14 17 19:55:53 <Deimos> it's similar to keeping a huge list of "problem words/phrases" in automod to report/remove
Jun 14 17 19:56:12 <ClearlyCoder> https://cdn.discordapp.com/attachments/279692806442844161/324638175311953921/Screen_shot_2017-06-14_at_3.56.01_PM.png
Jun 14 17 19:56:18 <ClearlyCoder> ....
Jun 14 17 19:56:29 <ClearlyCoder> it sounds like extra work deimorz
Jun 14 17 19:57:01 <ClearlyCoder> but that is a good point; it's probably at least a little better than those awful automod blacklist words
Jun 14 17 19:57:04 <creesch> Meh seems better than static automod rules for some instances
Jun 14 17 19:57:45 <ClearlyCoder> alright I'll stop picking on 😦
Jun 14 17 20:00:00 <Deimos> I'm sure it's good at some things and awful at other ones
Jun 14 17 20:00:13 <Deimos> could still be a useful signal for the ones it's good at though
Jun 14 17 20:02:54 <ClearlyCoder> It would be interesting to run it through some reddit comments and see how it does. Even if it gets a few right, enough false positives would drown it out and make it worthless. I'm fearing Reddit Spam Filter™ 2.0.
Jun 14 17 21:34:43 <justcool393> Huh, i hadn't heard about this
Jun 14 17 21:36:55 <justcool393> I'll try and apply for an API key. I moderate /r/google, and while people being jackasses isn't a huge problem, it can be helpful for edge cases.
Jun 15 17 02:35:27 <thirdegree> Deimorz we're probably gonna end up using that in some way with tsb
Jun 15 17 02:35:33 <thirdegree> not sure how yet 😄
Jun 15 17 02:36:13 <abe> whats tsb?
Jun 15 17 02:36:56 <thirdegree> https://layer7.solutions this thing
Jun 15 17 17:15:03 <creesch> Then it is probably set to do it only for posts :P
Jun 15 17 17:15:07 <creesch> What is the entire rule?
Jun 15 17 17:18:54 <Zeno> I figured it out. Our modqueue was damn clean so I just hadn't seen any triggers <_<
Jun 15 17 17:19:16 <Zeno> 16k online so I didn't think we were doing that well lol
Jun 16 17 06:47:10 <Cleroth> creesch I've yet to see this beta "user reports" button work even once. <:thunk:306966215060881408>
Jun 16 17 06:49:23 <justcool393> ?
Jun 16 17 06:50:58 <Cleroth> The button to see reports after they've approved
Jun 16 17 06:51:14 <abe> You can't can you?
Jun 16 17 06:51:33 <Cleroth> toolbox has a setting to add a button to see them
Jun 16 17 06:51:38 <Cleroth> I've been told it works sometimes
Jun 16 17 06:51:42 <Cleroth> But I've not seen it work even once
Jun 16 17 06:52:19 <abe> Oh
Jun 16 17 06:52:21 <abe> Toolbox
Jun 16 17 06:52:27 <abe> Where about son settings?
Jun 16 17 06:52:53 <Cleroth> queue tools
Jun 16 17 06:52:59 <Cleroth> `Add button to show reports on posts with ignored reports. `
Jun 16 17 06:53:34 <Cleroth> I've found if there's a number next to the ignore reports button, you can just unignore reports and refresh the page, and the reports are shown
Jun 16 17 06:53:49 <Cleroth> if you then reapprove it though, they'll be gone, and you'll have to actually report it again to see them
Jun 16 17 07:07:35 <justcool393> Cleroth I think it only works if someone reports it while reports are ignored.
Jun 16 17 07:07:50 <justcool393> thats why the number shows up
Jun 16 17 07:09:18 <Cleroth> Yes
Jun 16 17 07:09:23 <Cleroth> But the button doesn't work
Jun 16 17 07:10:02 <Cleroth> I mean, that works if you remove the ignore and refresh page, but the toolbox button doesn't work in that case either
Jun 16 17 07:13:20 <creesch> Cleroth it is a beta for a reason, also not functionality I build in :P
Jun 16 17 07:13:42 <creesch> We probably should remove it given how finicky the api is with it
Jun 16 17 07:13:57 <Cleroth> yea I was just curious how it's just never worked
Jun 16 17 07:14:01 <Cleroth> maybe it used to work, and just stopped working
Jun 16 17 07:14:05 <Cleroth> or I'm doing something wrong
Jun 16 17 07:14:52 <creesch> Let me look at the code
Jun 16 17 07:15:56 <creesch> Cleroth heh, uhm what module is it part of? :D
Jun 16 17 07:16:02 <Cleroth> queue tools
Jun 16 17 07:16:07 <Cleroth> (weirdly)
Jun 16 17 07:16:23 <creesch> Nah that makes sense actually
Jun 16 17 07:16:32 <creesch> Sec
Jun 16 17 07:16:42 <Cleroth> posts on the queue with "ignore reports" are pretty rare, only really happens when someone forgot to approve after clicking ignore
Jun 16 17 07:17:08 <Cleroth> but I suppose there isn't really a more fitting module
Jun 16 17 07:39:46 <creesch> Cleroth Hrm, interestingly enough it appears to only work on comments
Jun 16 17 07:40:00 <creesch> Not sure why though
Jun 16 17 07:40:56 <creesch> Let me have a closer look
Jun 16 17 07:41:05 <creesch> Ah
Jun 16 17 07:41:13 <creesch> Right, it works when you are in a thread for that thread
Jun 16 17 07:41:19 <creesch> So it doesn't work in listings
Jun 21 17 17:06:14 <Dave> If anyone is familiar with automoderator scheduled posts, please message me
Jun 21 17 17:16:45 <BobCobble> PM'd
Jun 22 17 14:00:50 <Gumdrops> Dave Why not just ask your question and then more people have an opportunity to help and benefit from answers in the chat
Jun 22 17 14:07:27 <creesch> ^
Jun 22 17 14:07:40 <creesch> Indeed, that is what these channels are for
Jun 22 17 14:12:54 <BobCobble> You've also got more point out when someone is talking bullshit.
Jun 22 17 14:13:06 <BobCobble> We sorted it in PMs anyway.
Jun 22 17 14:24:19 <SpyTec> wat
Jun 22 17 19:26:27 <Dave> Error updating from wiki configuration in /r/injustice2mobilegame:
Invalid event in section #1 - Invalid variable: set_suggested_sort
Jun 22 17 19:28:37 <BobCobble> screenshot?
Jun 22 17 19:28:42 <BobCobble> of what you put in
Jun 22 17 19:28:43 <BobCobble> not the error
Jun 22 17 19:29:05 <Dave> https://cdn.discordapp.com/attachments/279692806442844161/327530452644659201/Screen_Shot_2017-06-22_at_12.28.53_PM.jpg
Jun 22 17 19:31:26 <creesch> I guess new is not allowed then
Jun 22 17 19:31:32 <Dave> huh
Jun 22 17 19:31:51 <Dave> I've seen /r/Fitness do it
Jun 22 17 19:31:59 <Dave> Unless they're setting it to new manually everyday
Jun 22 17 19:32:44 <creesch> Nah I was joking, afaik that should work.
Jun 22 17 19:33:05 <Dave> I wonder what's wrong then
Jun 22 17 19:33:14 <creesch> Can you paste the actual code here? between three backticks on each side
Jun 22 17 19:33:20 <creesch> ` <-- those things
Jun 22 17 19:33:21 <SpyTec> Dave try with quotation marks
Jun 22 17 19:33:30 <XenoBen> DID YOU USE TABS OR SPACES
Jun 22 17 19:33:31 <SpyTec> ```yaml
---
author: AutoModerator
title: "[WEEKLY Q&A]"
set_suggested_sort: "new"
action: approve
---```
Jun 22 17 19:33:36 <SpyTec> Works for me
Jun 22 17 19:33:52 <Deimos> you guys are mixing two things
Jun 22 17 19:33:55 <BobCobble> i see why, he put that in the schedule
Jun 22 17 19:34:04 <Deimos> dave_lee's is on the schedule, SpyTec's is on the automod rules page
Jun 22 17 19:34:10 <BobCobble> ^
Jun 22 17 19:34:11 <SpyTec> Oh
Jun 22 17 19:34:15 <Dave> I used spaces
Jun 22 17 19:34:16 <Deimos> I *think* it's possible to do in the schedule too, but I don't remember for sure
Jun 22 17 19:34:21 <creesch> Oh THE automod man is here
Jun 22 17 19:34:23 <SpyTec> Yeah can't do that in schedule page
Jun 22 17 19:34:32 <BobCobble> Ah ok, my bad I suggested that. I thought you could.
Jun 22 17 19:34:34 <creesch> I always forget what is possible with schedule
Jun 22 17 19:34:41 <SpyTec> I tried previously and found no solution, hence why we have it in automod config now
Jun 22 17 19:34:47 <Deimos> me too, and I don't have access to the code that it's running any more, so ¯\_(ツ)_/¯
Jun 22 17 19:35:03 <XenoBen> should have installed a backdoor deimorz
Jun 22 17 19:35:36 <Dave> So should i change to doing it on the Automod Config?
Jun 22 17 19:35:40 <Dave> I don't really mind
Jun 22 17 19:35:43 <SpyTec> But yeah, workaround is just the automod rule I just posted 😛
Jun 22 17 19:36:27 <Dave> ```###### If you edit this page, you must [click this link, then click "send"](http://www.reddit.com/message/compose/?to=AutoModerator&subject=Injustice2MobileGame&message=schedule) to have AutoModerator re-load the schedule from here
---
first: "June 23, 2017 7:00 AM"
repeat: 1 day
set_suggested_sort: new
distinguish: true
link_flair_text: "Daily Q&A"
link_flair_class: daily
sticky: 2
title: "Q&A Daily Megathread - {{date %B %d, %Y}}"
text: |
**This is the official Thread to ask and answer questions for {{date %B %d, %Y}}**
Use this thread to ask basic Questions. Make sure to search the Subreddit for answers before asking.
***
**Helpful Links:**
[Important Tips and FAQ for New Players](https://redd.it/6afdg2)
[Guide: Combat, Combo's, and Arena](https://redd.it/6asqgr)
[Class Advantages Chart](https://redd.it/6altax)
[Tips, Tricks, and Backflips](https://www.redd.it/6ezyb2)```
Jun 22 17 19:39:15 <Dave> So just put ```author: Automoderator
title: ["Q&A Daily Megathread - {{date %B %d, %Y}}"]
set_suggested_sort: new``` in https://www.reddit.com/r/Injustice2MobileGame/wiki/edit/config/automoderator?
Jun 22 17 19:49:07 <SpyTec> `title: "Q&A Daily Megathread"` should work. No need for the date
Jun 22 17 19:49:26 <SpyTec> I'd also auto-approve it
Jun 22 17 20:12:36 <Deimos> approve won't do anything unless the post gets spam-filtered, which it really shouldn't
Jun 22 17 20:28:43 <Dave> Even if the title has the date? SpyTec
Jun 22 17 20:32:01 <SpyTec> Oh okay.. didn't know Deimos. I just added it since we check unmoderated
Jun 22 17 20:32:09 <SpyTec> Might just have approved them manually without knowing
Jun 22 17 20:32:13 <SpyTec> Would be nice to get auto-approve though
Jun 22 17 20:32:40 <SpyTec> Dave Yes, that's how ours work. We have full title `[WEEKLY Q&A] Ask and answer any questions you have about the game here. (June 16, 2017)`
Jun 22 17 20:32:52 <SpyTec> Can try it on a test sub if you're curious
Jun 22 17 20:33:07 <Deimos> yeah, the "won't approve unless it needs to" thing is really just a hold-over from when it was an external script
Jun 22 17 20:33:33 <Deimos> because I wanted to avoid the unnecessary API call (and 2 second wait) if the post didn't really need to be approved
Jun 22 17 20:33:45 <SpyTec> Yeah understandable
Jun 22 17 20:34:04 <SpyTec> I don't think Reddit would change that if we requested though if I'm honest.. at least not until new stack
Jun 22 17 20:34:29 <Deimos> honestly, I doubt reddit will touch automod significantly ever again
Jun 22 17 20:35:03 <SpyTec> Rip moderation flexibility
Jun 22 17 21:25:06 <tiz> I find it easier to do anything you want am to do to a scheduled thread in the configs page rather than the schedule page, easier to save and don't have to deal with the pm to update stuff
Jun 22 17 21:25:20 <Cleroth> is it possible to have auto-mod rules for a specific comment depth. I feel like a lot of rules could be disabled for deep comments. I couldn't really care less that some guy 15 comments deep decides to curse a lot
Jun 22 17 21:27:03 <Deimos> there isn't any way to do that, no
Jun 22 17 21:28:37 <Cleroth> Will there be?
Jun 22 17 21:28:38 <Cleroth> :))))
Jun 22 17 21:30:28 <Deimos> unlikely
Jun 22 17 21:35:23 <Cleroth> fair enough
Jun 22 17 21:37:25 <Deimos> there's been no significant automod updates in over 2 years now, and the chance of them is quite a bit lower now without me
Jun 22 17 22:15:32 <Cleroth> Oh, I thought you were still working on it
Jun 22 17 22:15:56 <Cleroth> That's actually kinda depressing. Feels like auto-mod will just remain the same forever
Jun 27 17 03:23:58 <Talon> Deimos wanna work at discord :P
Jun 27 17 03:24:46 <Deimos> Talon are you working there now?
Jun 27 17 03:58:18 <Talon> Deimos: starting on 7/10, actually
Jun 27 17 03:58:28 <Geo☆1088> :o
Jun 27 17 03:58:52 <Geo☆1088> new person to ping every time message sending gets fuzzy, hooray
Jun 27 17 03:58:55 <Talon> hahahah
Jun 27 17 03:59:15 <Talon> who's your old person? :P
Jun 27 17 03:59:42 <Geo☆1088> ~~we cycle through pinging b1nzy and getting banned~~ I didn't have one
Jun 27 17 03:59:46 <Talon> hahahahah
Jun 27 17 03:59:49 <Deimos> nice, what are you going to be doing there? similar legal-ish stuff?
Jun 27 17 04:00:07 <Talon> similarish. director of trust and safety :)
Jun 27 17 04:00:20 <Geo☆1088> Ooh, neat
Jun 27 17 04:02:02 <Deimos> congrats, that should be interesting
Jun 27 17 04:03:23 <Talon> hahah, definitely interesting :)
Jun 27 17 04:37:44 <nt337> nooooooooo come back to dm slack Talon
Jun 27 17 04:37:57 <Talon> i don't...think i ever left?
Jun 27 17 04:38:16 <nt337> oh
Jun 27 17 04:38:18 <nt337> carry on then
Jun 27 17 05:52:54 <Gumdrops> Talon congratulations!
Jun 27 17 07:58:57 <SpyTec> Talon As long as you don't turn into the more vocal guys I'm fine with it 😛
Jun 27 17 07:59:48 <SpyTec> Gf once told them that there's an issue with x, also explained that other bots of other libraries had same issues. They said it's her fault. 2 days later the issue had grown large enough that most servers went offline, gg
Jun 27 17 08:02:26 <twilexis> Talon so I need to bug you about /r/Ooer getting partnership, and that navigating the subreddit shouldn't be a requirement for it? 😄
Jun 27 17 08:05:05 <SpyTec> Only have had bad experiences with Discord
Jun 27 17 08:05:30 <SpyTec> "Doxxing is not something we will deal with. Contact authorities and we will give them data"
Jun 27 17 09:19:52 <creesch> Yeah, as a platform discord is pretty okay.
Jun 27 17 09:20:22 <creesch> As a company it gives me a shady childish vibe.
Jun 27 17 09:20:40 <creesch> Though that is probably the language they use everywhere that seems to be aimed at 14 year old gamers
Jun 27 17 09:21:10 <creesch> Buuuut since they even use that in their job descriptions it might also be the sort of people the company attracts...
Jun 27 17 09:21:29 <creesch> I wonder what that says about karrdian 😆
Jun 27 17 09:44:29 <twilexis> Mean lol
Jun 27 17 09:50:22 <creesch> Probably nothing at all as a company also needs normal people to work there besides the marketing folks
Jun 27 17 10:08:01 <abe> I agree
Jun 27 17 10:08:10 <abe> Discord is heavily aimed at gamers
Jun 27 17 10:08:31 <abe> We’re using it more like slack
Jun 27 17 10:09:54 <creesch> Somewhere in between, slack is more aimed at teams within companies.
Jun 27 17 10:11:13 <creesch> It basically comes down to there not being an alternative to discord that is as easy to use and popular.
Jun 27 17 10:11:49 <creesch> For /r/history for example it means that we went from one barely used irc channel to a hugely popular server with a bunch of topical actively used channels.
Jun 27 17 10:12:29 <creesch> I just wish it wasn't on a platform with an uncertain future. Then again, if it ever comes down to it we can always migrate to something else.
Jun 27 17 10:12:43 <abe> IRC is pretty popular
Jun 27 17 10:12:52 <abe> But discord is easier to use imo
Jun 27 17 10:13:26 <abe> Personally I’m not going to be rushing to migrate my pigifs to a new service
Jun 27 17 10:13:32 <creesch> IRC was popular but is now almost exclusively used by development teams and not by the general public.
Jun 27 17 10:14:03 <abe> I used to use it constantly
Jun 27 17 10:14:14 <creesch> Which is a trend that has been going on for years, even before slack it was becoming harder to get people to join on irc.
Jun 27 17 10:14:18 <abe> But in the last few years everything’s moved off
Jun 27 17 10:14:38 <creesch> I still use it for toolbox development and talking with the RES development team.
Jun 27 17 10:14:55 <creesch> Oh and whenever I have to bug firefox devs for something since mozilla still runs their own active irc server.
Jun 27 17 10:14:59 <abe> There isn’t really a tool meant specifically for what we’re doing
Jun 27 17 10:15:39 <abe> (Slack is for business; Discord is for gamers)
Jun 27 17 10:15:42 <creesch> Well there is, just not as easy as discord or as popular. There is http://matrix.org for example.
Jun 27 17 10:16:16 <creesch> Which basically offers much of the same stuff, but doesn't have the momentum and slightly less polished clients available.
Jun 27 17 10:17:24 <creesch> Though I guess that comes down to the same as what you said
Jun 27 17 10:17:48 <creesch> There isn't really a tool available for what we are doing. Not one people are willing to use anyway.
Jun 27 17 10:17:53 <abe> I’ve heard of Riot before actually.
Jun 27 17 10:18:07 <abe> Discord is best atm imo because is has a user base
Jun 27 17 10:18:16 <creesch> It has been brought up here multiple times in the past
Jun 27 17 10:18:16 <abe> Matrix / riot doesnt
Jun 27 17 10:18:21 <creesch> Yup
Jun 27 17 10:18:56 <creesch> Which is a shame, but I am not sure what to do about it. I rather have one popular open protocol rather than all the closed ones that are now popular.
Jun 27 17 10:19:28 <creesch> I hate juggling clients, which is why I went through the trouble of making that discord irc connection so I don't have to. but that isn't really feasible for most people.
Jun 27 17 10:22:13 <abe> On ProCSS we looked into a discord-irc bridge
Jun 27 17 10:22:26 <abe> But we got too lazy
Jun 27 17 10:22:52 <creesch> This isn't a bridge, this acts more like a gateway as that it connects to discord on one side and acts as an irc server on the other side for me to connect to with whatever ircclient I like.
Jun 27 17 10:23:10 <abe> Lots of our mods (actually mainly elfa) bitched about discord.
Jun 27 17 10:23:34 <creesch> Which works okay, but not perfect as it can't do things like codeblocks in a nice manner and also has trouble with some embeds
Jun 27 17 10:24:06 <creesch> So I still find myself switching to discord from time to time to make some things work.
Jun 27 17 14:09:55 <Ody> abe hard core irc people always seem to hate discord. Not really sure why. We have the same problem in /r/emulation.
Jun 27 17 14:11:56 <creesch> Well mostly because they have been able to use one client for a ton of different servers for decades.
Jun 27 17 14:12:14 <creesch> And if you really only care about text chat discord isn't actually that much of an upgrade.
Jun 27 17 14:12:49 <creesch> Then there is the fact that discord isn't an open protocol and currently running on VC fumes.
Jun 27 17 14:13:32 <creesch> Discord also has an absolutely cluttered interface and no choice of clients.
Jun 27 17 14:14:05 <creesch> being active on different servers is more cumbersome than with irc since you have to actively switch between them.
Jun 27 17 14:14:48 <creesch> So if you don't really care about voicechat, avatars and all that it doesn't really seem all that much as something you'd want to switch to.
Jun 27 17 14:15:33 <creesch> Even more so if you are still active on irc in other channels so you now have to use multiple clients.
Jun 27 17 14:16:34 <creesch> Ody ^ so now maybe you do understand ;)
Jun 27 17 14:28:31 <Ody> Nah. Discord is better because you still have to swap servers in the same way, there's actual modding capabilities, you don't have to use a bouncer, setup is quicker and easier, you don't have to memorize commands, it's more new user friendly (which is why IRCs don't get anywhere near the traffic as their Discord counterparts).
Jun 27 17 14:34:19 <creesch> I am on discord, who are you arguing with? I am just giving valid reasons for people maybe not seeing the benefits of discord.
Jun 27 17 14:34:44 <creesch> Also most of your arguments are invalid for someone who knows irc and already has a bouncer setup, but that is besides the point.
Jun 27 17 14:36:01 <creesch> If that is how you communicate with people on irc about it is no wonder they are going "fuck discord" since it is utterly dismissive towards something they have been happily using for ages.
Jun 27 17 14:36:06 <creesch> suit yourself though :)
Jun 27 17 15:04:23 <Talon> hahahah
Jun 27 17 15:05:05 <Talon> well, part of my job will be to make discord better :P
Jun 27 17 15:22:28 <creesch> Cool :)
Jun 27 17 15:23:28 <Talon> actually, i guess all of my job, now that i think about it
Jun 27 17 15:24:13 <creesch> Define "better" though ;)
Jun 27 17 15:24:47 <Talon> hahahah
Jun 27 17 15:25:18 <Talon> i think, primarily, safer/more trustworthy
Jun 27 17 15:25:49 <creesch> Right, a bit like some community admins on reddit?
Jun 27 17 15:25:50 <Talon> in part, dealing with legal issues that arise, and in the other part, adjusting and working through harassment/abuse/doxxing/other bad activity
Jun 27 17 15:26:13 <Talon> yeah, there's a parallel function at reddit (that i was actually on, while at reddit :P)
Jun 27 17 15:26:42 <creesch> Oh that is cool, we had a few people saying they would ban evade. Would that also be part of your job?
Jun 27 17 15:26:58 <Talon> hahah
Jun 27 17 15:27:06 <Talon> yes, almost certainly
Jun 27 17 15:27:07 <creesch> Couldn't actually find anything about that on the discord website.
Jun 27 17 15:27:13 <Talon> though not necessarily directly
Jun 27 17 15:27:45 <creesch> I wasn't asking for support right now 😂
Jun 27 17 15:27:47 <Talon> hahahahahah
Jun 27 17 15:27:49 <Talon> i know :)
Jun 27 17 15:28:44 <creesch> Is there actually something like a contact point discord server owners can use for this sort of stuff? Or are you too fresh into it for detailed answers about that stuff?
Jun 27 17 15:29:14 <creesch> Nevermind
Jun 27 17 15:29:24 <creesch> I should have read the backlog more carefully
Jun 27 17 15:39:57 <SpyTec> Talon As long as you get them to take action on doxxing and stuff I'm fine 😛
Jun 27 17 15:52:39 <Ody> creesch I don't use the "fuck irc" approach. I don't even tell people Discord is better. I just give them the benefits of using Discord. And they make up their own mind. But the reasons you gave for why IRC might be considered better don't feel like actual positives. So that's why I listed why the reason of why Discord is better.
Jun 27 17 16:04:08 <creesch> No a bunch of them are negatives towards discord :) also we were talking about why people would be reluctant to leave irc behind not selling irc to new users. As I said, when you already use irc and just care about text chat discord really doesn't have that much to offer while there are outright downsides if you are still in other irc channels.
Jun 27 17 16:05:38 <creesch> I really was trying to be helpful since you said you don't understand people wanting to stay with irc.
Jun 27 17 16:06:08 <creesch> That you don't feel that those are arguments you can agree with doesn't mean they aren't valid considerations for others.
Jun 27 17 16:25:25 <Ody> All you're saying is that people are irrational and don't like change. Discord has objectively better features. I'm not trying to shill for Discord. But when you have "x" feature that is smooth and automatic and "y" feature that is manual and difficult, "x" is always going to be better.
Jun 27 17 16:32:30 <creesch> And that is dismissive as fuck as it isn't purely about change.
Jun 27 17 16:33:52 <creesch> As I said, people are often on multiple irc servers and if they switch to discord for just one channel they still need to have an irc client running. Meaning they now have to juggle two clients which is just annoying.
Jun 27 17 16:34:54 <creesch> There are plenty of rational reasons for being apprehensive about using discord, that you can't find yourself in those reasons that is absolutely fine but really doesn't invalidate them.
Jun 27 17 16:37:15 <creesch> Also there are plenty of things where discord is not better depending on preferences. As I said I find switching between discord servers cumbersome compared to my favorite irc client, the interface is rather cluttered with a ton of stuff, the api is an overcomplicated mess if you develop for it where irc is incredibly simple to implement and so there are many more things.
Jun 27 17 16:37:59 <creesch> You are right, discord also has a lot to offer and if you want to set up community chat I totally understand basing it off discord as it is simpler for new users.
Jun 27 17 16:38:41 <creesch> Doesn't mean that it is always better to replace existing channels on irc from the perspective of those already there though.
Jun 27 17 16:38:53 <creesch> It doesn't have to be binary in that regard
Jun 27 17 16:39:14 <creesch> _ shrugs _
Jun 27 17 16:39:18 <creesch> Dunno why you insist on making it so
Jun 27 17 16:46:43 <creesch> Not to mention that for people that have been on irc for long enough discord isn't the first thing that is supposed to be the future. There actually have been a shitton of alternatives that have been promoted over the years and since the future of discord isn't all that certain considering it runs on VC it is understandable that those people are not really looking forward to yet another
Jun 27 17 16:46:44 <creesch> attempt.
Jun 27 17 17:04:45 <Ody> All the reasons you gave are literally related to people not wanting to change. I can accept that people are like that. And you don't have to agree with me, but choosing Discord over IRC is objectively the better option for communities.
Jun 27 17 18:06:15 <Deimos> creesch have you looked into or used Matrix at all?
Jun 27 17 18:06:38 <Deimos> looks like they're trying to be more of a next-gen IRC than a centralized thing like Discord/Slack
Jun 27 17 18:06:44 <creesch> Just a little bit, I very much like the idea behind it
Jun 27 17 18:06:48 <creesch> exactly because of that
Jun 27 17 18:07:00 <creesch> But so far the clients do not really leave a good impression.
Jun 27 17 18:07:38 <creesch> I mean riot works fairly well but is finicky to get to work properly which sort of defeats the purpose since one reasons irc is left behind because it is difficult to set up for first time users.
Jun 27 17 18:09:02 <Deimos> ah ok, I haven't tried any of it yet but just some general reading about it overall made it sound pretty interesting
Jun 27 17 18:09:11 <creesch> It certainly is
Jun 28 17 06:28:15 <twilexis> Is there an AutoMod config that will send us a modmail if AutoMod removes x amount of comments in the span of y hours?
Jun 28 17 06:31:35 <justcool393> twilexis I don't think so, unforunately. That'd actually be a good bot idea.
Jun 28 17 06:31:49 <Deimos> nope, it doesn't have any sort of concept of history or anything like that
Jun 28 17 06:32:10 <twilexis> That's fine, we can probably work around it.
Jun 28 17 06:32:24 <twilexis> We've been getting some spammers in Ooer, so want to start fixing that.
Jun 28 17 06:32:44 <twilexis> We'll get AutoMod to message OoerBot every time something is removed, and get OoerBot to notify us.
Jun 28 17 06:32:46 <justcool393> Speaking of spam....
Jun 28 17 06:33:00 <justcool393> Can you "un-train" the spamfilter?
Jun 28 17 06:33:28 <justcool393> twilexis You could also have it perodicially check the moderator log.
Jun 28 17 06:33:40 <justcool393> I don't think you can have it message a specific user either.
Jun 28 17 06:33:51 <twilexis> damn
Jun 28 17 06:34:41 <justcool393> How does OoerBot work?
Jun 28 17 06:34:58 <justcool393> and/or what does it do?
Jun 28 17 06:35:56 <twilexis> Uh.
Jun 28 17 06:36:12 <twilexis> williammck
Jun 28 17 06:36:14 <twilexis> ^
Jun 28 17 06:36:37 <williammck> currently: ABSOLUTELY NOTHING
Jun 28 17 06:37:14 <williammck> although it does have an oauth connector set up with the site we're working on
Jun 29 17 04:05:47 <Boop> anyone have an open source repost smacker bot?
Jun 29 17 04:06:54 <Boop> (and or some good opinions on perceptive image hashing?)
Jun 29 17 04:54:43 <thirdegree> Can't help you on the open source thing, but layer7 is atm very slowly working on integrating one into thesentinelbot
Jun 29 17 04:54:50 <thirdegree> and perceptive image hasing is really cool
Jun 29 17 04:55:08 <justcool393> ELI5 perceptive image hashing
Jun 29 17 04:55:22 <thirdegree> it's basically a fuzzy hash
Jun 29 17 04:55:35 <justcool393> Gotcha. Thanks.
Jun 29 17 05:05:54 <Deimos> it tries to determine if two images are "the same image" but can still work even if it's been re-compressed or isn't the same size, has been cropped a little differently, etc.
Jun 29 17 05:09:11 <Deimos> it's pretty interesting, it usually works by converting the image to grayscale and shrinking it *really* small, like far smaller than you think would work at all (in the range of 8 x 8 pixels)
Jun 29 17 05:09:30 <Deimos> http://tech.jetsetter.com/2017/03/21/duplicate-image-detection/
Jun 29 17 05:10:02 <justcool393> Gotcha. Thanks for the link. I'll have to read more about it; seems interesting.
Jun 29 17 06:00:23 <Talon> photodna?
Jun 29 17 06:02:09 <Talon> ah, not photoDNA, but that sort of fingerprinting/hashing is actually just about how pDNA works, deimorz.
Jun 29 17 06:03:30 <Talon> e.g. https://www.microsoft.com/global/en-us/news/publishingimages/ImageGallery/Images/Infographics/PhotoDNA/flowchart_photodna_Web.jpg
Jun 29 17 06:06:03 <Deimos> ah ok, interesting
Jun 29 17 06:06:27 <Deimos> looks like they're keeping it at a lot higher resolution and analyzing each chunk even more
Jun 29 17 06:07:30 <Talon> yeah, fascinating. though the inherent technology is very similar, which makes sense when you want to account for cropping/distortions/file-sizes
Jun 30 17 09:57:34 <Cleroth> isn't that probably how most reverse image searches work?
Jun 30 17 09:57:47 <Cleroth> google's reverse image tends to find pretty similar photos
Jun 30 17 09:58:07 <Cleroth> I guess maybe not photomanipulated, but it finds cropped stuff pretty well
Jun 30 17 18:41:01 <Justin> twilexis if you're open sourcing it, I can help you with that. I'm in the middle of writing an AM auditor for /r/heroesofthestorm
Jun 30 17 18:41:56 <Justin> To answer questions like "are these report rules effective?", "how often are these comments removed under this rule later approved?", etc.
Jun 30 17 18:42:07 <Justin> not quite the same, but related 😃
Jul 01 17 21:30:25 <justcool393> thirdegree How does the instant mod log thing work?
Jul 02 17 20:19:56 <SpyTec> justcool393 In layer7? Guessing SQL rows for actions of each mod per day
Jul 02 17 20:20:12 <justcool393> Yes.
Jul 02 17 20:20:42 <justcool393> I was just interested, because it was really really quick, even after I just added the bot to a subreddit I mod.
Jul 02 17 20:20:55 <justcool393> which gets a good few thousand mod actions
Jul 02 17 20:22:16 <SpyTec> Yeah well toolbox makes fetches for modlog actions per 100 actions or w/e, hence why it takes a while
Jul 02 17 20:22:26 <SpyTec> Loading a few rows from a database is quite fast
Jul 02 17 20:22:37 <SpyTec> Even if its a few thousand
Jul 02 17 20:25:19 <creesch> Yup, the modmatrix is one of those things that could be done much better with a bot that indexes the log so you do queries there.
Jul 02 17 20:25:34 <creesch> But not all mod teams have the means to do that, well with layer7 they do of course.
Jul 02 17 20:25:44 <creesch> But it is also why it is in toolbox still.
Jul 02 17 20:26:10 <creesch> There are a few functions like that work better with bots pulling stuff in the database.
Jul 02 17 20:26:20 <creesch> Modmail search would be an excellent example.
Jul 02 17 20:26:23 <SpyTec> I don't mind toolbox since I mostly just look for monthly activity. I wouldn't mind layer7 graphs for mod activity per month or week
Jul 02 17 20:27:40 <creesch> Also having stuff in databases allows you to do a lot more. Like this for example https://usercontent.irccloud-cdn.com/file/I61eEnEC/image.png
Jul 02 17 20:27:51 <creesch> To figure out coverage issues in your mod team.
Jul 02 17 20:28:24 <creesch> Queries for users that have a high amount of removals are also fun.
Jul 02 17 20:28:50 <creesch> https://usercontent.irccloud-cdn.com/file/YmEQqEez/image.png
Jul 02 17 20:29:30 <creesch> https://usercontent.irccloud-cdn.com/file/b9NFZoP6/image.png
Jul 02 17 20:34:19 <SpyTec> nice
Jul 09 17 09:02:30 <Squingu> Is it possible to report a submission by checking if a specific user has commented on it, like so?
```
type: comment
is_top_level: true
author: [gifv-bot]
parent_submission:
action: report
report_reason: Suspected gif submission```
Jul 09 17 09:04:31 <justcool393> Squingu you can do a bad hack with flairs but not officially
Jul 09 17 09:04:38 <justcool393> let me see if I can find it
Jul 09 17 09:04:50 <BobCobble> i just tried that Squingu and it looks like you can
Jul 09 17 09:04:56 <justcool393> oh you can
Jul 09 17 09:05:04 <justcool393> you must be able to do other actions then too
Jul 09 17 09:05:06 <BobCobble> it just worked for me
Jul 09 17 09:05:07 <justcool393> which is interesting
Jul 09 17 09:05:34 <justcool393> hmm... so you could technically write a thing that does "commands".
Jul 09 17 09:05:40 <justcool393> and do private removal reasons
Jul 09 17 09:05:44 <justcool393> and damn
Jul 09 17 09:05:48 <justcool393> actually theoretically a lot
Jul 09 17 09:05:51 <BobCobble> i have automod to toolbox style removal reasons
Jul 09 17 09:05:57 <abe> or you could just have your own bot
Jul 09 17 09:06:11 <justcool393> abe except bots take time and are limited by the API
Jul 09 17 09:06:18 <BobCobble> ```type: submission
flair_text: "Removed: R9"
reports: 1
action: remove
comment_stickied: true
comment: |
Hi /u/{{author}},
Unfortunately your {{kind}} has been removed for the following reason(s):
* **Reposts from this subreddit are not allowed here.**
If you feel this was removed in error or are unsure about why this was removed then please [modmail us.](https://www.reddit.com/message/compose?to=%2Fr%2FMovieDetails)
---```
Jul 09 17 09:06:22 <BobCobble> i have this
Jul 09 17 09:06:32 <BobCobble> so i can do toolbox removals kinda frmo mobile
Jul 09 17 09:06:39 <abe> whats the automod command for moderators exempt
Jul 09 17 09:06:46 <justcool393> moderators_exempt: true/false
Jul 09 17 09:06:46 <BobCobble> so from mobile i just change the flair text and report it
Jul 09 17 09:07:55 <Squingu> ah yea seems to work. thanks babes
Jul 09 17 09:08:35 <abe> BobCobble but whats to stop anyone from reporting it and then it will be removed?
Jul 09 17 09:08:45 <BobCobble> because the flair text must be changed
Jul 09 17 09:08:48 <abe> oh
Jul 09 17 09:08:57 <abe> so you must add the flair and then report it?
Jul 09 17 09:09:01 <BobCobble> yeah
Jul 09 17 09:09:15 <Squingu> don't let users set the flair, i use the same system on /r/itookapicture
Jul 09 17 09:09:19 <abe> nice
Jul 09 17 09:09:30 <BobCobble> yeah we let users set flairs but not edit the text
Jul 09 17 09:09:47 <BobCobble> you could also do it by css class
Jul 09 17 09:10:00 <Squingu> downsides are that if you do it in the wrong order it won't work, or if someone has manually approved the post beforehand automod won't be able to take action
Jul 09 17 09:10:07 <BobCobble> yep
Jul 09 17 09:10:11 <BobCobble> that is the problem
Jul 09 17 09:10:22 <BobCobble> it has to be totally unmoderated for it to do it
Jul 09 17 09:11:40 <abe> hmm
Jul 09 17 09:11:53 <abe> that would be an issue for 90% of my subs as I use the unmodded queue
Jul 10 17 03:25:20 <Madbrad200> Anyone used /u/subredditmoderation before?
Jul 10 17 03:38:53 <Haunty> Just glancing at their overview, they haven't been active for 4 months so I'd call it a bad bet
Jul 10 17 03:41:00 <Madbrad200> Mod suggested it becuause apparently automod can't fight spam.
I think they're just confused by the fact that you don't need automod modded
Jul 10 17 03:42:49 <Haunty> Yeah you only need AM modded if you want to schedule posts. That was changed awhile ago...
Jul 10 17 03:44:05 <Haunty> Honestly, idk very many extra spam-fighting bots that seem worthwhile. I tend to just program AM with lots of conditions
Jul 10 17 04:54:16 <thirdegree> I hear TSB is pretty good 😉
Jul 13 17 10:30:16 <creesch> I would check if those other subreddits are okay with your bot spamming their subs.
Jul 14 17 14:44:03 <Aevann> okay will do
Jul 14 17 17:21:44 <Zeno> Does anyone use a bot to send new users a welcome PM to your subreddit? Or is that too spammy
Jul 14 17 17:22:35 <creesch> Seems very spammy to me.
Jul 14 17 17:23:24 <beelzeybob> We filter people who have never posted to the sub before as a precaution and send them a message saying their post has been filtered, welcome to the sub. etc
Jul 14 17 17:23:28 <creesch> I have considered it before, but didn't because of how spammy it would be.
Jul 14 17 17:23:35 <beelzeybob> and no one has complained about it before
Jul 14 17 17:23:44 <creesch> Well I assumed comments as well.
Jul 14 17 17:23:56 <creesch> for posts it might be okay.
Jul 14 17 17:27:12 <beelzeybob> ah, yeah comments might be spammy
Jul 14 17 17:28:03 <beelzeybob> only a certain fraction of people make posts though
Jul 14 17 17:30:05 <beelzeybob> but if it's just once I don't see the harm, it would be like the stickies for r/all that introduce people to the rules/culture of the sub, so that they don't violate something and get a post removed
Jul 15 17 11:46:31 <creesch> Deimos Do you know if it is possible to filter the modlog on multiple actions instead of just the one?
Jul 15 17 20:40:43 <Deimos> Not sure, try changing the query string var to have a couple action names separated by a comma. If it works that would be the way to do it
Jul 15 17 21:09:12 <Dave> Can I force posts to have a flair?
Jul 15 17 21:09:22 <Dave> And make Automod comment on posts without them?
Jul 15 17 21:10:11 <BobCobble> You can have automod remove posts that don't have the trigger for the flair
Jul 15 17 21:10:39 <BobCobble> so you could make all posts have a tag or prefix or something to make it flair and if it doesn't have that then it removes
Jul 15 17 21:10:49 <BobCobble> but it can't remove because the user didn't add a flair
Jul 15 17 21:11:43 <Dave> Can you help me with doing that? I don't have much experience with automation besides scheduled posts
Jul 15 17 21:12:02 <BobCobble> Sure, what do you want the enforced trigger or prefix to be?
Jul 15 17 22:34:47 <PCJonathan> Did anyone who signed up for the perspective api hear anything yet?
Jul 15 17 22:37:09 <allthefoxes> What api?
Jul 15 17 22:40:29 <PCJonathan> The one that gives a toxicity score for comments. https://www.perspectiveapi.com/#/
Jul 15 17 22:42:16 <allthefoxes> huh
Jul 15 17 23:22:58 <abe> PCJonathan thirdegree has a flair enforcer bot
Jul 15 17 23:23:33 <thirdegree> true
Jul 15 17 23:23:42 <PCJonathan> OK.....?
Jul 15 17 23:23:56 <thirdegree> oh I can answer your question tho
Jul 15 17 23:23:56 <thirdegree> yes
Jul 20 17 04:58:01 <Boop> thirdegree having a link to the moderation list for the subreddit preference page wld be p good for user accessability
Jul 20 17 04:58:18 <thirdegree> hmm?
Jul 20 17 04:58:23 <thirdegree> not sure what you mean
Jul 20 17 04:58:45 <Boop> https://layer7.solutions/prefs/r/subredditname for easier access to changing bot perms when required
Jul 20 17 04:59:06 <thirdegree> oh
Jul 20 17 04:59:12 <thirdegree> you think?
Jul 20 17 04:59:28 <thirdegree> what are you trying to do that that would help with?
Jul 20 17 04:59:39 <Boop> add mail perms
Jul 20 17 04:59:48 <Boop> I had to click like, 4 times
Jul 20 17 04:59:55 <Boop> pls pity me
Jul 20 17 05:00:17 <thirdegree> one sec I'll ask the guy that runs the site
Jul 20 17 05:00:19 <nt337> kwwxis can probably help
Jul 20 17 05:00:51 <kwwxis> with what
Jul 20 17 05:01:01 <nt337> this
Jul 20 17 05:01:05 <Boop> just on that inline code block imo https://cdn.discordapp.com/attachments/279692806442844161/337458872597872641/unknown.png
Jul 20 17 05:02:50 <kwwxis> ok sure
Jul 20 17 10:31:00 <abe> What would I have to do in automod to make a post be filtered if it’s by a specific user and has one report.
Jul 20 17 10:49:04 <BobCobble> ```type: submission
author: [username]
reports: 1
action: filter```
Jul 20 17 10:49:07 <BobCobble> that should work
Jul 21 17 18:05:12 <HH0S> hm?
Jul 21 17 19:20:23 <Aevann> hey bois
Jul 21 17 19:20:30 <Aevann> I'm trying to collect subs
Jul 21 17 19:20:37 <Aevann> and I have some free time
Jul 21 17 19:20:52 <Aevann> so I'll make any bots you ask me to make in exchange for modding me in your sub
Jul 21 17 19:21:02 <Aevann> PM me if that sounds good
Jul 21 17 19:23:03 <creesch> No sounds shitty
Jul 21 17 19:23:10 <Aevann> boo u
Jul 21 17 19:23:43 <creesch> _shrugs, it is though_
Jul 21 17 19:23:47 <Aevann> :(
Jul 21 17 19:24:45 <creesch> Just the same as people that just try to get to be modded in as many subs as possible to be "css mod".
Jul 21 17 19:25:02 <creesch> Why not just mod subs about stuff you care about and make bots for subs you think are worth it.
Jul 21 17 19:25:03 <Aevann> hey at least I'm honest about it lol
Jul 21 17 19:25:26 <creesch> Well that is true
Jul 21 17 19:25:29 <Aevann> >Why not just mod subs about stuff you care about and make bots for subs you think are worth it.
well it's not that easy, nobody accepts my applications
Jul 21 17 19:25:31 <creesch> So I am though
Jul 21 17 19:25:47 <cuddlefishcat> i don't get the point of modding subs you don't care about
Jul 21 17 19:25:55 <creesch> Maybe you should work on your applications
Jul 21 17 19:25:58 <Aevann> neither do I, but it feels good
Jul 21 17 19:26:11 <cuddlefishcat> just seems tedious to me
Jul 21 17 19:26:27 <Aevann> it's the same as any game where you collect points
Jul 21 17 19:26:39 <BobCobble> not really
Jul 21 17 19:29:44 <MajorParadox> The problem is mostly likely the subs you apply to don't want people who don't care. They want people who will contribute and be part of the community and team
Jul 21 17 19:29:54 <MajorParadox> Just a guess, though 😉
Jul 21 17 19:30:09 <cuddlefishcat> if you just start collecting subs, it's not going to look good for when you apply for subs you actually are interested in
Jul 21 17 19:31:14 <Aevann> here's the subbies I'm subbed to (i.e. the ones I care about) https://pastebin.com/Ckj6tRfR
Jul 21 17 19:34:43 <nt337> my subscription list is a mess
Jul 21 17 19:34:49 <nt337> ~3k subbies iirc
Jul 21 17 19:35:46 <MajorParadox> Wow, I thought I had a lot. Only 311
Jul 21 17 19:36:21 <MajorParadox> I wonder who has the most? 🤔
Jul 21 17 19:48:17 <nt337> I just checked and I've got only 1500
Jul 21 17 19:48:21 <nt337> better than I thought
Jul 21 17 20:04:43 <cuddlefishcat> i have uhh
Jul 21 17 20:04:44 <cuddlefishcat> 86
Jul 21 17 22:21:21 <Musely> 40 something.
Jul 22 17 01:43:36 <beelzeybob> I'm only subbed to like 12
Jul 22 17 01:43:56 <beelzeybob> I'm not even subscribed to r/dragonage and r/anthemthegame (which I mod)
Jul 22 17 01:44:15 <beelzeybob> mostly because I already read them compulsively
Jul 22 17 02:04:41 <nt337> I usually just have a quick glance on my front page and go to either my multis or RES shortcuts
Jul 22 17 02:09:24 <Deimos> I think I'm only subscribed to 3 subreddits, everything else is in multis
Jul 22 17 03:04:52 <allthefoxes> sodypop has a lot, I know
Jul 22 17 03:05:12 <nt337> tfw sody's not in here
Jul 22 17 03:06:25 <abe> sodys the best admin
Jul 22 17 05:20:22 <justcool393> nt337 isn't he in DM slack?
Jul 22 17 05:20:28 <justcool393> I'm not so I wouldn't know
Jul 22 17 06:05:45 <nt337> yeah justcool393
Jul 22 17 06:08:40 <justcool393> damn it
Jul 22 17 06:08:50 <justcool393> I keep think you are Abe nt337
Jul 22 17 06:09:33 <justcool393> orange, 3 numbers, same old profile pic, etc
Jul 22 17 06:20:42 <cuddlefishcat> ^
Jul 22 17 06:26:13 <nt337> hey, he stole my profile pic originally justcool393. it's been mine 😉
Jul 22 17 06:26:31 <justcool393> haha
Jul 22 17 06:29:03 <abe> i keep thinking nt is me
Jul 22 17 06:29:05 <abe> its annoying
Jul 22 17 06:29:17 <abe> im going to change mine back
Jul 22 17 06:29:35 <nt337> 😐
Jul 22 17 06:47:41 <twilexis> nt337 please change your profile pic. Abe has sullied it.
Jul 22 17 06:48:46 <abe> twilexis I had it first.
Jul 22 17 06:48:51 <abe> and mine is different
Jul 22 17 06:49:04 <twilexis> *sullied*
Jul 22 17 06:50:30 <nt337> > I had it first.
I mean, I have been using it for over a year
Jul 22 17 06:51:03 <abe> not on discord
Jul 22 17 06:51:49 <nt337> ¯\_(ツ)_/¯
Jul 24 17 01:30:05 <Aevann> Deimos hey man
Jul 24 17 01:30:13 <Deimos> howdy
Jul 24 17 01:30:40 <Aevann> Is there an equivalent to "action: filter" in praw ?
Jul 24 17 01:30:48 <Aevann> That I can use in my bot
Jul 24 17 01:30:55 <Deimos> nope, there's no external way to do that
Jul 24 17 01:31:09 <Aevann> I figured :(
Jul 24 17 01:31:21 <abe> could you use praw to give a post a flair
Jul 24 17 01:31:26 <Aevann> Yup
Jul 24 17 01:31:33 <abe> and then set automod to filter when theres a flair
Jul 24 17 01:31:35 <Deimos> it's been requested a fair amount, and I think 13steinj even wrote a pull request to implement it, but it's never been added
Jul 24 17 01:32:32 <Aevann> You were really the best admin, why did you quit <:WaitWhat:302103412097548288>
Jul 24 17 01:33:11 <abe> because fuk reddit
Jul 24 17 01:33:27 <abe> good admin is an oxymoron
Jul 24 17 01:34:37 <Deimos> there were lots of reasons, mostly it comes down to reddit no longer being the company I wanted to work for. The company it is now doesn't really resemble the one I was hired at
Jul 24 17 01:35:39 <Deimos> when I started there were like 15 people, now there are over 200, it's completely different
Jul 24 17 01:37:49 <Aevann> Thank you for saying this, I really really appreciate your honesty
Jul 24 17 01:38:15 <Aevann> You're still the best admin in my book <3
Jul 24 17 01:39:39 <MajorParadox> *Aevann's Book of Admins*. Sounds interesting 😉
Jul 24 17 01:45:49 <Deimos> aw thanks - I don't want to bitch about it too much or anything, it was still a great place to work overall and I'm glad I got to be involved with it for so long
Jul 25 17 18:39:33 <Squingu> Could anyone write a userscript for the new reports system so it would automatically move to the next page when a radio button is selected and in the end would also close the last card (block/unsubscribe) automatically?
Jul 25 17 19:06:52 <creesch> What use would that serve
Jul 25 17 19:07:21 <creesch> I mean, the majority of your users will never install such a script
Jul 25 17 19:07:36 <Deimos> I think it's for personal annoyance, not users :b
Jul 25 17 19:20:56 <BobCobble> Has automod suddenly stopped working for anyone else? It's working on one sub but three other subs it's not doing anything.
Jul 25 17 19:21:28 <Squingu> yes
http://www.redditstatus.com
Jul 25 17 19:23:32 <Deimos> new search deployment going well 💥
Jul 25 17 19:25:13 <Squingu> creesch yeah it's a personal annoyance, we use flair+report for submission removal with automod
Jul 25 17 19:25:46 <BobCobble> Well I'm glad it's not just me, it happened right after I updated something on an automod config so I thought it was that. Then I realised it wasn't doing anything on nearly any sub.
Jul 25 17 19:28:13 <cuddlefishcat> oh shit is automod down
Jul 25 17 19:28:31 <cuddlefishcat> I have to remove a ton of posts now 😱
Jul 25 17 19:32:30 <BobCobble> yeah i had to *manually* remove a post
Jul 25 17 19:32:41 <BobCobble> seems to be back
Jul 25 17 19:32:47 <Squingu> ew
Jul 25 17 19:32:51 <BobCobble> i just got a comment reply on a test post i did 24 minutes ago
Jul 25 17 19:33:03 <BobCobble> thanks autogod
Jul 26 17 13:03:16 <rbevans> anyone around to answer an automod question for me?
Jul 26 17 13:04:16 <creesch> Pro-tip: in chat channels just ask the question and someone will eventually be around to answer it. Now people have to ask you what the question is and you might not be around for a while.
Jul 26 17 13:04:23 <creesch> also yes, I am around.
Jul 26 17 13:05:10 <rbevans> ah thanks
Jul 26 17 13:05:46 <rbevans> my luck hasn't been great with throwing a question out so figured I'd ask if anyone was around.
Jul 26 17 13:06:07 <creesch> Just ask the question already 🤣
Jul 26 17 13:06:07 <rbevans> anyways I'm aware that automod can't go back in time, so how can I get automod to leave a comment on flair change? The use case is /r/all flair that admins setup
Jul 26 17 13:06:37 <creesch> I am not sure it can. It can act on flairs when things are posted
Jul 26 17 13:06:53 <creesch> So if someone comments it can act based on the threads flair. But not when a thread gets flaired.
Jul 26 17 13:07:27 <rbevans> so this is an example of where this works https://www.reddit.com/r/tattoos/comments/6ofucs/not_the_usual_style_i_see_in_rtattoos_but_i_still/dkh04b1/
Jul 26 17 13:07:49 <rbevans> actually disregard
Jul 26 17 13:07:50 <rbevans> maybe not
Jul 26 17 13:08:02 <creesch> I think they got it customly setup
Jul 26 17 13:08:03 <BobCobble> It can only act when something is first edited, reported, commented or posted.
Jul 26 17 13:08:11 <rbevans> I think so as well
Jul 26 17 13:08:20 <rbevans> yeah I knew of reports and edits
Jul 26 17 13:08:27 <creesch> I have set up our own bot in /r/history to do this.
Jul 26 17 13:08:40 <rbevans> so a bot would be the next option
Jul 26 17 13:08:51 <BobCobble> r/requestabot
Jul 26 17 13:08:55 <creesch> https://www.reddit.com/r/history/comments/6p81t3/uss_constitution_old_ironsides_back_in_bostons/dknedrh/?context=3
Jul 26 17 13:08:57 <BobCobble> Or someone here
Jul 26 17 13:09:47 <creesch> I'll did up the code I used for that one, though it is written in nodejs with a reddit library that apparantly is no longer around. :/
Jul 26 17 13:11:23 <rbevans> Ok well I at least feel more confident in my findings in that this isn't possible with Automod
Jul 26 17 13:11:26 <rbevans> thanks
Jul 26 17 14:17:58 <buzznights> How do you get the admins to flair your posts with r/all when applicable? r/mma doesn't have that.
Jul 26 17 14:22:24 <creesch> Not sure if they still do that or if it was something only deimorz did
Jul 26 17 14:23:39 <buzznights> I'm always late to the party :/
Jul 26 17 14:23:46 <buzznights> thanks, creesch
Jul 26 17 14:27:47 <creesch> It is fairly easy to make a bot that does it for you.
Jul 26 17 14:28:27 <creesch> The issue is that most people want a bot in python which I can't provide since I write my bots with node.js 😛
Jul 26 17 14:29:36 <buzznights> All of that was pure Greek to me - if it works on the sub then I'm down lol
Jul 26 17 14:31:18 <creesch> Well you would need to get someone one your team to host the bot and then either build it or have enough knowledge to host one someone has build for you.
Jul 26 17 14:31:57 <creesch> All the bot has to do is watch /r/all and if it sees your subreddit apply a flair.
Jul 26 17 14:32:45 <buzznights> I'm sure someone knows how to do that..or maybe not. I'll check in with them. Bots are still magic to me lol
Jul 26 17 14:33:52 <creesch> https://gist.github.com/creesch/ce0668c6d0ea4671f10a229c9d69b7bc
Jul 26 17 14:34:25 <creesch> That is the code for the bot we use
Jul 26 17 14:34:44 <creesch> It also has a second function in that it removes all replies to a sticky comment.
Jul 26 17 14:34:51 <buzznights> Oh awesome - thank you!
Jul 26 17 14:35:20 <buzznights> Right now, I'm watching to see if we hit all and posting a stickied comment
Jul 26 17 14:35:27 <buzznights> it's tedious
Jul 26 17 14:35:31 <creesch> One catch, the api library I used is apparantly no longer maintained. It still is available through `NPM` but is no longer available on github.
Jul 26 17 14:35:46 <creesch> I know you have no idea what I just said 😛
Jul 26 17 14:35:58 <creesch> but if you hand it to someone who knows node.js they will understand 😉
Jul 26 17 14:36:27 <buzznights> Exactly! Imagine the confused dog face twist lol
Jul 26 17 14:36:46 <creesch> lol 😄
Jul 26 17 14:37:50 <creesch> https://cdn.discordapp.com/attachments/279692806442844161/339778347066458112/puzzleddog.png
Jul 26 17 14:38:48 <buzznights> like looking in a mirror sometimes 😆
Aug 01 17 14:54:10 <rbevans> can I use the same webhook for sevearl IFTTT recipes or does each recipe need its own webhook?
Aug 01 17 14:56:03 <SpyTec> You can use one for all
Aug 01 17 14:56:19 <rbevans> ok thanks
Aug 02 17 15:11:43 <Cleroth> the mod mail macros are supposed to be from the "edit mod macros" on the toolbox config right?
Aug 02 17 15:11:52 <Cleroth> I've added a new macro but it's not showing up, cleared cache and all
Aug 02 17 15:12:15 <Shane> does it work incognito?
Aug 02 17 15:13:26 <Cleroth> yup
Aug 02 17 15:15:18 <Cleroth> so how do I make it clear its cache X_X
Aug 02 17 15:15:22 <Cleroth> ctrl f5 doesn't work either
Aug 02 17 15:15:23 <Cleroth> ¯\_(ツ)_/¯
Aug 02 17 15:16:18 <Shane> where have you tried?
Aug 02 17 15:16:36 <Cleroth> where have I tried what?
Aug 02 17 15:16:52 <Cleroth> Ctrl F5 on reddit, in mod mail
Aug 02 17 15:20:39 <Shane> if you go to the subreddit you editted on I think theres a clear cache button in the toolbox config
Aug 02 17 15:20:59 <Shane> also in the toolbox preferences in the left bottom corner
Aug 02 17 15:24:14 <Cleroth> oh, yea, I did it in the toolbox preferences
Aug 02 17 15:24:48 <Cleroth> I don't see anything cache related in the toolbox config for the sub
Aug 02 17 15:25:55 <Cleroth> oh actually, clearing cache from toolbox preferences while _in_ the mod mail fixed it
Aug 02 17 15:29:37 <Shane> odd
Aug 02 17 15:58:03 <creesch> Not really due to how it all works, Deleted User 3e12342f I am betting you had other reddit tabs open at the same time as well 😛
Aug 02 17 15:58:14 <creesch> Next toolbox update does improve clearing of the cache somewhat.
Aug 02 17 15:59:41 <Deleted User 3e12342f> goddamit creesch
Aug 02 17 16:00:19 <creesch> It is clearly mentioned when clearing cache...
Aug 02 17 16:00:30 <creesch> Oh
Aug 02 17 16:00:31 <creesch> dammit
Aug 02 17 16:00:58 <creesch> Cleroth dammit why does your name start similarly to Deleted User 3e12342f 's name?
Aug 02 17 16:01:16 <creesch> Discord tab complete remains idiotic
Aug 02 17 16:02:13 <Deleted User 3e12342f> I like how the only times I come in here is when you accidentally ping me 😛
Aug 02 17 17:04:39 <Cleroth> creesch no other Reddit tabs open
Aug 02 17 23:06:51 <Haunty> Pretty sure this is the right channel for help on creating an IFTTT applet to get notified for 'mods needed' posts in r/needamod
Aug 02 17 23:07:45 <Haunty> So sharing here. I'm using RSS Feed as the trigger --> "new ffed item matches"
Aug 02 17 23:08:12 <Haunty> my major question: how do I format the "keyword or simple phrase"?
Aug 02 17 23:08:41 <Haunty> I initially wrote just "mods needed" (the flair) and nothing's been working so I think I need to do a series of different keywords/phrases-?
Aug 02 17 23:09:21 <Haunty> Should it be written like: "Moderators needed" OR "Mods needed" OR "Looking for mods"
Aug 02 17 23:09:22 <Haunty> ?
Aug 03 17 07:54:31 <Shane> Haunty go back and use 'any new feed item' and use this link: ```https://www.reddit.com/r/needamod/search.rss?sort=new&restrict_sr=on&q=flair%3Amods%2Bneeded```
Aug 03 17 07:55:29 <Shane> or you could use reddit search as the trigger with ```subreddit:needamod flair:mods+needed``` as the search
Aug 03 17 08:03:40 <Shane> I reccomend using pushbullet for the notification
Aug 03 17 16:18:37 <Zeno> Is AutoMod busted? I have a schedule for `first: "August 03 2017 8:00 AM -05"` and nothing was posted
Aug 03 17 16:19:41 <SpyTec> Iirc it might sometimes fail if it's during commonly posted hours and it's struggling to keep up. Change it to 7:50 or 8:10 maybe
Aug 03 17 17:29:16 <pussgurka> Automod is not fool proof, hiccups do happen from time to time unfortunately 😛
Aug 04 17 16:16:26 <Zeno> Automod can auto-lock every single thread right? 🤔
Aug 04 17 16:18:30 <SpyTec> ```yaml
type: submission
set_locked: true```
Aug 04 17 16:18:50 <SpyTec> Zeno
Aug 04 17 16:23:23 <Musely> reseph rn https://cdn.discordapp.com/attachments/279692806442844161/343066398031085592/Pandemicshutdowneverythingfoundthisandthoughtitwas_dcb107_3228778.png
Aug 04 17 16:26:53 <Zeno> ya literally /r/ffxivrecruitment in like 2 hours from now
Aug 04 17 16:27:31 <Musely> Hmm, why?
Aug 04 17 16:28:08 <Zeno> Rule 2 has pretty much made commenting pointless
Aug 04 17 16:28:30 <Zeno> And then we had someone post something with slightly misleading text in it and people jumped down their throats
Aug 04 17 16:30:51 <Musely> Oh boy, witch hunting.
Aug 04 17 16:31:05 <Musely> I took a look at the front page and there's hardly any comments so I guess that's a factor.
Aug 04 17 16:31:12 <Musely> Can't miss what wasn't there in the first place.
Aug 04 17 16:31:30 <Zeno> Yeah it's meant as a recruitment board so we're just going to close down comments
Aug 04 17 20:43:26 <Zeno> The deed is done. https://www.reddit.com/r/FFXIVRECRUITMENT/comments/6rlyh3/meta_all_threads_are_now_autolocked/
Aug 04 17 20:44:55 <BobCobble> check the reports 😂
Aug 04 17 20:45:40 <Jernik> share the reports ❤
Aug 04 17 20:46:14 <Zeno> WHO DID THAT REPORT 😠
Aug 04 17 20:46:18 <cuddlefishcat> Reported for mod abuse
Aug 04 17 20:46:21 <BobCobble> totally wasn't me
Aug 04 17 20:46:25 <Zeno> bob plz
Aug 04 17 20:46:57 <BobCobble> reseph pls
Aug 04 17 21:33:52 <Musely> <:AlistairLUL:329777266114560000>
Aug 05 17 19:05:55 <Boop> so question: if I am programming something to be installed on a phone or whatever, I use a client_secretless oauth thingo right? but if I do that, I need to re-auth every hour?
Aug 05 17 19:07:28 <Cleroth> Something weird happening with auto-mod, we have a submission w ith this title: `Wyoming embraces wind energy, and the jobs that come with it - "Wind turbine jobs are expected to be the fastest growing jobs in America between now and 2024, growing 108%."`
Auto-mod sends this to small comments: `I have a question regarding the removal of this {{kind}}: [{{title}}]({{permalink}}\)) if you feel that this was an error.`
But we're getting this:
Aug 05 17 19:07:29 <Cleroth> https://cdn.discordapp.com/attachments/279692806442844161/343470084410441728/unknown.png
Aug 05 17 20:05:29 <Boop> ~~praw hits r/:subreddit/about before getting any modmail information, requiring `read` scope for no reason, woo~~
Aug 05 17 20:08:49 <Boop> https://cdn.discordapp.com/attachments/279692806442844161/343485521223483392/unknown.png
Aug 07 17 12:55:07 <Madbrad200> Anyway to whitelist emoji?
---
~title (regex, full-exact): >-
[a-zA-Z0-9 \µ\°\”\“\™\®\²\³\^\´\`\§\!\,\.\–\~\\\|\@\#\$\€\£\%\^\&\*\(\)\_\\+\-\=\{\}\;\'\:\"\/\<\>?\[\]αβψδεφγηιξκλμνοπρστθωςχυζΑΒΨΔΕΦΓΗΙΞΚΛΜΝΟΠΡΣΤΘΩΧΥΖ]+
action: spam
action_reason: "Foreign Spam"
---
Aug 07 17 13:15:08 <SpyTec> There have been examples on AutoModerator sub. Maybe Deimos still has links to one of them. Idk who the other guy who asked in here was however
Aug 07 17 13:15:15 <SpyTec> Search might help? 😛
Aug 07 17 13:15:18 <twilexis> We've done it on r/Ooer, lemme check how
Aug 07 17 13:15:45 <twilexis> FUCK I forgot I turned CSS back on.
Aug 07 17 13:16:41 <twilexis> hm, seems we just eliminated 🅱 🅱
Aug 07 17 13:16:49 <twilexis> ```title+body (includes): [\U0001F171, \U0001F17F]
action: remove
action_reason: Dank memes brigade```
Aug 07 17 13:17:52 <creesch> Yeah the only way to do it is probably to define all character codes of all emoji as they are simply characters.
Aug 07 17 13:18:30 <creesch> Though...
Aug 07 17 13:18:37 <creesch> can't you do range?
Aug 07 17 13:20:13 <creesch> Of course not, they are nicely spread out.
Aug 07 17 13:20:46 <twilexis> Don't be silly, that would make it easy.
Aug 07 17 13:21:24 <creesch> Give it a few years and regex libraries will have a way to identify emoji.
Aug 07 17 13:21:29 <creesch> Not going to be of much help now.
Aug 07 17 13:21:34 <creesch> http://unicode.org/emoji/charts/full-emoji-list.html
Aug 07 17 13:21:42 <creesch> Here is a full list, good luck ;)
Aug 07 17 13:22:58 <Madbrad200> <:NotLikeSagiri:337805011872645121>
Aug 07 17 13:23:25 <creesch> though there probably is a text list somewhere you can relatively easily convert to automod.
Aug 07 17 13:35:16 <creesch> https://gist.github.com/creesch/6dccd62247731035f8c1a15232bec05c
Aug 07 17 13:35:51 <creesch> Madbrad200 ^ I just pulled that from the page I linked. No idea if it works as I have no clue if the leading zeros are needed.
Aug 07 17 13:38:33 <creesch> Also, apparantly there are almost 6k characters codes for emoji (though some of the codes are doubles)
Aug 07 17 13:39:57 <twilexis> how many characters can go into automod?
Aug 07 17 13:40:33 <creesch> Oh I didn't even consider that
Aug 07 17 13:40:52 <creesch> You can probably shorten that list though, there must be a few ranges in there.
Aug 07 17 13:50:00 <SpyTec> Hahaha that list creesch. Don't kill us 😄
Aug 07 17 13:50:41 <twilexis> it took forever to load
Aug 07 17 13:54:50 <SpyTec> pfft, weak PC twilexis
Aug 07 17 13:55:04 <twilexis> yep
Aug 07 17 13:55:07 <twilexis> I have a potato.
Aug 07 17 13:55:35 <twilexis> Gonna start a gofundme, low graphics are torture.
Aug 07 17 14:05:47 <creesch> You probably need more memory if that list caused you issues
Aug 07 17 14:06:44 <creesch> though if you need more memory your pc is probably in a state that it needs more of everything. It is just from all the cheapish upgrades you can do on potato grade computers it is often the most effective.
Aug 07 17 14:06:53 <SpyTec> <https://downloadmoreram.com>
Aug 07 17 14:07:28 <BobCobble> ^ good site, totally legit and works 200%
Aug 07 17 14:08:12 <creesch> evil people in here
Aug 07 17 14:10:38 <twilexis> ye, I need a new PC entirely. It's very low-end.
Aug 07 17 14:11:10 <twilexis> I can't play half of the games in my steam library without it stuttering.
Aug 07 17 14:12:06 <creesch> right, for games you probably want a total upgrade.
Aug 07 17 14:20:15 <Deimos> Some regex implementations support matching against different unicode properties, python's standard one doesn't support it though http://regular-expressions.mobi/unicode.html
Aug 07 17 19:22:33 <Cleroth> why not go with the whilelist?
Aug 07 17 19:23:01 <Cleroth> filter them and then you just add to it as you find false positives in the mod queue
Aug 08 17 01:19:19 <Haunty> Does anyone have a thing where you can get notified when you hit another 100 or 1k or whatever subscribers in a subreddit?
Aug 08 17 01:19:42 <Haunty> An app, extension, bot, anything?
Aug 08 17 01:36:19 <multi-mod> I have a quick praw question for anyone that's worked with it
Aug 08 17 01:37:02 <multi-mod> with the new version of praw how can I catch all praw related exc eptions?
Aug 08 17 01:49:20 <Deimos> `except PRAWException:` ?
Aug 08 17 02:15:52 <multi-mod> oh hi Deimorz, long time no talk
Aug 08 17 02:16:00 <multi-mod> how have you been? enjoy post reddit life?
Aug 08 17 02:30:43 <Deimos> I'm pretty good, nothing too exciting really
Aug 08 17 02:38:51 <multi-mod> it looks like it might be praw.exceptions and prawcore.PrawcoreException
Aug 08 17 02:38:59 <multi-mod> http://praw.readthedocs.io/en/latest/code_overview/exceptions.html
Aug 08 17 02:39:14 <multi-mod> I can't find PRAWExceptions in the documentation
Aug 08 17 02:46:21 <Deimos> I was just looking at the code on github: https://github.com/praw-dev/praw/blob/master/praw/exceptions.py
Aug 08 17 03:07:27 <multi-mod> ahh, thanks 👌
Aug 08 17 06:44:10 <creesch> Haunty I dunno if that data is available in the api but if it is you just need a script to check on a periodic basis
Aug 08 17 20:27:55 <Haunty> creesch okay thanks --- I'll look into it 😃
Aug 08 17 21:27:02 <Deimos> I'm not certain but I think it's likely that updating automoderator scheduled posts no longer works
Aug 08 17 21:27:33 <BobCobble> it's never really worked that well lol
Aug 08 17 21:27:42 <Deimos> well yeah, but I mean that I think it's literally impossible to update now
Aug 08 17 21:27:45 <BobCobble> ah
Aug 08 17 21:27:57 <BobCobble> i've had days where it's been impossible but after about 10 pms it usually works
Aug 09 17 00:35:52 <Haunty> I tried to create an overly complicated automod schedule for /r/horrorbookclub that never ended up working out
Aug 09 17 00:37:19 <Haunty> I had to schedule 2 'fiction of the month' nomination posts on the 23rd of every month, and 2 'reminder' posts for me to edit them a day prior to them...
Aug 09 17 00:38:38 <Haunty> The concept was good. Testing for it was a disaster.
Aug 10 17 14:01:23 <creesch> Haunty `https://www.reddit.com/r/SUBREDDIT/about.json`
Aug 10 17 14:01:29 <creesch> that contains the subscriber count.
Aug 10 17 19:29:30 <Haunty> Oooo thank you!
Aug 11 17 12:04:11 <Deleted User 3e12342f> hey people
does anyone here know if automod can have a rule for a spefic comment's karma reaching a threshold?
say: reporting comments that have a negative score?
Aug 11 17 12:36:52 <creesch> Isn't possible
Aug 11 17 12:37:16 <creesch> automod only responds to events so to speak and vote changes do not fall under those.
Aug 11 17 12:37:34 <creesch> So you can make it act on reports, edits and when something new is posted.
Aug 11 17 12:47:44 <twilexis> huh, I thought I've seen it notify in modmail when a comment has -4 karma
Aug 11 17 12:52:02 <creesch> that is probably for a user
Aug 11 17 12:52:38 <creesch> And maybe you can check the post score when something happens but I am fairly certain you cannot do anything based on votes changing.
Aug 11 17 13:29:09 <Deleted User 3e12342f> yeah I know of the user_karma setting
Aug 11 17 13:29:23 <Deleted User 3e12342f> but it seem you're right and you can't check a comment's karma
Aug 11 17 16:30:35 <ClearlyCoder> Deleted User 3e12342f you could request one in /r/requestabot, i cant imagine it would take more than 5 minutes for someone to make
Aug 11 17 16:31:53 <ClearlyCoder> ```Python
for comment in r.subreddt("xxx").comments(limit=1000):
if comment.score < 0:
comment.report("Low score!")```
Aug 11 17 17:45:27 <Deleted User 3e12342f> ClearlyCoder it's not so important that I think it warrants having a bot
Aug 14 17 08:52:49 <creesch> Deleted User 3e12342f late to the part, but why not? You don't need a seperate bot but all that sort of stuff I put in one general purpose bot which has made modding much easier.
Aug 14 17 21:57:50 <Haunty> Hey guys! Question: is there a bot out there that bans *all* bots? Like poetry, wiki links, mirror bots, etc?
Aug 14 17 22:17:15 <SpyTec> Haunty /r/BotBust
Aug 14 17 22:20:25 <Haunty> I've used botbust before though (on a way bigger subreddit than the one I'm thinking about right now) and inside of like 2 months the thing had only removed like 3 bots
Aug 14 17 22:21:11 <SpyTec> It's banned quite a few bots for us
Aug 14 17 22:40:09 <Haunty> Okay that's good. Might give it another go then 😃
Aug 15 17 00:59:49 <ClearlyCoder> It only bans them if they comment on the subreddit. That said, it can be slow -- you can always help others out by submitting to the subreddit when you notice a new spammer.
Aug 15 17 01:00:05 <ClearlyCoder> Did you find yourself doing a lot of bot-banning Haunty?
Aug 15 17 01:02:45 <Haunty> That's a great idea about submitting bots to the sub (oddly I wasn't really thinking about that, lol). At the same time I get the impression that some subs *like* certain bots & wouldn't want them removed by botbust whereas I'm trying to remove *all* nonhuman comments no matter how useful they may be to other subs.
Aug 15 17 01:03:15 <Haunty> I'll be getting around to reviewing my (and my other mods') bot bans from other subs to pre-emptively ban them from the one I'm working on though, yeah, haha
Aug 15 17 14:08:49 <BobCobble> Is AutoModerator down for anyone else?
Aug 15 17 14:10:21 <creesch> Seems like it is working alright, just checked automods profile.
Aug 15 17 14:10:28 <creesch> did get a reddit error though
Aug 15 17 14:10:36 <creesch> So reddit itself might be borking a bit
Aug 15 17 14:12:25 <BobCobble> Hmm, i just set it to remove all posts (mods exempt) on a test sub and it's not doing anything.
Aug 15 17 14:14:12 <creesch> Why not use the spamfilter for that?
Aug 15 17 14:14:40 <creesch> I am assuming you want to set it so all posts need to be approved first?
Aug 15 17 14:15:09 <creesch> Because if you set spam filter to `all` it will filter everything but automod will still act on it as normal.
Aug 15 17 14:15:31 <BobCobble> Oh, i was just double checking Automod on a test sub using those rules. Just to see if it was one sub or on other subs too
Aug 15 17 14:15:41 <BobCobble> Auto removing everything was just the test rule i gave it
Aug 15 17 14:15:44 <creesch> ah 🙂
Aug 15 17 14:16:16 <creesch> Okay if you exempted mods, did you test with a non mod account?
Aug 15 17 14:16:54 <BobCobble> I tested with a mod account but using `moderators_exempt: false`. 🤦 just re read what I put
Aug 15 17 14:18:28 <BobCobble> It was randomly not working earlier too
Aug 15 17 14:18:39 <BobCobble> This is over 3 different subs
Aug 15 17 14:18:41 <Shane> <:blobthinkingeyes:293616166838992896>
Aug 15 17 14:19:34 <BobCobble> Someone reported similar issues on /r/automoderator
Aug 15 17 14:21:36 <creesch> Then it is probably a bit broken
Aug 15 17 14:31:46 <SpyTec> And we can't even blame Deimorz anymore
Aug 15 17 14:33:21 <creesch> I don't think we had any right ever to blame deimorz anyway
Aug 15 17 14:33:44 <creesch> considering he was insane enough to build the thing, support it and then convince chief admin to implement it in reddit
Aug 15 17 14:43:00 <SpyTec> Definitely
Aug 15 17 17:30:57 <Boop> Does anyone have a codebase for a repost detection/removal bot?
Aug 15 17 17:32:45 <Boop> and/or would someone be fine helping me reason through how one should be made
Aug 15 17 17:42:14 <creesch> Hrm difficult
Aug 15 17 17:42:25 <creesch> Depending on what you want to detect
Aug 15 17 17:42:50 <creesch> For images it is a rather difficult task unless you want to go solely based on titles.
Aug 15 17 17:44:10 <creesch> For titles you could start logging them in a database and do a 1 on 1 lookup for each new post.
Aug 15 17 17:44:57 <creesch> If you want to do it fancy you even do it with a string comparison algorithm. Something like this https://www.npmjs.com/package/string-similarity (there probably is something similar to be found for python)
Aug 15 17 17:45:31 <creesch> Articles should be fairly easy to do since you can just compare urls, though that doesn't discount people adding fluff in an url in order to make it pass.
Aug 15 17 17:46:52 <creesch> For images it becomes very very tricky since you can hardly store all posted images so you probably want to just look at one little area.
Aug 15 17 17:47:07 <creesch> Though then you run into thing like jpg compression, resized images, etc.
Aug 15 17 17:48:39 <Deimos> there's a thing called perceptual hashing that can work quite well for that, but definitely a little more complicated to implement: http://tech.jetsetter.com/2017/03/21/duplicate-image-detection/
Aug 15 17 17:49:55 <creesch> Oh that looks pretty neat indeed
Aug 15 17 17:50:34 <creesch> but the tl;dr still is that a repost bot that is accurate takes a fair bit of work though much of it does depend on the subreddit content.
Aug 15 17 17:52:07 <Deimos> yeah, depends mostly on what type of reposts you're trying to detect
Aug 15 17 17:53:32 <Deimos> with articles sometimes you can do things like load the destination url and then see if there's a `<link rel="canonical">` tag, which can help avoid unnecessary url stuff they added
Aug 15 17 17:54:18 <creesch> True, though that requires loading the article and scraping the html.
Aug 15 17 17:55:19 <creesch> that duplicate image detection article is interesting though. Going to look into it a bit
Aug 15 17 17:55:46 <Deimos> it's pretty neat, definitely not perfect but seems to work surprisingly well for basically reducing every image to a 9x9 grayscale version
Aug 15 17 17:59:20 <creesch> score https://github.com/mgmtio/dhash-image/blob/master/index.js
Aug 15 17 17:59:48 <creesch> probably need to clean it a bit but lazy googling ftw :P
Aug 15 17 18:00:24 <creesch> There are actually a ton of implementations for various languages to be found on github.
Aug 15 17 18:02:32 <creesch> Though I probably shouldn't be lazy and do it myself considering how simple it is.
Aug 15 17 18:05:34 <Boop> yeah the hashing part I'm not *too* worried about, since 90% of the variations are going to be compression artifacts + resolution differences
Aug 15 17 18:06:14 <Boop> and most pre-existing things work with that fine
Aug 15 17 18:06:56 <Boop> its just, the workload itself, in terms of comparing across large sets, though I guess its kinda obvious in retrospect
Aug 15 17 18:07:38 <creesch> Well that is just your administration, once you have everything you want to compare neatly in a database it shouldn
Aug 15 17 18:07:45 <creesch> 't be too difficult.
Aug 15 17 18:08:03 <Boop> loldatabases
Aug 15 17 18:08:05 <creesch> The difficult task is deciding how to compare stuff
Aug 15 17 18:08:33 <creesch> Well if you are masochist you can do flatfile storage.
Aug 15 17 18:08:35 <Boop> generally its `absolute(hash1 - hash2) < someval` iirc
Aug 15 17 18:08:52 <creesch> But otherwise, yeah database to store your hashes and shit in.
Aug 15 17 18:09:46 <Boop> database-backed sounds fun just in being able to use joins to do the compare, but for that reason I probably should just flatfile it
Aug 15 17 18:10:09 <creesch> Eh
Aug 15 17 18:10:29 <Boop> also not havfting to setup a database, or setting up users, or worrying about moving the code between servers later, etc
Aug 15 17 18:10:35 <creesch> select * from database where database.hash = inputhash
Aug 15 17 18:10:35 <Boop> maybe if I port it to lambda
Aug 15 17 18:11:16 <Deimos> use sqlite
Aug 15 17 18:11:21 <creesch> exactly
Aug 15 17 18:11:25 <creesch> lambda is overkill for this.
Aug 15 17 18:12:30 <creesch> and sqlite database are as portable as they get
Aug 15 17 18:13:12 <Boop> json files it is!
Aug 15 17 18:13:41 <creesch> Again, if you want to make it extremely difficult on yourself.
Aug 15 17 18:14:01 <creesch> This is a perfect application for storing your shit in a neat database you can query.
Aug 15 17 18:14:12 <Boop> more difficult on my CPU than anything 🤔
Aug 15 17 18:14:15 <creesch> as I assume you want to keep the entire subreddit submission history in there.
Aug 15 17 18:14:29 <Boop> only 2 months worth or so
Aug 15 17 18:15:09 <Boop> plus also lower res images so changing hash later isn't going to be an insane pain in the ass
Aug 15 17 18:15:10 <creesch> Eh suit yourself, I am going to do something else as I already have said everything that I think needs to be said about this. good luck!
Aug 15 17 18:15:21 <Boop> thanks!
Aug 15 17 20:10:55 <Boop> ```
6ttfh1 331182323423759697183581310289120129089
6ts6zy 149801394041337105403238506974754513523
...```
Aug 15 17 20:11:04 <Boop> progress! just need to write the everything else!
Aug 15 17 20:33:12 <Boop> tfw you pick the wrong programming style for the wrong language for the wrong task, ;-; https://cdn.discordapp.com/attachments/279692806442844161/347115534099415040/unknown.png
Aug 15 17 20:39:19 <Deimos> you should try not to write code like that, if you ever have to work with other people that's not going to be acceptable at all
Aug 15 17 20:57:51 <Boop> ;-;
Aug 15 17 20:58:48 <Boop> the obvious solution is to write a derivitive to support my programming style
Aug 15 17 21:00:34 <Deimos> the main thing would just be to stop using that `pipe` function (I don't even know where that came from) and assign to some intermediate variables, there's really no reason to avoid them
Aug 15 17 21:00:44 <Deimos> that alone would make it about 10 times easier to read
Aug 15 17 21:01:23 <Deimos> you also generally shouldn't need `map` or `filter` in python, using list or dict comprehensions can usually do the same thing and is simpler
Aug 15 17 21:03:35 <Boop> fwiw its intentionally bad, it was a loop and a comprehension before that, but for some reason I find this easier to edit and reason with because I have issues probably
Aug 15 17 21:20:38 <Deimos> I didn't test this or anything so it's probably not quite right, but just something like this seems a lot clearer to me:
Aug 15 17 21:20:47 <Deimos> https://cdn.discordapp.com/attachments/279692806442844161/347127508178698242/2017-08-15-151921_524x245_scrot.png
Aug 15 17 21:23:15 <Boop> I just wish python had like, `skip if not post?.preview?['images']`, e.g. a way to do filtering of comprehensions but when you are using loops p much
Aug 15 17 21:27:08 <Deimos> you could do it more like this if you split it into some functions:
Aug 15 17 21:27:42 <Deimos> https://cdn.discordapp.com/attachments/279692806442844161/347129249318305794/2017-08-15-152730_538x380_scrot.png
Aug 15 17 21:29:44 <Boop> oh also, multiple hashes per post (since the API techincally can offer that (futureproofing))
Aug 15 17 21:33:33 <Deimos> ah I see, the `.preview.images` is a... list of dicts, but usually only one?
Aug 15 17 21:34:14 <Boop> always only one, but I assume once reddit hosted albums come out in the year 2053, that'll hold multiple images
Aug 15 17 21:37:24 <Boop> https://cdn.discordapp.com/attachments/279692806442844161/347131690260365312/unknown.png
Aug 15 17 21:37:28 <Boop> _shrugs_
Aug 15 17 21:38:41 <Deimos> 👍
Aug 15 17 21:39:42 <Boop> #perlwasright https://cdn.discordapp.com/attachments/279692806442844161/347132270077018112/unknown.png
Aug 15 17 22:33:13 <Boop> so much time spent in just I/O ;-;
Aug 15 17 22:38:22 <Boop> I might make it threadded
Aug 15 17 22:41:02 <Deimos> if you're using python 3 you could do async, it's really good for that kind of thing since you could be downloading multiple images simultaneously
Aug 15 17 22:41:30 <Deimos> overall though, the posting speed is probably going to be low enough that it won't matter, unless you're watching a huge number of subreddits
Aug 15 17 22:42:38 <Boop> I figure something like this would probably be useful for others, so I could offer it around as a botto perhaps
Aug 15 17 22:43:25 <Boop> question though, for https://www.reddit.com/r/pics/comments/6txr6l/_/.json or any random submission, can you acess the lower resolution images?
Aug 15 17 22:44:35 <Boop> oh I guess they might be blocked by referrer?
Aug 15 17 22:45:16 <Deimos> I think you should be able to access them
Aug 15 17 22:45:51 <Deimos> but you either need to replace things like `&amp;` with just `&` or use https://www.reddit.com/r/pics/comments/6txr6l/_/.json?raw_json=1
Aug 15 17 22:46:21 <Boop> oh for fucks
Aug 15 17 22:46:34 <Boop> I keep forgetting that
Aug 15 17 22:47:03 <Deimos> actually I think raw_json=1 isn't better
Aug 15 17 22:47:09 <Deimos> now there's weird unicode characters in the urls instead
Aug 15 17 22:47:23 <Boop> oh thats firefox (if you are using firefox)
Aug 15 17 22:47:33 <Deimos> nope, chrome
Aug 15 17 22:47:38 <Boop> huh, dunno then!
Aug 15 17 22:49:27 <Boop> https://github.com/praw-dev/praw/issues/469 ree
Aug 15 17 22:50:51 <Boop> and just like that, I'm now needing to import a html library to decode entitiess for an image downloading script ;-;
Aug 15 17 22:51:31 <Deimos> meh, just replace `&amp;` with `&`, I'm pretty sure that's all that's ever going to be needed
Aug 15 17 22:51:59 <Boop> but future proofing!
Aug 15 17 23:02:28 <Boop> and its harder to deal with sync/async mixed code than sync/threaded mixed code in python (imo), I might give the aio way a shot regardless though
Aug 15 17 23:05:16 <Boop> oh I could just use gevent, best of both worlds
Aug 15 17 23:16:44 <Boop> oh shit it worked
Aug 15 17 23:16:49 <Boop> whoops
Aug 15 17 23:17:15 <Boop> <https://redd.it/6tto6y> <https://redd.it/6ttf7k> 0
<https://redd.it/6tthh5> <https://redd.it/6tsg78> 0
<https://redd.it/6tt34l> <https://redd.it/6tqfez> 0
<https://redd.it/6tqjj3> <https://redd.it/6tqatn> 0
Aug 15 17 23:43:34 <Boop> and found 2 reposts on my sub, woo!
Aug 15 17 23:47:51 <Boop> 🤔 and now how to break this down into pieces so I don't need to host it...
Aug 16 17 01:11:24 <Boop> so for an moderator invite, what am I looking for
Aug 16 17 01:11:43 <Boop> an author of null?
Aug 16 17 02:19:29 <Deimos> I think so, if I remember right there's not really a very proper way to tell
Aug 16 17 03:27:28 <ClearlyCoder> Ah, Deimorz, I always found Boop's code thoroughly confusing but I just assumed it was my own deficiency.
Aug 16 17 03:27:52 <Boop> the more people I can confuse, the better
Aug 16 17 03:27:54 <ClearlyCoder> Do you use praw?
Aug 16 17 03:27:56 <ClearlyCoder> Or no?
Aug 16 17 03:28:03 <Boop> unfortunately I do
Aug 16 17 03:28:23 <ClearlyCoder> and that's really python?
Aug 16 17 03:28:27 <ClearlyCoder> o.o
Aug 16 17 03:29:02 <ClearlyCoder> I honestly think it's cool
Aug 16 17 03:29:05 <ClearlyCoder> everyone writes praw the same way
Aug 16 17 03:34:55 <Boop> everyone is supposed to write praw-using code the same way, that means it requires less time for someone to be able to read from scratch (assuming they have experience with any other praw-using code similar to it)
Aug 16 17 03:35:39 <Boop> I just have a horrible habit of wishing I was writing in like, haskell I guess, but without ever bothering to learn haskell
Aug 16 17 03:37:18 <Boop> also wew, post hashing sanely done ish, 'database' trimming done, just need to redo the detection and post removal code
Aug 16 17 04:08:33 <Boop> ugh I need to cache the hashes seperately, so I can deal with those without making extra requests, ugh
Aug 16 17 04:24:31 <Boop> 🤔 okay so storing every pair checked is not feesable
Aug 16 17 04:25:19 <Boop> 🤔 just storing the first half should be fine though?
Aug 16 17 04:33:19 <Deimos> I'm not really sure what you mean
Aug 16 17 04:34:14 <Boop> [id, id], comparing one to the other
Aug 16 17 04:34:26 <Boop> and then storing the fact that I've compared them so I don't do it again
Aug 16 17 04:34:37 <Boop> but considering each comparison is only to the remainder of the set
Aug 16 17 04:35:27 <Boop> I should be able to get away with just saying that I've compared the single id to the rest of the ids, without saying what the rest are
Aug 16 17 04:35:43 <Boop> provided the ids are ordered , I think?
Aug 16 17 04:37:23 <Deimos> probably, you're just checking new posts as they come in, right? so all you really need is some way to know which ones you've already checked in the past so you know when to stop
Aug 16 17 04:37:35 <Boop> I never know when to stop
Aug 16 17 04:41:32 <Boop> It really messes with me since the newer something is, the bigger the time is
Aug 16 17 04:41:46 <Boop> gets me every time
Aug 16 17 04:48:41 <Boop> hmm, so 2 false hits
Aug 16 17 04:50:09 <Boop> hah, with the optimisation, down from 3MB database to 56KB
Aug 16 17 07:25:46 <Squingu> We could really use this in /r/itookapicture as we have a strict OC policy
Would really appreciate it as a botto Boop
Aug 16 17 07:36:28 <Boop> I'll throw it on a server tomorrow
Aug 16 17 07:37:43 <Boop> now I just need to think of how to do an infinite repost period without restructuring my code all over again <:ThinkSad:311274250554048512>
Aug 18 17 00:12:31 <Boop> Squingu wanna try the bot on your sub and see what happens?
Aug 18 17 00:26:29 <Boop> fwiw I couldn't detect any reposts in the current public posts
Aug 18 17 00:59:54 <multi-mod> anti spam bot, if anyone wants to provide some feedback
Aug 18 17 00:59:55 <multi-mod> https://github.com/multi-mod/reddit-spaminator/blob/alpha/spaminator.py
Aug 18 17 01:27:53 <Boop> why not just use json?
Aug 18 17 01:28:39 <Boop> instead of the literal eval etc
Aug 18 17 01:30:39 <Deimos> or just one subreddit per line seems way easier
Aug 18 17 01:34:01 <Deimos> oh, using it for the wiki stuff too, I see
Aug 18 17 01:35:34 <Boop> still yaml wld be good for that case, more people would be used to it
Aug 18 17 01:37:24 <Boop> ```diff
- if total_submissions >= 3 and total_submissions <= 5:
+ if 3 <= total_submissions <= 5:
or
+ if total_submissions in range(3,6):
```
Aug 18 17 01:37:55 <Deimos> definitely the top one
Aug 18 17 01:38:14 <Boop> the bottom is so infrequently used but twice as cool
Aug 18 17 01:38:27 <Boop> it needs more representation in code rip ;-;
Aug 18 17 01:38:45 <Deimos> I'd probably just write it as `in (3, 4, 5)` if you wanted to do that, easier to read
Aug 18 17 01:39:29 <Boop> unrelated to critisim
Aug 18 17 01:39:56 <Boop> `with open(subreddit_list) as f:` one thing I like about pathlib other than it being coded so poorly
Aug 18 17 01:40:25 <Boop> is the `Path.read_text()` method, opens the file, reads the entire file, closes it, and returns the value
Aug 18 17 01:40:35 <Boop> on all python implementations
Aug 18 17 01:40:43 <Boop> bless
Aug 18 17 01:46:04 <Boop> the logic in percentage_check is incorrect
Aug 18 17 01:46:14 <Boop> remove is treated like a bool and an int
Aug 18 17 01:46:44 <Boop> "percentage < remove" would be percentage less than 1 or 0 at most if remove is a bool
Aug 18 17 01:47:43 <Boop> so its false if undefined
Aug 18 17 01:47:52 <Boop> it would probably be better to use None in that case
Aug 18 17 01:49:43 <Deimos> it looks like they're supposed to be integers for the percentage you want to report/remove at
Aug 18 17 01:50:27 <Boop> https://github.com/multi-mod/reddit-spaminator/blob/alpha/spaminator.py#L100
Aug 18 17 01:50:46 <Deimos> oh I see, yeah, not good to do it that way
Aug 18 17 02:00:19 <Boop> imo make the report percentage a mathematical function of the submission count
Aug 18 17 02:05:59 <multi-mod> Thanks for the feedback, I'll take a look. I mostly use python for small academic projects, so doing stuff like this is usually out of my comfort zone
Aug 18 17 02:07:09 <Deimos> multi-mod a lot of it is definitely pretty strange ways of doing things, or at least non-idiomatic
Aug 18 17 02:07:40 <Deimos> if you'd like, I could either do a quick pass over it and try to rewrite some "normally", or alternatively you could open this as a pull req on your own repo and I could leave comments on the code in there if you're interested in what I'd do differently
Aug 18 17 02:07:42 <multi-mod> I'm a biologist by trade, so learning a bit of python was out of necessity for some basic scripts
Aug 18 17 02:07:44 <Deimos> I don't know if you actually care that much though :b
Aug 18 17 02:08:43 <multi-mod> I would be curious to see what you recommend
Aug 18 17 02:09:49 <Deimos> maybe open a pull request for it against your own repo then? I think you should be able to do that, and then I could leave comments on lines directly
Aug 18 17 02:10:57 <Geo☆1088> You could also leave line comments on the commit if you don't mind the green, the file doesn't have any history
Aug 18 17 02:10:58 <Geo☆1088> https://github.com/multi-mod/reddit-spaminator/commit/7ec36c991bb666a17811381c76ebedf01bdf7cc7
Aug 18 17 02:11:22 <Deimos> ah true, I forgot you can comment directly on a commit, that would work
Aug 18 17 02:11:40 <multi-mod> yea, try tha tout
Aug 18 17 02:16:02 <multi-mod> Boop remove is False if they don't set a value in the wiki, but if they do it gets treated like an integer
Aug 18 17 02:16:09 <multi-mod> making it None would make more sense in hindsight
Aug 18 17 02:16:53 <Boop> fwiw false is also an integer in python, hence my confuse
Aug 18 17 02:17:17 <multi-mod> yea, I changed that part of the script around a lot, so it's more of a gross leftover thing
Aug 18 17 02:17:46 <multi-mod> the script actually is working, but I really need to work on writing more "normal" code
Aug 18 17 02:18:10 <Boop> psh normal code is boring
Aug 18 17 02:18:56 <multi-mod> The problem is that I never really looked at other people's code when I taught myself python, so I can get things to work, it's just ugly
Aug 18 17 02:19:09 <multi-mod> nomrally that doesn't matter though since I'm the only one using my code 😛
Aug 18 17 02:20:14 <multi-mod> if 3 <= total_submissions <= 5:
Aug 18 17 02:20:19 <multi-mod> I didn't know that would work in python
Aug 18 17 02:20:22 <multi-mod> much easier to write
Aug 18 17 02:22:22 <multi-mod> Deimos did you figure out how to leave comments, or do I need to do the pull request?
Aug 18 17 02:22:39 <Deimos> oh yeah, I can just leave comments on the commit like geo said
Aug 18 17 02:22:48 <multi-mod> 👌
Aug 18 17 03:10:18 <multi-mod> Deimos I embarassingly thought that self was required for all variables in a class
Aug 18 17 03:10:38 <Deimos> ah yeah, only if you want them to get persisted on the object itself
Aug 18 17 03:10:53 <multi-mod> makes sense, and makes the code look nicer
Aug 18 17 03:10:56 <Deimos> I figured you had probably assumed something like that, since you were doing it with all of them
Aug 18 17 03:11:12 <Deimos> yeah, and makes it take less memory because it can garbage-collect all those when the method ends
Aug 18 17 03:11:34 <Deimos> and if you do something like `vars(object_name)` while you're debugging or something, you wouldn't see all the temp variables on it still
Aug 18 17 03:12:07 <multi-mod> And thanks for taking the time to leave those detailed comments. Will really help me.
Aug 18 17 03:13:10 <Deimos> no problem, I haven't done code review for anyone in a long time :b
Aug 18 17 03:13:39 <multi-mod> I don't really know any programmers IRL, so I sort of just wing most things
Aug 18 17 03:25:18 <Deimos> yeah, a lot of it just comes from seeing how other people do things, or working with other people and having them do code review
Aug 18 17 03:25:46 <Deimos> there's a lot of stuff I only found out about because someone told me a better way to do something while they were reviewing my code
Aug 18 17 08:02:39 <Squingu> Boop I'd like to give it a go, sign me up
Aug 18 17 16:47:33 <Thunderclaww> FYI, Automoderator has been randomly failing from time to time: https://www.reddit.com/r/AutoModerator/comments/6ttchj/automod_failing_at_random_intervals/
Aug 19 17 14:29:50 <Cleroth> ```
author:
is_contributor: true
type: any
priority: 1000
action: approve
```
Aug 19 17 14:29:59 <Cleroth> Isn't this correct?
Aug 19 17 14:30:21 <Cleroth> We have that, along with:
Aug 19 17 14:30:22 <SpyTec> AutoModerator won't approve stuff though
Aug 19 17 14:30:25 <Cleroth> ```
priority: 50
type: submission
domain+body: ["twitter.com"]```
Aug 19 17 14:30:40 <Cleroth> and the twitter thing is triggering
Aug 19 17 14:31:17 <SpyTec> What are you doing with the twitter thing
Aug 19 17 14:31:30 <Cleroth> it's just what got the post removed
Aug 19 17 14:31:49 <Cleroth> We're doing an AMA, I added the guy's an approved submitter, he posted his AMA with a twitter, it got removed
Aug 19 17 14:32:07 <Cleroth> I'm wondering if there's a way to just have auto-mod ignore approved submitters
Aug 19 17 14:32:29 <Cleroth> I thought the priority 1000 and approve thing was supposed to do it (I didn't write it, it was already there)
Aug 19 17 14:33:14 <SpyTec> It won't approve stuff just like that though. Only approves posts that are already removed through blacklist or w/e IIRC
Aug 19 17 14:33:26 <SpyTec> Best would just be to add a `is_contributor: false` to the existing rules
Aug 19 17 14:33:45 <Cleroth> there are a _lot_ of rules though
Aug 19 17 14:33:45 <Cleroth> lol
Aug 19 17 14:34:19 <SpyTec> Don't know how else to do it though 😛
Aug 19 17 14:34:36 <Cleroth> `Approval actions will only be performed on items that need to be approved to change their state. That is, only items that were automatically removed by reddit's spam-filter, or reported items (as long as the rule includes a reports: check as mentioned above).`
Aug 19 17 14:34:39 <Cleroth> 🤔
Aug 19 17 14:35:08 <SpyTec> And I don't believe making AM report it and then approving it would work
Aug 19 17 14:35:19 <Cleroth> well no it only triggers once
Aug 19 17 14:35:49 <SpyTec> Yep
Aug 19 17 14:39:53 <Cleroth> I wonder if reporting it would actually... work... though?
Aug 19 17 14:40:10 <Cleroth> I mean since it only performs one action, a report would prevent the other lower priority rules from triggering
Aug 19 17 14:40:49 <Cleroth> problem is everything by a contributor would get reported lol
Aug 19 17 14:42:21 <BobCobble> It is possible to make AM report then approve it
Aug 19 17 14:42:31 <BobCobble> I have AM automatically report it's own weekly post then approve it
Aug 19 17 14:42:45 <BobCobble> but it'll ignore all future reports on that post
Aug 19 17 14:42:58 <Cleroth> how?
Aug 19 17 14:43:24 <Cleroth> I guess by checking reports
Aug 19 17 14:43:30 <Cleroth> 🤔
Aug 19 17 14:43:34 <BobCobble> ```type: submission
title: [Weekly Trade Thread]
author:
name: [AutoModerator]
action: report
moderators_exempt: false
---
type: submission
title: [Weekly Trade Thread]
author:
name: [AutoModerator]
reports: 1
action: approve```
Aug 19 17 14:44:09 <BobCobble> could change `name` to `is_contributor: true`
Aug 19 17 14:44:17 <BobCobble> and remove the title bits
Aug 19 17 14:45:47 <SpyTec> Keep in mind that it is not reliable whatsoever
Aug 19 17 14:45:52 <SpyTec> It might skip it
Aug 19 17 14:46:04 <SpyTec> For us it was a 50/50 chance if it happened or not
Aug 19 17 14:46:19 <SpyTec> (was for something else but relied on this method)
Aug 19 17 14:46:26 <BobCobble> Yeah, some people have said it's unreliable. However, it's been stable for me so <:blobshrug:305860322852601866>
Aug 19 17 14:46:40 <Cleroth> <:ScaredThinkBlob:329954337457569792>
Aug 19 17 14:47:26 <SpyTec> But yeah, keep that in mind Cleroth if you want to try it
Aug 19 17 14:49:34 <Cleroth> probably just easier and safer to approve them manually
Aug 19 17 14:49:49 <Cleroth> besides i don't have config perms so I'd have to explain it all
Aug 19 17 14:49:53 <Cleroth> f that
Aug 19 17 14:50:09 <BobCobble> The only other stuff I have automod approve is `goo.gl` links
Aug 19 17 14:50:25 <Cleroth> great, so I can link to 4chan using goo.gl
Aug 19 17 14:50:47 <BobCobble> lol, as put in since it's a trading sub and people upload timestamps to google which uses goo.gl in the link
Aug 19 17 14:50:57 <BobCobble> Even the ones that aren't short links
Aug 19 17 14:50:58 <Cleroth> you blacklist any domains, url shorteners kinda ruin it
Aug 19 17 14:51:09 <Cleroth> I guess for that kind of sub it's fine, lol
Aug 19 17 14:51:14 <Cleroth> can't imagine people posting weird stuff there
Aug 19 17 14:51:22 <BobCobble> Yeah, we don't get any spam really
Aug 19 17 14:51:28 <Cleroth> maybe to phishing though
Aug 19 17 14:51:38 <BobCobble> Main issues we deal with is scams
Aug 19 17 14:51:44 <Cleroth> ya
Aug 19 17 14:51:54 <BobCobble> but no spam or anything, especially with forced title tags and link posts turned off
Aug 19 17 14:52:36 <SpyTec> We blacklist all shorteners apart from goo.gl ones. Where we manually approve them (since we have goo.gl shortlinks in sidebar)
Aug 19 17 14:52:58 <SpyTec> But we're going to switch to bit.ly shortly due to it making things a lot easier to see what is being clicked on or not
Aug 19 17 14:53:07 <SpyTec> Has a dashboard
Aug 19 17 14:53:14 <Cleroth> isn't public though
Aug 19 17 14:53:26 <SpyTec> What isn't public
Aug 19 17 14:53:32 <Cleroth> the bit.ly stats?
Aug 19 17 14:53:39 <Cleroth> the goo.gl stats are public, I believe
Aug 19 17 14:54:09 <SpyTec> https://bitly.com/elite24beta+
Aug 19 17 14:54:27 <Cleroth> didn't know you could do that
Aug 19 17 14:54:28 <SpyTec> Same as goo.gl
Aug 19 17 14:54:34 <Cleroth> it's stalking time
Aug 19 17 14:54:42 <SpyTec> 😛
Aug 19 17 14:55:00 <Cleroth> oh I actually just inserted the links somewhere
Aug 19 17 14:55:06 <Cleroth> or whatever method it was, didn't know you could add a + at the end
Aug 19 17 14:55:09 <SpyTec> bitly also allows for named shortlinks, like the one above (up to 500)
Aug 19 17 14:55:48 <Cleroth> the goo.gl kinda seems to give more stats
Aug 19 17 14:55:52 <Cleroth> https://goo.gl/#analytics/goo.gl/WFiFx2/all_time
Aug 19 17 14:56:15 <Cleroth> at least publicly?
Aug 19 17 14:58:43 <SpyTec> Definitely
Aug 19 17 14:59:11 <SpyTec> In bitly, at least free version, only shows location and referrers (like unknown or reddit)
Aug 19 17 14:59:59 <SpyTec> However, I'd rather have convenience over more functionality, having everything in a central place where you can see views at a glance is more important than seeing what the most used browser and OS people use
Aug 19 17 15:00:33 <Cleroth> when you have the link only in one place, yea, probably
Aug 19 17 15:01:23 <SpyTec> You still see referrers and country in bitly, which is enough
Aug 19 17 15:01:28 <SpyTec> Don't need OS or app
Aug 19 17 15:01:55 <BobCobble> Need it to track personal phone numbers, address, credit card details 👀
Aug 19 17 15:02:10 <SpyTec> b&
Aug 19 17 15:03:11 <SpyTec> Can also categorize stuff through tags in bitly
Aug 19 17 15:03:51 <SpyTec> Which will be useful for us as we can check sidebar, sticky, and calendar links seperately
Aug 19 17 22:46:13 <BobCobble> SpyTec moving the sentinel bot conversation here
Aug 19 17 22:46:20 <SpyTec> Alright
Aug 19 17 22:48:06 <BobCobble> Honestly, I'm not entirely sure on the ins and outs of it. I just messed with some features and toggles. So from what I gather, the report function is only for yt stuff that has low or negative score (you can change the threshold) and the rest of the stuff is removals.
Aug 19 17 22:48:45 <SpyTec> Okay.. disappointing 😦
Aug 19 17 22:48:57 <SpyTec> Oh well, leaving a comment on the announcement post
Aug 19 17 22:49:48 <SpyTec> https://www.reddit.com/r/Layer7/comments/6r713y/announcing_a_new_tool_to_help_combat_spam/dluy9n7/
Aug 19 17 22:51:25 <BobCobble> Yeah, it's just a bit confusing. I think I get it now but yeah
Aug 20 17 14:29:51 <Boop> aw dang it, my repost remover bot had 2 false positives
Aug 20 17 14:30:21 <Boop> all nsfw deviantart images use the same "wow dont look nsfw" oembed image
Aug 20 17 14:30:32 <Boop> and the bot doesn't deal with deleted posts correctly ;-;
Aug 21 17 02:03:10 <Geo☆1088> Zeno I may be going crazy but iirc you were one of the ones complaining about `flair_css_class:` searches going away right
Aug 21 17 03:00:59 <Zeno> Ya
Aug 21 17 03:20:32 <Geo☆1088> Did you ever find any way around it for filtering other than relying on the text of the flair?
Aug 21 17 03:41:12 <Zeno> We haven't looked it yet. At this point, I'm just hoping we get picked for Rewrite alpha
Aug 21 17 03:41:16 <Zeno> and push for shit there
Aug 21 17 03:42:40 <Geo☆1088> I only ask because the ones on /r/anime broke entirely and I'm too lazy to think for myself rn, lol
Aug 21 17 03:42:55 <Geo☆1088> That makes sense though
Aug 21 17 03:43:22 <Geo☆1088> I've seriously considered just not working on any other technical aspects of the sub until the rewrite happens tbh
Aug 21 17 13:35:31 <Boop> someone port praw to asyncio for me
Aug 21 17 13:43:53 <creesch> Might as well build it in node then if you want async behavior.
Aug 21 17 13:45:12 <creesch> Also you don't have to use praw, once you have the authentication bit down it is all simple post and get requests.
Aug 21 17 13:45:34 <creesch> Praw mostly serves as an abstraction layer so people don't have to bother with parsing json.
Aug 21 17 13:48:28 <Boop> unless they want to use the image preview data which I do, sigh, yeah I might as well
Aug 21 17 13:49:39 <creesch> I am not sure why you would want to rely on the preview data but hey, not my bot.
Aug 21 17 13:50:37 <creesch> I guess it could make sense for imgur as their api limits are shit
Aug 21 17 13:52:32 <Boop> off the top of my head, I need to have data processing for imgur, tumblr, custom tumblr domains, deviantart, some-fandom-specific-website, another-one, and-another-one, and probably some more things that arn't occuring to me right now
Aug 21 17 13:52:42 <Boop> at minimum pretty much
Aug 21 17 13:54:03 <creesch> fair enough
Aug 21 17 14:01:01 <Boop> 🤔 though just due to deviantart being a silly bugger, and imgur albums, and tumblr supporting multiple images too, I'm probably going to have to do all that anyways
Aug 22 17 00:54:53 <multi-mod> when pulling embded media info from a reddit submission, do you guys think getting the channel name or channel url is generally more reliable?
Aug 22 17 03:27:34 <Deimos> I think people can change their channel name, but I'm not sure about the url
Aug 22 17 03:32:05 <multi-mod> url seems to be more reliable, except with youtube where it seems you can change from a generic url to a named url at some point with your channel
Aug 22 17 03:32:26 <multi-mod> but other than that one change I think it's hard to change the url again
Aug 22 17 07:08:44 <justcool393> multi-mod also custom URLs has some requirements before you can get it, which Indian drama spammers usually don't meet
Aug 22 17 22:58:06 <MajorParadox> Has anyone seen toolbox leave a removal reason without actually removing the post?
Aug 22 17 23:53:23 <justcool393> MajorParadox It can theoretically if you click it and then immediately leave the page (because it hadn't finished it's API request).
Aug 22 17 23:53:54 <MajorParadox> But doesn't the remove go through before the comment?
Aug 22 17 23:54:07 <MajorParadox> Like as soon as you click remove, and popup the removal reasons?
Aug 22 17 23:54:51 <MajorParadox> Looking at the log, it looks like the mod who did it approved, removed, approved, and then removed with reason (except the second remove didn't go through)
Aug 22 17 23:55:06 <MajorParadox> So maybe it thought it was already removed
Aug 23 17 22:03:25 <Zeno> Geo☆1088 What happened to the /r/anime bot(s)? Seems like they've been gone for months
Aug 23 17 22:27:13 <Geo☆1088> Zeno enigma manages holo and he's been dead with work and server issues iirc
Aug 24 17 03:26:08 <justcool393> also asking in here
Aug 24 17 03:26:09 <justcool393> anyone know of a bot or something (that's self-hostable) that can download mod logs to a database or something?
Aug 24 17 16:36:24 <Boop> any specific database?
Aug 26 17 03:31:32 <cash curty> Anybody know a way to have automoderator remove all comments that are edited?
Aug 26 17 03:31:38 <cash curty> Or is that possible?
Aug 26 17 05:28:01 <tiz> umm
Aug 26 17 05:28:30 <tiz> type: comment
is_edited: true
action: remove
idk, if that'll work
Aug 26 17 13:28:14 <SnowPhoenix> It will for comments edited after the three minute mark, but not before. Pretty sure it's the best AutoMod solution, though, and even with a custom bot, it'd be hard to know for sure if the comment was edited before the bot saw it unless you're scanning every couple seconds or something.
Aug 26 17 16:03:34 <ClearlyCoder> cash curty Do you know how to run bots?
Aug 26 17 16:05:30 <ClearlyCoder> SnowPhoenix It actually wouldn't be that hard if you combined a normal bot w/ automoderator. They can scan *really* quickly, so they'll detect comments before a person could even begin to click the edit button.
Aug 27 17 01:48:36 <SnowPhoenix> Yeah, if you are indeed scanning every couple seconds (or more frequently than that). 🤷
Aug 27 17 02:53:15 <justcool393> Boop no, not any specific database. SQLite would be nice though.
Aug 27 17 08:04:56 <Boop> I've tested none of this but
Aug 27 17 08:05:41 <Boop> ```python
import sys
import sqlite
import praw
r = praw.Reddit(
client_id='...', client_secret='...',
username='...', password='...',
user_agent=f'{sys.platform}:laddyboi:v1 by ur username xd',)
subbie = r.subreddit('reddit.com')
conn = sqlite3.connect('example.db')
conn.execute('''CREATE TABLE IF NOT EXISTS loggoboi (
mid text PRIMARY KEY ON CONFLICT REPLACE,
action text,
whodunit text)''').commit()
items = [(i.id, i.action, i._mod) for i in subbie.mod.log()]
conn.executemany('INSERT INTO loggoboi VALUES (?,?,?)', items)).commit()
```
Aug 27 17 08:05:46 <Boop> would be a starting point
Aug 27 17 08:07:29 <Boop> I don't have any ban loggos so I dunno what attributes are good for what situations
Aug 27 17 08:11:47 <Boop> ```python
['id', 'created_utc',
'action',
'mod_id36', 'mod', '_mod',
'sr_id36', 'subreddit', 'subreddit_name_prefixed',
'target_author', 'target_title', 'target_fullname', 'target_permalink', 'target_body',
'details', 'description',
'parse',
'_safely_add_arguments',
'_reddit',]
```
Aug 27 17 08:12:07 <Boop> are the fields I can see on my logs
Aug 27 17 08:19:16 <Boop> (cc justcool393 )
Aug 27 17 08:30:40 <justcool393> holy shit Boop you're the best
Aug 27 17 08:40:27 <Boop> dont say that before testing
Aug 27 17 08:43:05 <Boop> also I really need to kick my addiction to map/filter
Aug 27 17 08:45:25 <justcool393> I can't see anything too terribly wrong yet. I'll probably test it later today
Aug 27 17 15:57:33 <Gist> There any reason automod won't read update requests I send?
Aug 27 17 20:14:10 <Deimos> Gist usually a syntax error or it doesn't have access to the wiki page
Aug 27 17 20:14:51 <Gist> i should get a confirmation pm that it's updated right?
Aug 27 17 20:15:22 <Deimos> Assuming you're talking about the scheduled posts, yes
Aug 27 17 20:15:56 <Deimos> Ugh, autocorrect made me say the opposite of what I meant there
Aug 27 17 20:16:20 <Deimos> If you're just updating standard automod rules you don't need to pm any more though
Aug 27 17 20:16:58 <Gist> i'm updating a scheduled sticky
Aug 27 17 20:17:04 <Gist> or, trying to
Aug 27 17 20:17:16 <Gist> wait... does UPDATE need to be in all caps?
Aug 27 17 20:17:31 <Deimos> No, that doesn't matter
Aug 27 17 20:17:42 <Gist> i'm not sure what's going on then
Aug 27 17 20:17:51 <Gist> this has historically been an issue
Aug 27 17 20:17:52 <Deimos> What subreddit is it for?
Aug 27 17 20:17:58 <Gist> /xi
Aug 27 17 20:18:03 <Gist> well, /ffxi
Aug 27 17 20:18:26 <Gist> i want to add a few lines above the standard dribble
Aug 27 17 20:19:05 <Gist> but every time i've tried, the changes haven't stuck, even though the wiki page itself has stayed edited, which must mean automod doesn't recognize the update pms i send it
Aug 27 17 20:20:13 <Deimos> can you copy-paste the wiki page somewhere? I can't access it, but automod is a mod with full permissions so it should definitely be able to
Aug 27 17 20:20:20 <Deimos> most likely you have an indentation error or something
Aug 28 17 09:59:58 <Boop> Squingu well its not perfect at the moment, but I'm too lazy to fix its many internal issues, it should work okay for photos though for everything except photos of the sun
to add the bot, just add `/u/RepostRecaller` with `posts` permission only, atm there is no config options, so if it starts doing silly stuff, just remove it n' tell me, in the future I'll add standard wiki page settings and stuff, but too busy irl right now
Aug 28 17 10:05:09 <Squingu> Thanks, we'll check it out 😃
Aug 28 17 10:07:52 <Squingu> source code available somewhere, by chance? Boop
Aug 28 17 10:09:03 <Boop> atm only in screenshot form
Aug 28 17 10:09:36 <Boop> oh I don't even have the screenies
Aug 28 17 10:11:01 <Squingu> lol no worries then
Aug 28 17 10:11:18 <Boop> but in psudocodeish
```python
for post in posts from subs i moderate:
if I've seen the post: ignore
hash = hash(post.previewimage.a small res like, 100 wide. from the api)
store that hash
for unchecked post in hashed posts:
compare against all old hashes with a difference of like, 5 or less maybe?
```
Aug 28 17 10:12:00 <Boop> and I think I'm using dhash, can't remember
Aug 28 17 10:17:45 <Squingu> gotcha
Aug 28 17 10:24:44 <Boop> https://gist.github.com/anonymous/8704412a891acae03c3ee9a34282c5c1 pls no critique about where I put my imports
Aug 28 17 10:25:13 <Boop> or the names of my imports
Aug 28 17 10:29:34 <Boop> I kinda want to add in https://pippy360.github.io/transformationInvariantImageSearch/ to prevent intentional reposters, but I've heard its painfully slow for any large or complex image or somethin
Aug 28 17 10:41:08 <Boop> but yeah once I finish with IRL, I'll probably make an async version of praw, and then rewrite the entire thing as a service instead of a cronjob
Aug 31 17 00:29:45 <Zeno> Anyone know what happened to this? https://www.reddit.com/r/redditdev/comments/6bmkvc/modmail_bot_designed_to_archive_modmail_threads/
Aug 31 17 02:25:41 <ClearlyCoder> That's a great idea.
Aug 31 17 02:25:48 <ClearlyCoder> We should make that ourselves if that one died.
Aug 31 17 02:26:01 <ClearlyCoder> What did OP mean by archive threads? How would it do that automatically?
Aug 31 17 02:26:07 <ClearlyCoder> Perhaps after a period of inactivity?
Aug 31 17 02:34:55 <Geo☆1088> Could be handy, like if the last response was from a mod and there's no activity for the next day or so
Aug 31 17 02:41:19 <ClearlyCoder> I think modmail activity stats would be great, not everyone is active in removals but they can still be very helpful when it comes to answering messages.
Aug 31 17 02:42:02 <nt337> iirc, the admins said a few years back that it would be easily manipulated
Aug 31 17 02:42:25 <nt337> which doesn't really seem like a reason to not do it seeing as you can approve/remove however much you want, but eh ¯\_(ツ)_/¯
Aug 31 17 16:26:17 <Zeno> https://github.com/VolunteerLiveTeam/Modmail2Slack
Aug 31 17 16:31:33 <allthefoxes> nice
Aug 31 17 16:43:34 <creesch> Interesting, doesn't seem to deal with archiving and such though?
Aug 31 17 16:44:53 <creesch> Which is one reason why next toolbox will have the counter for new modmail but not notifications.
Aug 31 17 16:45:18 <creesch> I didn't figure out a reliable way of doing notifications that wouldn't make it miss some.
Aug 31 17 16:55:51 <creesch> Then again, if this is checking often enough then it shouldn't be that much of an issue
Aug 31 17 18:39:47 <Zeno> RE: modmail bot, I found the link after talking to the dev: https://github.com/noahkiss/modmail_bot
Aug 31 17 19:43:13 <MajorParadox> Zeno does that mod2slack let you reply from slack?
Aug 31 17 19:43:58 <Zeno> Not sure, my mod communications use Discord so I haven't tried it
Aug 31 17 19:52:56 <MajorParadox> Ah ok. I'd imagine there's some kind of linking to your reddit account required that we haven't done anyway
Sep 01 17 11:05:23 <Shane> https://twitter.com/netflix/status/903326524006215680
Sep 01 17 11:16:10 <cuddlefishcat> hmmm
Sep 01 17 11:16:43 <cuddlefishcat> why doesn't netflix have old movies then
Sep 01 17 11:22:04 <cuddlefishcat> is there a backstory for this or what
Sep 01 17 11:30:24 <SpyTec> Netflix approached the sub previously
Sep 01 17 11:30:25 <SpyTec> Apparently
Sep 01 17 11:30:34 <SpyTec> Also why is this in <#279692806442844161> Shane
Sep 01 17 11:30:36 <SpyTec> 😠
Sep 01 17 11:30:47 <cuddlefishcat> because he's a bot
Sep 01 17 11:34:01 <Shane> uh, wrong channel
Sep 01 17 17:34:16 <MajorParadox> Does anyone else think this might make a good toolbox enhancement request:
A search button on posts that's opens a new search page with the title in the text.
Basically a shortcut to search for reposts/copycats and you can cut down be title to keywords as makes sense
Sep 01 17 17:34:29 <creesch> terrible terrible
Sep 01 17 17:34:33 <creesch> What are we talking about?
Sep 01 17 17:34:37 <MajorParadox> Haha
Sep 01 17 17:35:09 <creesch> I guess we can do that, not sure if search works through the api but we could maybe even do it on page
Sep 01 17 17:35:28 <MajorParadox> Oh that'd be even better
Sep 01 17 17:35:44 <MajorParadox> It's just annoying to open a new search page copy/paste, etc
Sep 01 17 18:25:12 <creesch> https://www.reddit.com/r/changelog/comments/6xfyfg/an_update_on_the_state_of_the_redditreddit_and/dmfof12/?context=3
Sep 01 17 18:39:01 <creesch> uh wrong channel
Sep 02 17 22:37:42 <Cleroth> Is it possible to get a the internal regex match for this (ie. match 'fuck' instead of the whole thing): `(.*fuck.*){2}`
Sep 02 17 22:37:55 <Cleroth> we have a 'gratuitous profanity' filter
Sep 02 17 22:38:12 <Cleroth> but i can't have toolbox highlight the match because it would just highlight everything (since it technically matches everything)
Sep 02 17 23:23:38 <Cleroth> another question, how can I include ni\🅱️\🅱️a in auto-mod?
Sep 02 17 23:25:20 <Cleroth> mother fucker... pressed Ctrl + R instead of Ctrl F, refreshed the page and lost my changes on AM
Sep 02 17 23:25:21 <Cleroth> ffs
Sep 02 17 23:30:53 <bobjrsenior> Are you trying to see if it has `fuck` exactly two times?
Sep 02 17 23:40:08 <twilexis> Cleroth ```title+body (includes): [\U0001F171, \U0001F17F]
action: remove
action_reason: removing ni:b::b:a```
Sep 02 17 23:57:15 <Cleroth> twilexis wouldn't that just remove anything with that unicode?
Sep 02 17 23:57:32 <twilexis> that unicode is 🅱, isn't that what you wanted?
Sep 02 17 23:57:48 <twilexis> And idunno, I just ripped it from ooer's automod config
Sep 02 17 23:58:04 <Cleroth> bobjrsenior at least 2 times, it's already working like that, it's just that it matches everything
Sep 02 17 23:58:10 <Cleroth> I mean the match will be the entire message
Sep 02 17 23:58:27 <Cleroth> I meant I only want to remove ni🅱🅱a
Sep 02 17 23:58:43 <Cleroth> perhaps "ni\U0001F171\U0001F171a" should work
Sep 02 17 23:59:03 <Cleroth> I can't even test on a test sub, auto-mod seems broken on my test subs
Sep 03 17 00:10:59 <bobjrsenior> It would match twice, but you could do
```regex
(fuck).*(fuck)
```
Sep 03 17 00:12:00 <bobjrsenior> Actually, this should only get one match and be what you want
```
(fuck).*fuck
```
Sep 03 17 01:27:40 <Cleroth> bobjrsenior oh yea that's a good idea, thanks. Then maybe I can insert each of the swearwords in each
Sep 03 17 01:28:18 <bobjrsenior> No problem. There should be a way to do that
Sep 03 17 01:41:08 <Cleroth> bobjrsenior what would the {{match}} be for this: `(fuck|fuk(er|ing?)|shit|dick|homo|rape|\bcocks?\b).*(fuck|fuk(er|ing?)|shit|dick|homo|rape|\bcocks?\b).*(fuck|fuk(er|ing?)|shit|dick|homo|rape|\bcocks?\b)`
Sep 03 17 01:41:49 <Cleroth> `{{match-2}}` ?
Sep 03 17 01:41:59 <Cleroth> since I reckon {{match-1}} would show the whole thing
Sep 03 17 01:53:19 <bobjrsenior> I think that's more complicated than it needs to be.
You can use this to capture the first word:
```
((?:fuck|fuck(?:er|ing)|shit|dick|homo|rape|cock)).*(?:fuck|fuck(?:er|ing)|shit|dick|homo|rape|cock)
```
or this to capture both:
```
((?:fuck|fuck(?:er|ing)|shit|dick|homo|rape|cock)).*((?:fuck|fuck(?:er|ing)|shit|dick|homo|rape|cock))
```
Sep 03 17 01:53:38 <bobjrsenior> I ended up finding the multiple word thing here: https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9781449327453/ch05s02.html
Sep 03 17 01:53:51 <bobjrsenior> Some of the other results seemed to make it more confusing
Sep 03 17 01:54:32 <bobjrsenior> The `?:` in parenthesis makes it not gets captured. That way you can actually group or statements
Sep 03 17 01:55:11 <bobjrsenior> Cleroth
Sep 03 17 02:01:54 <Cleroth> I'm not really sure what you're saynig, it's doing the same thing I"m doing
Sep 03 17 02:02:03 <Cleroth> other than the `?:` to make it a non-capturing group
Sep 03 17 02:02:05 <bobjrsenior> Also, a good place to test regex is http://regexr.com/ It lets you see what it finds in realtime. You can mouseover the regex or match parts to see what it means as well
Sep 03 17 02:02:11 <Cleroth> I made it so it has to match 3 times
Sep 03 17 02:02:16 <bobjrsenior> ah
Sep 03 17 02:02:35 <Cleroth> it was 2 before, but that was for the same words, if we're including all swearwords, only 2 words would be too little, IMO
Sep 03 17 02:02:48 <Cleroth> I am using regexr
Sep 03 17 02:02:56 <bobjrsenior> I kind of got thrown of by you `\b` and `?`
Sep 03 17 02:03:05 <bobjrsenior> I guess mine had some of that two though. I'm not a regex expert either
Sep 03 17 02:03:14 <Cleroth> there's a reason for those
Sep 03 17 02:03:31 <Cleroth> `cock` would match a fair amount of false-positives
Sep 03 17 02:03:33 <Cleroth> like cockpit
Sep 03 17 02:03:39 <Cleroth> cocking a crossbow
Sep 03 17 02:04:09 <Cleroth> `\\bcocks?\\b` doesn't match those and only matches `cock` and `cocks` as full words
Sep 03 17 02:04:46 <Cleroth> I wonder if you can include multiple highlights on the mod queue with toolbox though? creesch
Sep 03 17 02:05:29 <Cleroth> So it would have something like `Gratuitous profanity - [fuck], [shit], [cock]`
Sep 03 17 02:05:41 <bobjrsenior> ah, makes sense
Sep 03 17 21:22:19 <Zeno> Is it possible to have AutoMod post removal reasons (from Toolbox)? I've seen AutoMod comments like that, but I wasn't sure if it was purely AutoMod conditions doing that unrelated to Toolbox
Sep 03 17 21:23:22 <Shane> I believe it's done through the flair.
Flair: thing
Comment: thing
Sep 03 17 21:23:37 <BobCobble> Zeno Yes one sec
Sep 03 17 21:24:39 <BobCobble> Zeno Problem is it's not the greatest way, I've used it for modding from mobile. It only works if the submission is totally untouched so not approved or reported
Sep 03 17 21:26:10 <BobCobble> So you can do it by flair text or flair css class, you just change the flair to the correct reason then hit report on the submissoin
Sep 03 17 21:26:22 <BobCobble> ```css
---
type: submission
flair_text: "Removed: R5"
reports: 1
action: remove
comment_stickied: true
comment: |
Hi /u/{{author}},
Unfortunately your {{kind}} has been removed for the following reason(s):
* **No bloopers, intentional movie details only, not mistakes.**
If you feel this was removed in error or are unsure about why this was removed then please [modmail us.](https://www.reddit.com/message/compose?to=%2Fr%2FMovieDetails)``` So something like this
Sep 03 17 21:27:04 <BobCobble> And if you wanted to do it by flair css you just change `flair_text` to `flair_css_class`
Sep 03 17 21:28:36 <Zeno> That only triggers if something has reports on it, right?
Sep 03 17 21:29:19 <BobCobble> Yes, so a moderator has to change the flair to the correct reason and then report it. It's useful to have from mobile
Sep 03 17 21:29:43 <BobCobble> The idea is you can leave a toolbox style reason from mobile just by changing the flair and reporting the post
Sep 03 17 21:30:12 <BobCobble> The report is to trigger it and the flair is to choose what reason
Sep 03 17 21:47:56 <thecodingdude> Hey all, just looking to get some feedback. Is there anything you'd like to see automod implement?
Sep 03 17 21:49:45 <twilexis> Detect reposts please.
Sep 03 17 21:51:19 <thecodingdude> I'd love to see that too, but sadly unless they use the same URL or a similar title, that's about it
Sep 03 17 21:53:16 <twilexis> Can't use image search and comparisons?
Sep 03 17 21:53:37 <thecodingdude> I don't think even google could really do that
Sep 03 17 21:53:51 <thecodingdude> that'd be really really difficult to compare byte level data
Sep 03 17 21:54:11 <bobjrsenior> You can already reverse image search on google
Sep 03 17 21:54:20 <bobjrsenior> but linking it to posts may be difficult
Sep 03 17 21:54:22 <twilexis> Hm. We had a bot (that's currently broken <:lul:297371306200924160>) over at dankmemes that could do it.
Sep 03 17 21:54:32 <nt337> _korbendallas_ has some sort of repost detection bot
Sep 03 17 21:55:36 <BobCobble> There's loads of stuff I wish automod could do. It'd be good if it could act on posts/comment but not just when they are submitted
Sep 03 17 21:56:18 <thecodingdude> I mean you could take a hash of a file, but even if a single bit of data changes you get a new hash
Sep 03 17 21:56:47 <twilexis> Well yeah, the bot I'm talking about compares the image and gives a similarity %
Sep 03 17 21:56:49 <thecodingdude> BobCobble anything in particular you'd like it to do?
Sep 03 17 21:57:41 <BobCobble> Yeah but every idea i had has gone out of my head rn
Sep 03 17 21:59:54 <thecodingdude> no worries, feel free to PM me on here/reddit, I'd appreciate any suggestions
Sep 03 17 22:02:31 <BobCobble> Check submission history and remove/filter if it breaks the 10% rule, auto flair on /r/all without having to contact admins, leave a comment on a post once it gets on r/all, remind people to flair posts and remove if they don't. That's just ideas off the top of my head
Sep 03 17 22:03:30 <BobCobble> When getting automod to update the schedule it's buggy, doesn't always reply to the PM and sometimes not at all. It would be good to be able to schedule posts without even needing to send the PM too.
Sep 03 17 22:09:13 <Cleroth> there's a bot that can report stuff that breaks the 10% rule
Sep 03 17 22:10:39 <BobCobble> What's the name? I believe the sentinel bot can too
Sep 03 17 22:11:05 <BobCobble> I just wish automod did more stuff then it wouldn't be necessary to have so many bots to do different things
Sep 03 17 22:11:11 <Cleroth> I think it's spam_watcher that does it
Sep 03 17 22:11:42 <thecodingdude> There is a plan to make a somewhat more intelligent automod but it's very early days
Sep 03 17 22:12:03 <thecodingdude> so atm just getting peoples ideas would be good to know where automod lacks a bit
Sep 03 17 22:12:03 <BobCobble> By you or Reddit?
Sep 03 17 22:12:12 <BobCobble> Or are you an admin?
Sep 03 17 22:12:12 <Cleroth> Is there some sort of priority list on auto-mod that just puts subs with almost no readers on very low priority or something?
Sep 03 17 22:12:23 <Cleroth> I've been trying to test rules on a test sub but they just don't work
Sep 03 17 22:12:37 <BobCobble> What rules you been testing?
Sep 03 17 22:12:59 <BobCobble> Automod keeps going down a lot recently
Sep 03 17 22:13:01 <Cleroth> just normal stuff like reporting swearwords
Sep 03 17 22:13:17 <Cleroth> it reported once, and I could see the report, but it didn't show in mod queue or in the report queue
Sep 03 17 22:13:20 <Cleroth> and then just stopped working
Sep 03 17 22:13:39 <HH0S> for me automod reports are just buggy in general
Sep 03 17 22:14:05 <BobCobble> I have some automod code that might be helpful Cleroth
Sep 03 17 22:14:06 <BobCobble> One sec
Sep 03 17 22:14:14 <Cleroth> BobCobble but it works fine in r/futurology...
Sep 03 17 22:14:20 <Cleroth> that's the thing
Sep 03 17 22:14:21 <BobCobble> Oh, odd
Sep 03 17 22:14:36 <Cleroth> I even tried importing the whole automod config, and I couldn't get automod to trigger on anything
Sep 03 17 22:14:45 <Cleroth> tried a non-mod account too ,ofoucrse
Sep 03 17 22:15:01 <thecodingdude> BobCobble "By you or Reddit?" there's a few people, can't say much atm 😛
Sep 03 17 22:16:06 <Zeno> A few people... from Reddit?
Sep 03 17 22:16:07 <BobCobble> Hmm, interesting. I'll PM you or ping when I think of more
Sep 03 17 22:16:40 <thecodingdude> Yeah, it's a custom project we're working on
Sep 03 17 22:16:52 <thecodingdude> to try and make a more intelligent moderator basically
Sep 03 17 22:17:05 <Cleroth> funny, I was just talking about machine-learned auto-mod yesterday
Sep 03 17 22:17:27 <BobCobble> That'd be interesting, untill it went wrong...
Sep 03 17 22:17:39 <Cleroth> well it could just report
Sep 03 17 22:17:49 <Zeno> who needs human mods when we have Super AutoMod
Sep 03 17 22:17:51 <Cleroth> but yea it's a pipe dream
Sep 03 17 22:18:12 <thecodingdude> Well, imagine if you had every post from 2005, there's a lot you can do with that data 😛
Sep 03 17 22:18:34 <Cleroth> depends
Sep 03 17 22:18:38 <Cleroth> that data may not be useful now
Sep 03 17 22:18:53 <thecodingdude> data is always useful - for example, spam never really changes
Sep 03 17 22:19:04 <thecodingdude> there are various patterns you can apply to spam
Sep 03 17 22:19:12 <Cleroth> doesn't it?
Sep 03 17 22:19:23 <Cleroth> like for example I'd imagine moderators back in 2005 weren't as good as today
Sep 03 17 22:19:43 <BobCobble> the moviedetails /r/all post is being spammed with loads of accounts spamming snapchat and goo.gl links
Sep 03 17 22:19:56 <BobCobble> would be cool if automod could detect stuff like that
Sep 03 17 22:19:57 <Cleroth> so they may have tagged as spam random stuff that wasn't really spam
Sep 03 17 22:20:42 <BobCobble> Like if automod could detect spikes in repeated phrases and links in comments then send a modmail with the list of accounts or something?
Sep 03 17 22:21:10 <thecodingdude> even if they're false positives, you can easily train an AI to work with that
Sep 03 17 22:21:40 <thecodingdude> account age, karma, number of posts, upvotes per post, etc
Sep 03 17 22:21:53 <thecodingdude> all pieces of data linked together paint a pretty clear picture
Sep 03 17 22:22:26 <Cleroth> we don't have that much problem with real spam, to be honest
Sep 03 17 22:23:01 <Cleroth> stuff that would be spam in any sub, for example
Sep 03 17 22:23:20 <Cleroth> but for me the more important part would be to have a bot trained to remove posts that are specific to a sub
Sep 03 17 22:24:08 <thecodingdude> If you can represent your requirements as data then sure.
Sep 03 17 22:24:15 <thecodingdude> like what exactly would you want to remove?
Sep 03 17 22:24:27 <Cleroth> I was thinking the bot could learn from what mods approve and remove
Sep 03 17 22:24:56 <thecodingdude> Yeah - I agree. One of the things we want to do is encourage mods to share their mod dataset; that is things contained in the mod log
Sep 03 17 22:25:21 <BobCobble> Cleroth Just tried having automod report stuff in a test sub and it worked for me
Sep 03 17 22:25:22 <BobCobble> https://cdn.discordapp.com/attachments/279692806442844161/354029132574752769/unknown.png
Sep 03 17 22:25:33 <thecodingdude> Frustratingly, there's so much data that is private to each sub, like banned users, that could be better utilised if it was more open.
Sep 03 17 22:25:41 <thecodingdude> If a user is banned from 10+ subs then 😛...
Sep 03 17 22:26:18 <Cleroth> well... isn't it open to reddit?
Sep 03 17 22:26:23 <BobCobble> This is what i've got in my config https://pastebin.com/gFGGeXWi
Sep 03 17 22:26:30 <Cleroth> I'm not really sure who you are, I thought you might've been working for reddit
Sep 03 17 22:26:30 <Cleroth> xD
Sep 03 17 22:27:08 <Cleroth> how big's the test sub?
Sep 03 17 22:27:13 <Cleroth> lemm etry again
Sep 03 17 22:27:35 <BobCobble> Nobody in it except me and a couple test accounts
Sep 03 17 22:27:43 <thecodingdude> Cleroth sure, but reddit doesn't seem too interested providing better tools so...:P
Sep 03 17 22:28:18 <Cleroth> yea... I got excited there for a moment
Sep 03 17 22:28:24 <Cleroth> reddit actually working on better tools? sweet!
Sep 03 17 22:28:25 <Cleroth> but no
Sep 03 17 22:28:32 <Cleroth> so yea, if you don't have access to that, it's way harder
Sep 03 17 22:29:24 <Cleroth> BobCobble http://img.cleroth.com/chrome_2017-09-04_00-29-14.png
Sep 03 17 22:29:32 <Cleroth> lemme try yours
Sep 03 17 22:29:43 <BobCobble> it won't report a mod
Sep 03 17 22:29:50 <BobCobble> ~~are you a mod of that subbie?~~ nvm i see the remove button
Sep 03 17 22:30:23 <Cleroth> yea it was set to report then I changed to remove
Sep 03 17 22:30:34 <BobCobble> It won't report or remove a mod's comment
Sep 03 17 22:31:22 <Cleroth> isn't that what `is_moderator` is for...
Sep 03 17 22:31:27 <Cleroth> I'll switch to normal account
Sep 03 17 22:32:06 <BobCobble> You could just add `moderators_exempt: false`
Sep 03 17 22:33:35 <Cleroth> WEIRD
Sep 03 17 22:33:38 <Cleroth> the normal account is working now
Sep 03 17 22:33:49 <Cleroth> it might've just been that I had just created the auto mod config
Sep 03 17 22:34:43 <BobCobble> Automod works in mysterious ways...
Sep 03 17 22:36:25 <Cleroth> but also doesn't explain how it managed to report one thing
Sep 03 17 22:36:29 <Cleroth> but it didn't show in mod queue
Sep 03 17 22:36:35 <Cleroth> actually seen that happen in r/futurology too
Sep 03 17 22:39:25 <BobCobble> Problem is that Automod just stops working so often it's hard to detect when it's an issue with your code or when it's an issue with automod.
Sep 03 17 22:39:45 <BobCobble> Particularly when you think something didn't work but 10 minutes later automod decides to randomly do it
Sep 03 17 22:43:35 <Cleroth> lol yea
Sep 03 17 23:00:36 <justcool393> BobCobble do you have a anti-`goo.gl` rule already?
Sep 03 17 23:01:02 <justcool393> since they *should* get auto-spammed by reddit anyway.
Sep 03 17 23:01:08 <justcool393> even regardless of AutoModerator.
Sep 03 17 23:02:13 <BobCobble> They were getting auto spammed but still in modqueue I quickly added a rule to automod to spam (but not go to modqueue) comments that were like these Snapchat ones we've been getting.
Sep 03 17 23:02:22 <BobCobble> They had goo.gl links in them
Sep 03 17 23:03:29 <BobCobble> ---
type: comment
body: [snapchat with this easy script]
action: spam
is what I added
Sep 03 17 23:06:56 <BobCobble> This is just to stop them from keep going to modqueue
Sep 04 17 01:21:30 <justcool393> BobCobble gotcha. I see.
Sep 04 17 01:22:10 <justcool393> Quick question for anyone in here: what does `whitelist_status` mean for a subreddit (it's in the subreddit's JSON template)? I'm seeing it and it has a value of `house_only`.
Sep 04 17 07:06:17 <creesch> justcool393 oh we discussed that one before, probably ad related
Sep 04 17 07:09:15 <justcool393> creesch gotcha. It just seemed like something that'd be a subreddit setting. oh well
Sep 04 17 09:07:45 <Shane> ```0rz.tw, 0rz.tw, 1-url.net, 1link.in, 1tk.us, 1un.fr, 1url.com, 1url.cz, 1wb2.net, 2.gp, 2.ht, 2ad.in, 2big.at, 2doc.net, 2fear.com, 2pl.us, 2tu.us, 2ty.in, 2u.xf.cz, 2ya.com, 3.ly, 3ra.be, 3x.si, 4i.ae, 4ms.me, 4sq.com, 4url.cc, 4view.me, 5em.cz, 5url.net, 5z8.info, 6fr.ru, 6g6.eu, 6url.com, 7.ly, 7fth.cc, 7li.in, 7vd.cn, 8u.cz, 76.gd, 77.ai, 98.to, 126.am, 307.to, 944.la, a.gg, a.nf, a0.fr, a2a.me, aa.cx, abbr.sk, abbrr.com, abcurl.net, ad-med.cz, ad.vu, ad5.eu, ad7.biz, adb.ug, adcraft.co, adcrun.ch, adf.ly, adfa.st, adfly.fr, adjix.com, adli.pw, adv.li, afx.cc, ajn.me, aka.gr, alil.in, all.fuseurl.com, alturl.com, amzn.to, any.gs, aqva.pl, ar.gy, ares.tl, arst.ch, asso.in, atu.ca, au.ms, ayt.fr, azali.fr, azc.cc, b00.fr, b2l.me, b23.ru, b54.in, bacn.me, baid.us, bc.vc, bcool.bz, bee4.biz, bim.im, binged.it, bit.do, bit.ly, bitly.com, bitw.in, bizj.us, bkite.com, blap.net, ble.pl, blip.tv, bloat.me, boi.re, bote.me, bougn.at, br4.in, bravo.ly, brk.to, brzu.net, bsa.ly, budurl.com, buk.me, bul.lu, burnurl.com, buzurl.com, bxl.me, bzh.me, c-o.in, cachor.ro, canurl.com, captur.in, catchylink.com, cbs.so, cbug.cc, cc.cc, ccj.im, cf.ly, cf2.me, cf6.co, chilp.it, chzb.gr, cjb.net, cl.lk, cl.ly, clck.ru, cli.gs, cliccami.info, clickmeter.com, clickthru.ca, clikk.in, clop.in, cn86.org, conta.cc, cort.as, cot.ag, couic.fr, cr.tl, crisco.com, crks.me, ctvr.us, cudder.it, cur.lv, curl.im, cut.pe, cut.sk, cutt.eu, cutt.us, cutu.me, cuturl.com, cybr.fr, cyonix.to, d75.eu, daa.pl, dai.ly, db.tt, dd.ma, ddp.net, decenturl.com, dfl8.me, dft.ba, digbig.com, digg.com, disq.us, dld.bz, dlvr.it, do.my, doiop.com, dolp.cc, dopen.us, dopice.sk, droid.ws, dv.gd, dwarfurl.com, dy.fi, dyo.gs, e37.eu, easyuri.com, easyurl.com, easyurl.net, ecra.se, eepurl.com, ely.re, erax.cz, erw.cz, esyurl.com, eweri.com, ewerl.com, ex9.co, ezurl.cc, fa.b, fa.by, ```
Sep 04 17 09:07:46 <Shane> ```fav.me, fb.me, fbshare.me, ff.im, fff.re, fff.to, fff.wf, fhurl.com, filoops.info, filz.fr, fire.to, firsturl.de, firsturl.net, flic.kr, flq.us, fly2.ws, fnk.es, foe.hn, folu.me, fon.gs, freak.to, freze.it, fur.ly, fuseurl.com, fuzzy.to, fwd4.me, fwib.net, g.ro.lt, g00.me, gg.gg, gizmo.do, gl.am, go.9nl.com, go.ign.com, go.usa.gov, go2.me, tin.li, tini.cc, tiniuri.com, tiny.cc, tiny.lt, tiny.ly, tiny.ms, tiny.pl, tiny123.com, tinyarro.ws, tinyarrows.com, tinylink.in, tinytw.it, tinyuri.ca, tinyurl.com, tinyurl.hu, tinyvid.io, ```
Sep 04 17 09:07:53 <Shane> ```go2cut.com, goo.gl, goo.lu, google.com/url, goshrink.com, gowat.ch, grem.io, gri.ms, guiama.is, gurl.es, hadej.co, hellotxt.com, hex.io, hide.my, hiderefer.com, hjkl.fr, hmm.ph, hops.me, hover.com, href.in, href.li, hsblinks.com, ht.ly, htxt.it, huff.to, hugeurl.com, hurl.it, hurl.me, hurl.ws, i-2.co, i99.cz, icanhaz.com, icit.fr, ick.li, icks.ro, idek.net, iguang.tw, iiiii.in, iky.fr, ilix.in, info.ms, inreply.to, is.gd, iscool.net, isra.li, iterasi.net, itm.im, its.my, ity.im, ix.lt, ix.sk, j.gs, j.mp, jdem.cz, jieb.be, jijr.com, jmp2.net, jp22.net, jqw.de, just.as, kask.us, kd2.org, kfd.pl, kissa.be, kl.am, klck.me, korta.nu, kr3w.de, krat.si, kratsi.cz, krod.cz, krunchd.com, kuc.cz, kxb.me, l-k.be, l.gg, l9.fr, l9k.net, lat.ms, lc-s.co, lc.cx, lcut.in, lemde.fr, libero.it, lick.my, lien.li, lien.pl, liip.to, liltext.com, lin.cr, lin.io, linkbee.com, linkbun.ch, linkn.co, liurl.cn, llu.ch, ln-s.net, ln-s.ru, lnk.co, lnk.gd, lnk.in, lnk.ly, lnk.ms, lnk.sk, lnkd.in, lnks.fr, lnkurl.com, lnky.fr, lnp.sn, loopt.us, lp25.fr, lru.jp, lt.tl, lurl.no, lvvk.com, m1p.fr, m3mi.com, macte.ch, make.my, mash.to, mcaf.ee, mdl29.net, merky.de, metamark.net, mic.fr, migre.me, minilien.com, miniurl.com, minu.me, minurl.fr, mke.me, moby.to, moourl.com, more.sh, mrte.ch, mut.lu, myloc.me, myurl.in, n.pr, nbc.co, nblo.gs, ne1.net, net.ms, net46.net, nicou.ch, nig.gr, njx.me, nn.nf, not.my, notlong.com, nov.io, nq.st, nsfw.in, nutshellurl.com, nxy.in, nyti.ms, o-x.fr, oc1.us, okok.fr, om.ly, omf.gd, omoikane.net, on.cnn.com, on.mktw.net, onforb.es, orz.se, ou.af, ou.gd, oua.be, ow.ly, p.pw, para.pt, parky.tv, ```
Sep 04 17 09:08:02 <Shane> ```past.is, pd.am, pdh.co, ph.ly, pic.gd, pic.gd tweetphoto, pich.in, pin.st, ping.fm, piurl.com, pli.gs, plots.fr, pm.wu.cz, pnt.me, po.st, politi.co, poprl.com, post.ly, posted.at, pp.gg, ppfr.it, ppst.me, ppt.cc, ppt.li, prejit.cz, prettylinkpro.com, profile.to, ptab.it, ptiturl.com, ptm.ro, pub.vitrue.com, pw2.ro, py6.ru, q.gs, qbn.ru, qicute.com, qlnk.net, qqc.co, qqurl.com, qr.ae, qr.net, qrtag.fr, qte.me, qu.tc, quip-art.com, qxp.cz, qxp.sk, qy.fi, r.im, rb6.co, rb6.me, rcknr.io, rdz.me, read.bi, readthis.ca, reallytinyurl.com, redir.ec, redir.fr, redirects.ca, redirx.com, redu.it, ref.so, reise.lc, relink.fr, retwt.me, ri.ms, rickroll.it, riz.cz, riz.gd, rod.gs, roflc.at, rsmonkey.com, rt.nu, rt.se, ru.ly, rubyurl.com, rurl.org, rww.tw, s-url.fr, s4c.in, s7y.us, s7y.us shrinkify, safe.mn, sagyap.tk, sameurl.com, scrnch.me, sdu.sk, sdut.us, seeme.at, segue.se, sh.st, shar.as, shar.es, sharein.com, sharetabs.com, shink.de, shorl.com, short.cc, short.ie, short.nr, short.pk, short.to, shortlinks.co.uk, shortna.me, shorturl.com, shoturl.us, shout.to, show.my, shrinkify.com, shrinkr.com, shrinkster.com, shrt.fr, shrt.in, shrt.st, shrten.com, shrunkin.com, shw.me, shy.si, sicax.net, simurl.com, sina.lt, sk.gy, skr.sk, skroc.pl, slate.me, smallr.com, smll.co, smsh.me, smurl.name, sn.im, snipr.com, snipurl.com, snsw.us, snurl.com, soo.gd, sp2.ro, spedr.com, spn.sr, sq6.ru, sqrl.it, srnk.net, srs.li, ssl.gs, starturl.com, sturly.com, su.pr, surl.co.uk, surl.hu, surl.me, sux.cz, sy.pe, t.cn, t.lh.com, ta.gd, tabzi.com, tau.pe, tbd.ly, tcrn.ch, tdjt.cz, tgr.me, tgr.ph, thesa.us, thrdl.es, tighturl.com, ```
Sep 04 17 09:08:09 <Shane> ```tixsu.com, tl.gd, tldr.sk, tllg.net, tmi.me, tnij.org, tnw.to, tny.com, tny.cz, to.ly, to8.cc, togoto.us, tohle.de, totc.us, toysr.us, tpm.ly, tpmr.com, tr.im, tr.my, tr5.in, tra.kz, traceurl.com, trck.me, trick.ly, trkr.ws, trunc.it, turo.us, tweetburner.com, tweez.me, twet.fr, twhub.com, twi.im, twirl.at, twit.ac, twitclicks.com, twitterpan.com, twitterurl.net, twitterurl.org, twitthis.com, twiturl.de, twlr.me, twurl.cc, twurl.nl, u.bb, u.mavrev.com, u.nu, u.to, u6e.de, u76.org, ub0.cc, uby.es, ucam.me, ug.cz, ulmt.in, ulu.lu, unlc.us, updating.me, upzat.com, ur1.ca, url.az, url.co.uk, url.ie, url2.fr, url4.eu, url5.org, url360.me, urlao.com, urlborg.com, urlbrief.com, urlcover.com, urlcut.com, urlenco.de, urlhawk.com, urli.nl, urlin.it, urlkiss.com, urlot.com, urlpire.com, urls.fr, urls.im, urlshorteningservicefortwitter.com, urlx.ie, urlx.org, urlz.fr, urlzen.com, urub.us, usat.ly, use.my, utfg.sk, v.gd, v.ht, v5.gd, vaaa.fr, valv.im, vaza.me, vb.ly, vbly.us, vd55.com, verd.in, vgn.am, vgn.me, viralurl.biz, viralurl.com, virl.com, virl.ws, vl.am, vm.lc, vov.li, vsll.eu, vt802.us, vur.me, vurl.bz, vv.vg, vzturl.com, w1p.fr, w3t.org, w55.de, waa.ai, wapo.st, wapurl.co.uk, wb1.eu, web99.eu, wed.li, wideo.fr, wipi.es, wp.me, wtc.la, wu.cz, ww7.fr, wwy.me, x.co, x.nu, x.se, x.vu, x2c.eu, x2c.eumx, x10.mx, xaddr.com, xav.cc, xeeurl.com, xgd.in, xib.me, xl8.eu, xn--hgi.ws, xoe.cz, xr.com, xrl.in, xrl.us, xt3.me, xua.me, xub.me, xurl.es, xurl.jp, xurls.co, xzb.cc, y.ahoo.it, yagoa.fr, yagoa.me, yatuc.com, yau.sh, ye.pe, yeca.eu, yect.com, yep.it, yfrog.com, yhoo.it, yiyd.com, yogh.me, yon.ir, youfap.me, yourls.org, ysear.ch, yuarel.com, yweb.com, yyv.co, z0p.de, z9.fr, zapit.nu, zeek.ir, zi.ma, zi.mu, zi.pe, zip.net, zipmyurl.com, zkr.cz, zkrat.me, zkrt.cz, zoodl.com, zpag.es, zsms.net, zti.me, zud.me, zurl.ws, zxq.net, zyva.org, zz.gd, zzang.kr, zzb.bz, ›.ws]```
Sep 04 17 09:08:13 <Shane> justcool393
Sep 04 17 09:08:21 <Shane> or put all of these
Sep 04 17 09:08:55 <justcool393> This.
Sep 04 17 09:08:56 <justcool393> IS.
Sep 04 17 09:08:59 <justcool393> Amazing.
Sep 04 17 09:09:00 <justcool393> Thank you.
Sep 04 17 09:09:10 <justcool393> Looks like I've a new AutoMod rule to change.
Sep 04 17 09:24:13 <Shane> Not really automation related but anyone know if theres a w3schools like website but for java
Sep 04 17 09:33:13 <creesch> fyi you shouldn't use w3schools, all to often their explanation is slightly off mark or doesn't explain it properly.
Sep 04 17 09:33:36 <creesch> better to use mdn https://developer.mozilla.org/en-US/docs/Web
Sep 04 17 09:34:10 <creesch> as far as java goes, there is the actual documentation on the oracle website
Sep 04 17 09:34:27 <creesch> Which is... okay I guess https://docs.oracle.com/javase/7/docs/api/
Sep 04 17 09:34:31 <creesch> Just a bit abstract
Sep 04 17 09:35:02 <creesch> if you don't care about w3schools being meh... I think they also have a java section :P
Sep 04 17 09:52:21 <mbetts> Shane StackOverflow 😄
Sep 04 17 09:53:35 <Boop> pls everyone is on java 8 now
Sep 04 17 10:00:35 <justcool393> Adding onto mbetts, a good question is in the form of something like `I have this NullPointerException. Please help me!`
Sep 04 17 10:00:50 <justcool393> Or `how 2 lern java codez`
Sep 04 17 10:01:46 <mbetts> ``Pls do my courswrk for me pls``
Sep 04 17 10:16:30 <SpyTec> creesch I've found MDN to be better in most cases. But sometimes their documentation is a bit confusing
Sep 04 17 11:11:09 <creesch> Awesome! I got whitelisted to use the perspectiveapi from google
Sep 04 17 11:11:20 <creesch> https://www.perspectiveapi.com
Sep 04 17 11:53:41 <mbetts> oh that's neat
Sep 04 17 14:11:44 <SpyTec> Go through the history of Reddit Mods Discord with the API and see who is the most toxic <:lul:297371306200924160>
Sep 04 17 14:11:59 <SpyTec> Really though, give some info when you've tried it out 😛
Sep 04 17 14:22:14 <creesch> SpyTec first impression, jquery is fucking up with the requests
Sep 04 17 14:22:21 <SpyTec> jQuery 😦
Sep 04 17 14:22:25 <creesch> Or rather, it is really finnicky with badly escaped stuff it seems
Sep 04 17 14:22:43 <creesch> Seems to be similar to the issue you had a while ago with the calendar thing
Sep 04 17 14:22:53 <SpyTec> At least it's not Google Scripts code
Sep 04 17 14:23:33 <SpyTec> I never solved that issue. However, it was never a problem when sending post requests to Discord webhooks
Sep 04 17 14:23:34 <creesch> No, it is google apis
Sep 04 17 14:23:37 <SpyTec> Welp
Sep 04 17 14:23:48 <SpyTec> I can send all escape chars like ; to Discord
Sep 04 17 14:24:03 <creesch> Well I guess technically it is something else where all other apis are just fine with it and google apis are really strict
Sep 04 17 14:24:20 <SpyTec> Probably
Sep 04 17 14:26:43 <SpyTec> My bug was never looked at btw
Sep 04 17 14:36:24 <creesch> There we go!
Sep 04 17 14:37:20 <creesch> https://usercontent.irccloud-cdn.com/file/5yf2HXbx/image.png
Sep 04 17 14:37:24 <creesch> SpyTec ^
Sep 04 17 14:38:01 <SpyTec> Mfw I'm incoherent
Sep 04 17 14:38:03 <creesch> Only the first one is supposed to be reliable
Sep 04 17 14:38:16 <creesch> The others are trained based on what NYT moderators said comments where
Sep 04 17 14:38:30 <creesch> Which is a different context than reddit I guess.
Sep 04 17 14:38:37 <SpyTec> Alright
Sep 04 17 14:38:52 <creesch> I just included them because I am curious :)
Sep 04 17 14:41:55 <creesch> I might let it loose on discord first.
Sep 04 17 14:58:37 <SpyTec> Feel free to use my history both here and on Reddit
Sep 04 17 15:07:43 <creesch> I have set it up on our history discord for now
Sep 04 17 15:08:11 <creesch> We have an #alert channel there that tells us things like new users joining, messages matching automod like rules and now also this
Sep 04 17 15:08:31 <creesch> https://usercontent.irccloud-cdn.com/file/d9XEN9qX/image.png
Sep 04 17 15:36:22 <creesch> Deimos didn't you apply as well when we talked about the API a while ago?
Sep 04 17 15:46:46 <Deimos> Nah I haven't applied for it, I wouldn't really have any use for it
Sep 04 17 15:46:46 <Deimos> Nah I haven't applied for it, I wouldn't really have any use for it
Sep 04 17 15:46:46 <Deimos> Nah I haven't applied for it, I wouldn't really have any use for it
Sep 04 17 15:46:46 <Deimos> Nah I haven't applied for it, I wouldn't really have any use for it
Sep 04 17 15:47:38 <SpyTec> Mobile app detected
Sep 04 17 15:52:28 <mbetts> is that open source creesch?
Sep 04 17 15:53:36 <mbetts> I have a very, lets say, special discord and this would be useful
Sep 04 17 15:59:12 <creesch> mbetts It is a google api you have to apply for
Sep 04 17 16:01:37 <creesch> https://www.perspectiveapi.com
Sep 04 17 16:09:33 <creesch> First impression so far is that the toxicity score can indeed be used as an indicator that something might be up with the comment.
Sep 04 17 16:09:43 <creesch> at least in /r/history and /r/historyporn
Sep 04 17 16:10:01 <creesch> I guess it might work differently for gaming related subs
Sep 04 17 17:59:18 <creesch> Oh... hrm...
Sep 04 17 17:59:33 <creesch> It does not work text longer than 3000 characters
Sep 04 17 20:04:27 <ClearlyCoder> Oh, I do swear.
Sep 04 17 20:04:30 <ClearlyCoder> That thing is useless.
Sep 04 17 20:04:35 <ClearlyCoder> We've had this debate before.
Sep 04 17 20:06:11 <ClearlyCoder> I showed about 20 screenshots of it being totally wrong.
Sep 04 17 20:06:23 <multi-mod> I forgot I had my previous spam bot logging what it reported. I now have a list of 5000 something spammers over the last year and a half
Sep 04 17 20:06:33 <ClearlyCoder> multi-mod What kind of spammers?
Sep 04 17 20:06:41 <ClearlyCoder> That could be so valuable.
Sep 04 17 20:06:45 <multi-mod> I was just logging people posting domains above 20%
Sep 04 17 20:06:55 <multi-mod> yea, I wa going to do somestats with it
Sep 04 17 20:07:05 <multi-mod> I'm excited I added that feature
Sep 04 17 20:08:30 <multi-mod> yea, just shy of 5000 total entries
Sep 04 17 20:08:32 <multi-mod> https://puu.sh/xryMq/afcf3b1b0f.png
Sep 04 17 20:08:59 <ClearlyCoder> this screams ML
Sep 04 17 20:09:00 <ClearlyCoder> but
Sep 04 17 20:09:06 <ClearlyCoder> are most of the accounts shadowbanned?
Sep 04 17 20:09:24 <multi-mod> I literally just stopped the bot after having it run for a year. I haven't checked anythign yet
Sep 04 17 20:10:28 <multi-mod> yea, pretty much a year, the first entry was from 8/20/2016 4:02:08 AM
Sep 04 17 20:11:24 <ClearlyCoder> creesch https://cdn.discordapp.com/attachments/279692806442844161/354357805127434251/Screen_Shot_2017-09-04_at_4.11.09_PM.png
Sep 04 17 20:13:15 <multi-mod> I can provide anyone with the spam log if they want to play around with it
Sep 04 17 20:14:19 <creesch> I disagree about it being useless, it just isn't something to blindly use. But the extension I made for it givea s
Sep 04 17 20:14:45 <creesch> A pretty good general indicator for what sort of comment it is.
Sep 04 17 20:24:52 <ClearlyCoder> Testing it on /r/gadgets, 4th comment in and this thing already sends off a false alarm https://cdn.discordapp.com/attachments/279692806442844161/354361195198676994/Screen_Shot_2017-09-04_at_4.24.40_PM.png
Sep 04 17 20:25:10 <Cleroth> I'd like a bot that uses that and reports comments it perceives as toxic
Sep 04 17 20:25:12 <ClearlyCoder> When is that phrase *ever* toxic anyway? It's always used to poke fun at someone.
Sep 04 17 20:25:54 <Cleroth> it probably sees "you" and "fuck" and determines that to be toxic
Sep 04 17 20:26:02 <ClearlyCoder> 5th comment on /r/futurology
Sep 04 17 20:26:06 <ClearlyCoder> it also got that wrong
Sep 04 17 20:26:12 <ClearlyCoder> https://www.reddit.com/r/Futurology/comments/6xzutf/repeating_radio_signals_coming_from_deep_space/dmk9j4f/?utm_content=permalink&utm_medium=comments&utm_source=reddit&utm_name=Futurology
Sep 04 17 20:26:17 <Cleroth> orly, lemme delete it
Sep 04 17 20:26:52 <Cleroth> oh, that
Sep 04 17 20:27:23 <multi-mod> A noble attempt at machine learning at least
Sep 04 17 20:27:26 <Cleroth> shit + religion?
Sep 04 17 20:27:26 <Cleroth> xD
Sep 04 17 20:27:28 <ClearlyCoder> this thing goes crazy when it sees "shit" or "fuck" but on reddit they're used so commonly in a non-toxic way
Sep 04 17 20:27:44 <ClearlyCoder> sorry, I just think this thing is of dubious value
Sep 04 17 20:27:45 <ClearlyCoder> ¯\_(ツ)_/¯
Sep 04 17 20:27:47 <ClearlyCoder> /rant
Sep 04 17 20:27:54 <Cleroth> for now
Sep 04 17 20:28:02 <Cleroth> depends on where you apply it too
Sep 04 17 20:28:10 <Cleroth> and if you're okay with high false positives
Sep 04 17 20:28:20 <ClearlyCoder> https://cdn.discordapp.com/attachments/279692806442844161/354362064837410819/Screen_Shot_2017-09-04_at_4.28.11_PM.png
Sep 04 17 20:28:29 <ClearlyCoder> OK ok I'm done, I have real work I should be doing, not trolling someone else's hard work 😬
Sep 04 17 20:28:42 <BobCobble> /u/SJW_Bot
Sep 04 17 20:31:18 <Cleroth> to be fair I"m deliberately trying to break it
Sep 04 17 20:31:43 <Cleroth> https://cdn.discordapp.com/attachments/279692806442844161/354362916163551233/unknown.png
Sep 04 17 20:34:28 <Cleroth> toxicity aside, we delete a lot of comments in r/futurology that are mostly meme/references/jokes
Sep 04 17 20:34:34 <Cleroth> I'm sure an AI could be trained to detect those too
Sep 04 17 20:35:01 <Cleroth> at least the ones that are so popular on reddit
Sep 04 17 20:37:07 <BobCobble> ```["9gag.com","cheezburger.com","chzbgr.com","diylol.com","dropmeme.com","generatememes.com","imgflip.com","ismeme.com","livememe.com","makeameme.org","meme-generator.org","memecaptain.com","memecenter.com","memecloud.net","memecreator.org","memecrunch.com","memedad.com","memegen.com","memegenerator.co","memegenerator.net","mememaker.net","memesly.com","memesnap.com","minimemes.net","pressit.co","qkme.me","quickmeme.com","ratemymeme.com","troll.me","weknowmemes.com","winmeme.com","wuzu.se"]```
Collection of meme sites
Sep 04 17 20:37:48 <multi-mod> which meme generator site got themselves banned on reddit a few years ago?
Sep 04 17 20:38:46 <Cleroth> I think we probably got most of that banned already, I'm more talking plain text
Sep 04 17 20:39:05 <Cleroth> just deleted a rickroll comment though, I probably should include that in AM...
Sep 04 17 20:50:17 <justcool393> multi-mod quickmeme
Sep 04 17 21:36:19 <SpyTec> ```yaml
[9gag.com, cheezburger.com, chzbgr.com, diylol.com, dropmeme.com, generatememes.com, imgflip.com, ismeme.com, livememe.com, meme.am, makeameme.org, meme-generator.org, memecaptain.com, memecenter.com, memecloud.net, memecreator.org, memecrunch.com, memedad.com, memegen.com, memegenerator.co, memegenerator.net, mememaker.net, memesly.com, memesnap.com, minimemes.net, pressit.co, qkme.me, quickmeme.com, www.quickmeme.com, ratemymeme.com, troll.me, weknowmemes.com, winmeme.com, wuzu.se]```
BobCobble More meme sites. Includes meme.am and www. version of quickmeme
Sep 04 17 21:37:51 <BobCobble> Thanks, I'll update my current one.
Sep 04 17 21:39:40 <SpyTec> I have to say. Bitly is working quite nice for us https://cdn.discordapp.com/attachments/279692806442844161/354380016722903041/unknown.png
Sep 04 17 22:08:52 <justcool393> SpyTec would "quickmeme.com" not match "www.quickmeme.com"?
Sep 04 17 22:08:59 <SpyTec> Err
Sep 04 17 22:09:17 <justcool393> I'm pretty sure a domain check includes subdomains
Sep 04 17 22:09:21 <SpyTec> I got it from AM
Sep 04 17 22:09:21 <justcool393> unless you specify it
Sep 04 17 22:09:36 <SpyTec> Could force AM to fail on the rule and it would show the whole list IIRC
Sep 04 17 22:10:44 <SpyTec> I'm almost 99% sure at least..
Sep 04 17 22:11:06 <SpyTec> https://www.reddit.com/wiki/automoderator/standard-conditions
Sep 04 17 22:36:19 <justcool393> Well this is annoying: https://www.reddit.com/wiki/automoderator_standards
Sep 04 17 22:36:24 <justcool393> It isn't public.
Sep 04 17 22:36:45 <justcool393> AM loads the list from a wiki page
Sep 04 17 22:57:07 <SpyTec> Cause an error around the standard conditions and it should write out the full list on the error
Sep 04 17 23:10:42 <justcool393> huh
Sep 04 17 23:10:52 <justcool393> I'll have to do that when I get some time
Sep 05 17 03:55:07 <Deimos> justcool393 the rule definitions are written out on a public wiki page
Sep 05 17 03:55:18 <justcool393> oh hi Deimos
Sep 05 17 03:56:01 <Deimos> https://www.reddit.com/wiki/automoderator/standard-conditions
Sep 05 17 03:56:02 <justcool393> Deimos is that place I linked just the technical definition of the conditions then?
Sep 05 17 03:56:16 <Deimos> This mobile app is awful when the internet isn't reliable
Sep 05 17 03:56:23 <justcool393> tell me about it
Sep 05 17 03:56:33 <justcool393> I once pinged @everyone
Sep 05 17 03:56:35 <justcool393> 6 times once
Sep 05 17 03:56:38 <justcool393> bya ccident
Sep 05 17 03:56:49 <Deimos> Didn't you just do it now?
Sep 05 17 03:56:59 <justcool393> I don't have permissions to do so.
Sep 05 17 03:57:34 <Deimos> Ah ok
Sep 05 17 03:59:25 <Deimos> But yeah, it has an internal page it loads from and they're duplicated on that public page in the docs
Sep 05 17 04:00:44 <justcool393> Deimos ahh, gotcha. how old are the conditions?
Sep 05 17 04:01:28 <Deimos> Probably old, I doubt anyone maintains them since I left
Sep 05 17 04:01:37 <justcool393> *sigh*
Sep 05 17 04:02:21 <justcool393> You seem to be right
Sep 05 17 04:02:23 <justcool393> https://cdn.discordapp.com/attachments/279692806442844161/354476332798705665/unknown.png
Sep 05 17 04:02:53 <Deimos> Yep, that's what I expected
Sep 05 17 04:04:43 <Deimos> With how long automod issues seem to persist, I think there probably isn't anyone that really knows how it works
Sep 05 17 04:05:29 <MajorParadox> Maybe they can hire you back as an automod consultant? Just go in and fix it when it needs it 😛
Sep 05 17 04:05:46 <justcool393> MajorParadox so like, every other day right now?
Sep 05 17 04:05:50 <MajorParadox> Yep
Sep 05 17 04:09:18 <MajorParadox> Or maybe whatever they fix isn't really fixing it? ¯\_(ツ)_/¯
Sep 05 17 07:13:18 <creesch> ClearlyCoder rant noted and I fully understand your skepticism, but you are playing around in the demo with a small manual sample set where you already have an idea about what it should be. What I was talking about is being given access to the actual API which I fully intend to explore to its fullest to see if it can be useful. For which I have made this
Sep 05 17 07:13:21 <creesch> https://cdn.discordapp.com/attachments/279692806442844161/354524389422792715/image.png
Sep 05 17 07:15:10 <creesch> I have no illusions about this being a magical thing that will solve all our issues, but from what I have seen browsing reddit with that enabled it most certainly is able to pick up on a lot of hostility and the likes and given a few parameters I think it can be used as a pretty neat additional mod tool.
Sep 05 17 07:16:29 <creesch> Those parameters being the comment length and the threshold used. Shorter comments tend to be more difficult for the api to give context to and from letting it loose on a discord server it seems that proper threshold for reporting something is not at 50% mark but rather at the 60% mark.
Sep 05 17 07:17:58 <creesch> It also seems that from the models shown the toxicity one is the most reliable, which isn't that odd considering the others are experimental and purely trained by NYT mods on their comment section. https://github.com/conversationai/perspectiveapi/blob/master/api_reference.md#models
Sep 05 17 07:30:49 <creesch> The only thing I am not yet sure about is the best way to implement this, I could simply make a bot that reports anything above a certain threshold. I could also build something like a special queue for it.
Sep 05 17 07:46:58 <twilexis> creesch We appreciate you and what you're doing, buddy ❤
Sep 05 17 07:53:29 <justcool393> ```css
>I could also build something like a special queue for it.``` If you wanted to go the special queue route, you could always (ab)use the /api/info endpoint, since it allows you to use it in HTML mode.
Sep 05 17 07:57:40 <creesch> Oh right, totally forgot that is a thing.
Sep 05 17 23:29:30 <ClearlyCoder> > Incoherent, obscene, spam... better keep it off coding subreddits, lol.
Sep 06 17 21:07:40 <justcool393> So does deleted items (not removed) count towards the 1000 item listing limit?
Sep 07 17 11:23:16 <SpyTec> If they're in the list, then yes 😛
Sep 07 17 11:23:36 <SpyTec> If not, then 99% no
Sep 07 17 13:42:17 <Boop> I believe they do
Sep 07 17 13:42:28 <Boop> not in any sane way tho
Sep 07 17 20:44:17 <justcool393> SpyTec well, that's dumb 😦
Sep 07 17 20:44:26 <justcool393> that makes it harder to wipe content
Sep 07 17 20:44:37 <justcool393> luckily, I was able to use BigQuery to get some more data
Sep 07 17 22:52:15 <Thunderclaww> FYI, here's why AM isn't always working: https://www.reddit.com/r/AutoModerator/comments/6yga27/lately_automod_is_not_working_50_fail_rate_tested/dmpewwn/
Sep 08 17 00:26:27 <justcool393> Deimos I'm curious your take on this.
Sep 08 17 00:32:52 <Deimos> Not sure, they've probably changed some things that are causing it, nothing like that ever happened while I was there
Sep 08 17 00:33:27 <Balancegenerally> anyone able to tell me, will this catch the ones that are ninja edited?
```
type: comment
is_edited: true
action: remove
action_reason: edited
```
Sep 08 17 00:33:50 <Deimos> And since they don't open source the code, I have no idea what it could be
Sep 08 17 00:33:53 <Deimos> And since they don't open source the code, I have no idea what it could be
Sep 08 17 00:36:31 <allthefoxes> someones using the mobile app
Sep 08 17 00:36:42 <justcool393> Balancegenerally yes, I believe so. I think AutoMod does the check on comment edit.
Sep 08 17 00:37:53 <Balancegenerally> ok cool thanks
Sep 08 17 04:58:36 <Boop> probably moved it to 25 microservices
Sep 08 17 04:58:48 <Boop> just randomly failing and restarting
Sep 08 17 05:37:13 <justcool393> Boop that's how I fix my Discord bot's connection issues
Sep 08 17 05:37:19 <justcool393> just reset until everything works
Sep 08 17 05:37:33 <justcool393> it's worked for me so far
Sep 09 17 09:10:58 <Squingu> now that automod's been updated to act on crossposts, is it possible to check if `crosspost_author` and `author` match?
Sep 11 17 22:31:06 <BobCobble> https://redd.it/6zilev
Sep 13 17 00:29:51 <Deimos> Looks like they had to revert the change, just caused different issues
Sep 13 17 01:54:32 <Zeno> fuck me, well back to 30% failure rate then
Sep 13 17 07:54:43 <cuddlefishcat> is it actually 30%
Sep 13 17 07:54:49 <cuddlefishcat> that sounds about right to me
Sep 13 17 13:42:11 <Zeno> It was for those 2 days last week, that's probably not the overall average
Sep 13 17 20:42:21 <Boop> Hey could people tell me where times appear in the api?
Sep 13 17 20:43:21 <Boop> preferably the praw translation?
Sep 13 17 20:43:37 <Boop> I've got the following so far:
```python
praw.models.Subreddit.created_utc
praw.models.Redditor.created_utc
praw.models.Submission.created_utc
praw.models.Submission.edited
praw.models.Comment.created_utc
praw.models.Comment.edited
```
Sep 13 17 20:45:14 <Boop> I think that leaves me mail / modmail, and thats it?
Sep 13 17 20:54:39 <creesch> Edited, removed, etx
Sep 13 17 20:54:46 <creesch> *etc
Sep 13 17 20:55:31 <creesch> Nvm you already have those
Sep 13 17 20:55:42 <creesch> Oh not removed
Sep 13 17 20:55:49 <creesch> Also approved
Sep 13 17 20:56:01 <creesch> Spammed (different from removed)
Sep 13 17 20:59:10 <creesch> Anyway just have a look at the raw json of things you want to use.
Sep 13 17 20:59:47 <creesch> You can add .json to basically any reddit page to get an idea of what the api outputs
Sep 13 17 21:00:28 <creesch> Though you need a browser extension that formats it for you so it is readable.
Sep 13 17 21:02:22 <Boop> I also need situations where those things arn't null
Sep 13 17 21:02:29 <Boop> also wew dynamic programming https://cdn.discordapp.com/attachments/279692806442844161/357632150792699909/unknown.png
Sep 13 17 21:02:38 <Boop> im raymond hettenger now
Sep 13 17 21:04:22 <Jernik> `flashbacks to Analysis of Algorithms`
Sep 13 17 21:55:02 <justcool393> `created_dt`
Sep 13 17 21:55:43 <Boop> sickest sc reference
Sep 13 17 21:55:53 <Boop> or `created` is already taken
Sep 13 17 21:55:56 <Boop> u decide
Sep 14 17 01:43:33 <Geo☆1088> justcool393 plaintext amirite
Sep 14 17 01:43:41 <justcool393> uh huh
Sep 14 17 01:44:07 <Geo☆1088> i dont actually have anything else to say on that subject kek
Sep 14 17 01:44:52 <justcool393> https://cdn.discordapp.com/attachments/279692806442844161/357703213744521237/unknown.png
Sep 14 17 01:44:57 <XenoBen> Lame
Sep 14 17 01:45:58 <Geo☆1088> I think for the only Discord bot I still have running, I ended up storing the tokens and config stuff in the same file, too
Sep 14 17 01:47:24 <justcool393> oh yeah same here
Sep 14 17 01:48:47 <justcool393> https://cdn.discordapp.com/attachments/279692806442844161/357704201624748032/unknown.png
Sep 14 17 05:31:32 <TheXandan> So I want to make an automod thing that if someone with certain flair responds to a user, the user they respond to gets the flair
Sep 14 17 05:31:57 <TheXandan> Is that possible and if so, how would I go about doing this?
Sep 14 17 05:39:33 <justcool393> I'm not sure that AutoMod can set user flair, unfortunately. I know AM can affect a parent submission (I've created mod only flair this way) but not people.
Sep 14 17 05:39:34 <pHorniCaiTe> automod cant assign userflair
Sep 14 17 05:40:15 <TheXandan> ack
Sep 14 17 05:40:25 <TheXandan> foiled again
Sep 14 17 07:42:15 <creesch> That is not true
Sep 14 17 07:42:46 <creesch> I don't think it can do what you want though
Sep 14 17 07:53:30 <justcool393> creesch ?
Sep 14 17 07:54:00 <justcool393> it works with `parent_submission ` magic
Sep 14 17 08:58:20 <creesch> that only works on submissions not comments
Sep 14 17 08:58:34 <creesch> Anyway, automod can assign userflair
Sep 14 17 08:59:17 <creesch> It is what we use to automatically deal with people that use delete scripts. when automod detects those it assigns an invisible flair to the user so next time their shit gets automatically removed.
Sep 14 17 17:35:05 <Boop> so removed is banned_at, wut
Sep 14 17 17:37:46 <Boop> and a post is spammed when its banned but not removed=true
Sep 14 17 17:37:57 <justcool393> creesch but I actually wrote a role that did that
Sep 14 17 17:38:03 <Boop> spam=true is not indicitive of it being spamed?
Sep 14 17 17:38:12 <justcool393> no.
Sep 14 17 17:38:22 <Boop> who wrote this api
Sep 14 17 17:38:27 <justcool393> spam=true does mean it is spam
Sep 14 17 17:38:34 <justcool393> banned_at does not however.
Sep 14 17 17:38:40 <Boop> spam=false doesn't mean its not spam tho I think
Sep 14 17 17:38:47 <justcool393> no it doesnt
Sep 14 17 17:39:12 <justcool393> spam removals ate different than nonspam removals
Sep 14 17 17:39:24 <Boop> but it was a spam removal
Sep 14 17 17:39:27 <Boop> just by AM
Sep 14 17 17:39:35 <justcool393> one (sometimes, depending on a few factors) trains the spamfilter.
Sep 14 17 17:39:46 <Boop> both removed and spam were false
Sep 14 17 17:40:18 <justcool393> better thing to look at is banned_by
Sep 14 17 17:40:48 <Boop> a better thing to look for is reddit admins in public so I can complain at them for hours on end
Sep 14 17 17:40:58 <justcool393> true
Sep 14 17 17:41:37 <justcool393> either way
Sep 14 17 17:41:40 <Boop> so, there is `approved_at_utc`, and `banned_at_utc` both which only exist if its approved or banned
Sep 14 17 17:41:50 <Boop> but other things are just null when they don't exist
Sep 14 17 17:42:25 <justcool393> `banned_at_utc` is probably the attribute, but it may only work for not spam removals.
Sep 14 17 17:42:36 <Boop> thankfully its for both
Sep 14 17 17:42:36 <justcool393> or non AutoMod removals
Sep 14 17 17:43:00 <Boop> its `spam` and `removal` that are just weird, which are both bools
Sep 14 17 17:43:55 <justcool393> `removed` is just removed not spam, `spam` is well spam.
Sep 14 17 17:44:58 <Boop> and `edited` is a utc timestamp?
Sep 14 17 17:45:10 <Boop> but without the suffix of utc
Sep 14 17 17:45:13 <creesch> justcool393 as far as I know parent_submission acts on the submission not the parent comment
Sep 14 17 17:45:36 <justcool393> oh, we were talking about different things
Sep 14 17 17:45:48 <justcool393> sozzle
Sep 14 17 17:46:00 <justcool393> Boop I think
Sep 14 17 17:48:21 <Boop> https://cdn.discordapp.com/attachments/279692806442844161/357945685338882048/unknown.png
Sep 14 17 17:49:09 <Boop> I'm so glad I set up a bloody eval loop to make the functions
Sep 14 17 19:00:02 <Boop> and my sketchy code works! https://cdn.discordapp.com/attachments/279692806442844161/357963725807943680/unknown.png
Sep 16 17 02:59:11 <justcool393> So
Sep 16 17 02:59:15 <justcool393> I must be stupid or something
Sep 16 17 02:59:35 <justcool393> It works in regexr, but using this pattern in AutoModerator gives me an error:
```regex
\(?([0-9])\1{2}\)?[ .-]\1{3}[ .-]\1{4}```
Sep 16 17 03:00:16 <Geo☆1088> Is it because you're using the wrong type of quotes?
Sep 16 17 03:00:28 <justcool393> single quotes, right?
Sep 16 17 03:00:33 <Geo☆1088> I don't remember lol
Sep 16 17 03:00:51 <Geo☆1088> I can never memorize it, which is part of the reason I refuse to write regex rules anymore
Sep 16 17 03:00:52 <Geo☆1088> kek
Sep 16 17 03:00:59 <Geo☆1088> p sure it's in the docs somewhere tho
Sep 16 17 03:01:52 <justcool393> ohhh
Sep 16 17 03:01:59 <justcool393> Capture groups are done differently
Sep 16 17 03:02:13 <justcool393> I have to use `{{match-2}}` instead. :/
Sep 16 17 03:02:25 <Geo☆1088> huh
Sep 16 17 03:02:34 <Geo☆1088> what kind of syntax is that lol
Sep 16 17 03:02:51 <justcool393> hell if I'd know
Sep 16 17 03:17:24 <justcool393> okay
Sep 16 17 03:17:27 <justcool393> it's still not working
Sep 16 17 03:17:29 <justcool393> hmmm
Sep 16 17 03:29:18 <justcool393> Ah
Sep 16 17 03:29:21 <justcool393> It seems to be a known bug
Sep 16 17 13:45:15 <Boop> hmm
Sep 16 17 13:45:29 <Boop> `(?` should be `(?:` ?
Sep 16 17 17:12:29 <justcool393> Boop nah, I was matching a `(` literal (that is why it was escaped). Basically what has to happen is that you have to use *named capture groups* instead.
Sep 16 17 17:13:44 <Boop> ah
Sep 22 17 16:56:23 <Shane> Need some help with setting up some automod 😛
Sep 22 17 16:56:28 <Shane> Heres the plan:
Sep 22 17 16:57:34 <Shane> Every comment is removed unless its in 1 of the stickied threads or contains the word 'nanites', each of those removed comments gets a comment reply.
Sep 22 17 16:58:15 <Shane> Every post is removed unless it contains the word 'nanites' in the title
Sep 22 17 17:03:59 <Shane> BobCobble you're normally good at thsi shit right?
Sep 22 17 17:04:24 <BobCobble> yeah, one sec
Sep 22 17 17:04:54 <Shane> ❤
Sep 22 17 17:07:45 <Jernik> nanites son
Sep 22 17 17:07:58 <Jernik> oh no wrong meme
Sep 22 17 17:09:05 <BobCobble> Think i've got it, just testing it now
Sep 22 17 17:09:12 <Shane> ❤
Sep 22 17 17:14:45 <BobCobble> one sec, i thought it wasn't working at first but automod is just being slow it seems
Sep 22 17 17:16:24 <BobCobble> ```type: submission
~body(includes-word): [nanites]
action: remove
---
type: comment
action: remove
~body(includes-word): ["nanites"]
parent_submission:
~id: *submission id goes here*
comment: leave removal comment here
---```
Sep 22 17 17:17:05 <BobCobble> Add `moderators_exempt: false` if you want it to act on mods too and change submission id to the id of the stickied thread. Shane
Sep 22 17 17:17:18 <Shane> ❤
Sep 22 17 17:18:08 <Shane> I'll repay you with a free 'mod me'
Sep 22 17 17:19:14 <justcool393> BobCobble isn't there a `is_sticky` thing?
Sep 22 17 17:19:24 <BobCobble> ooh, yeah it might be actually
Sep 22 17 17:19:29 <BobCobble> that'd be easier
Sep 22 17 17:19:55 <BobCobble> nvm, doesn't look like it
Sep 22 17 17:20:00 <BobCobble> https://www.reddit.com/wiki/automoderator/full-documentation
Sep 22 17 17:20:10 <BobCobble> Not as far as I can see anyway
Sep 22 17 17:22:18 <BobCobble> Looks like `is_` can only be done on user checks
Sep 22 17 17:24:41 <BobCobble> Shane What subbie is this for out of interest?
Sep 22 17 17:37:38 <justcool393> ```yaml
moderators_exempt: false
action: spam```
This automod rule should mark every single thing as spam, right?
Sep 22 17 17:39:21 <BobCobble> If you add `type: any` then yes
Sep 22 17 17:39:32 <justcool393> okay
Sep 22 17 17:43:55 <SnowPhoenix> Why though? If you want to train your subreddit's spamfilter to filter everything, you could just set the spamfilter strength to "all" in subreddit settings.
Sep 22 17 17:44:47 <BobCobble> I don't think that filters comments
Sep 22 17 17:45:04 <SnowPhoenix> https://i.imgur.com/N34Ougn.png
Sep 22 17 17:45:49 <BobCobble> Oh ok, i've never used that to filter everything. Does it filter mod comments and posts?
Sep 22 17 17:46:30 <justcool393> SnowPhoenix that doesn't train the filter apparently (AM does however), but the reasoning is that the `all` option ignores approved submitters and moderators.
Sep 22 17 17:47:59 <justcool393> what I'm doing is this:
1.) I recently privated a subreddit that had a lot of PI in it. Removing it is alright and all, but the fact that the posters posted there leaks this information. I'm filling the `/about/spam` queue with posts so that you can't access the removed posts without knowing the URL.
Sep 22 17 17:49:08 <justcool393> I intend to demod myself from it eventually.
Sep 22 17 17:52:58 <SnowPhoenix> Interesting. So essentially trying to make 1000 or 10000 (can't remember which limit the spamfilter has) posts to flood the queue to push it out?
Sep 22 17 17:53:08 <justcool393> yup.
Sep 22 17 17:53:14 <justcool393> /about/spam is a listing just like any other
Sep 22 17 17:53:29 <justcool393> and if you wait a few months, it gets pushed out of the mod log.
Sep 24 17 02:46:28 <10thTARDIS> Has anybody used a ticketing system, like osTicket or Request Tracker, to deal with modmail?
Sep 24 17 02:50:44 <10thTARDIS> Is that even possible?
Sep 24 17 02:50:55 <10thTARDIS> Or am I barking up the wrong tree?
Sep 24 17 02:55:35 <allthefoxes> its pretty impractical
Sep 24 17 02:56:13 <10thTARDIS> Any particular reason?
Sep 24 17 02:56:46 <10thTARDIS> I mean, I can see why it could be difficult
Sep 24 17 02:57:01 <10thTARDIS> Just doing feasibility exploration at the moment
Sep 24 17 03:08:06 <justcool393> it may be possible to implement the modmail-to-email-feature-that-never-made-it-out-of-beta as a bot and have mods reply via email. It could work with a shared mod account as well. I'd've have an idea how to maybe do it, but it'd take effort
Sep 24 17 03:13:02 <10thTARDIS> Hmm. That could work.
Sep 24 17 03:13:20 <10thTARDIS> Might also be able to have that email sent to a ticketing server, and creating a ticket.
Sep 24 17 03:13:32 <10thTARDIS> So PRAW wouldn't work for this?
Sep 24 17 03:13:57 <justcool393> you could combine PRAW with something that emails.
Sep 24 17 03:15:08 <10thTARDIS> I suppose that's a possibility
Sep 24 17 03:15:18 <justcool393> In fact, as far as I remember, the /r/reddit.com modmail used to use a chain of modmail-to-email-to-Zendesk, but the admins cut out the middleman at some point and just did modmail-to-Zendesk via ZD's API
Sep 24 17 03:15:21 <10thTARDIS> (also, tagging ri0tnrrd since I was talking about this with her)
Sep 24 17 03:15:35 <10thTARDIS> See, that's basically what I want to do
Sep 24 17 03:15:44 <10thTARDIS> Just with something other than Zendesk
Sep 24 17 03:16:33 <10thTARDIS> I'm guessing that getting the admins to custom-code something for me is... unlikely 😄
Sep 24 17 03:18:24 <justcool393> Very.
Sep 24 17 03:39:15 <ri0tnrrd> huh?
Sep 24 17 03:39:31 <ri0tnrrd> oh yah what 10thTARDIS mentioned 😃
Sep 24 17 03:40:51 <ri0tnrrd> Also - question for anybody willing to give opinion - is it in good mod ummm 'something' to make a point of saying 'i'm a mod at /r/insertsubhere and ..... starting to give medical advice or something bordering on medical advice?
Sep 24 17 09:56:51 <Draculore> Can someone please help me with automoderator code to remove posts with cuss words
Sep 24 17 09:58:07 <Draculore> Or is this the wrong place to ask?
Sep 24 17 09:58:47 <BobCobble> i've got some regex for removing slurs but not cuss words
Sep 24 17 09:59:12 <BobCobble> but you'd just do
```
type: any
title+body(includes-word): [word1, word2]
action: remove
```
Sep 24 17 10:13:36 <Draculore> type: comment
body: ["nigg", "j3w", "faget", "fagg", "nigger", "niggers", "bitch", "dumb"]
action: filter
action_reason: Sent to modqueue due to racist word in comment
---
Sep 24 17 10:13:51 <Draculore> Found that somewhere
Sep 24 17 10:36:27 <SpyTec> ```yaml
# To catch potential deliberate rudeness
type: any
title+body (regex): ['fucking idiot\S*', 'cunt\S*', 'twat\S*', 'prick\S*', 'fag\S*', 'aut(ist|ism)\S*', 'frontier approved gam\S*', 'retard\S*', 'k(ill (yo)?ursel[fv](e?s)?|ys)', 'fuck (yo)?u(rself|[ \.…,?!\n\r])?', 's(hut the fuck up|tfu)', '(k?n[il1]gg?g?([e3][e3]?r|l[e3]t(t(e)?)?)|(f|ph)[a4]gg?g?([o0]t)?|[a4]ut[il1]s(t([il1]c)|m)?|ch[il1y]nc?k|[dk]h?[yil1]k[e3]|g[o0](llyw[o0]g|[o0]k)|j[e3]w|n[a4]z[il1]|h[il1]t[li][e3a4]r|r[e3]t[a4]rd([e3]d)?|qu[e3][e3][e3]?r)', '(yo)?u(''r|r| ar)e( (all|both))?( just)?( s(uch|o))?( an?)? ((?#ADJ_START)(fat|gay|(idiot|moron|spast)ic|stupid|shit(ty)?|fucking?|dumb)([- ]?ass)?(?#ADJ_END)|(?#NOUN_START)(ass([- ]?h(ole|at))?|bell([- ]?end)?|cho(ad|de)|cu(nt|ck)|((((d|pr)i|co)ck|k?nob)([- ]?(jocke?y|((s|f)u|li)cker))?)|(mother)?fucker|bitch|douche|flange|idiot|moron)(?#NOUN_END)s?)','[Ññn][13ieéí¡]g(ger|ga|g?let|g?ro|g?uh?)']
action: filter
report_reason: "Possible insult: The term [{{match}}] appears in this comment."```
Sep 24 17 10:36:39 <SpyTec> Saw that somewhere on /r/modtalk. Don't take credit for it
Sep 24 17 10:39:11 <Draculore> BobCobble thanks. It worked
Sep 24 17 10:41:25 <Draculore> Sent you a pm BobCobble
Sep 24 17 11:13:17 <Draculore> author:
comment_karma: "< -50"
account_age: "< 3 days"
action: remove
Sep 24 17 11:13:31 <Draculore> Would this work?
Sep 24 17 12:17:50 <Gleo> unrelated, but /r/polandball has an automod rule for removing tired, shitty reddit memes and it’s honestly beautiful
Sep 24 17 12:21:59 <Gleo> it’s too long for a discord message so i’ll just post a link
Sep 24 17 12:22:00 <Gleo> https://pastebin.com/xGfvKZVp
Sep 24 17 12:33:01 <Tealeaf> d0nger
Sep 24 17 12:41:29 <ri0tnrrd> nifty
Sep 24 17 12:56:01 <ri0tnrrd> y0 Niezo
Sep 24 17 12:56:09 <Niezo> why hello there
Sep 24 17 12:56:29 <Niezo> Am not very active here yet though.
Sep 24 17 16:55:20 <justcool393> BobCobble also: ```yaml
((fuc?k|kill?).(yo)?urself)|(keep (yo)?urself safe)```
Sep 24 17 16:57:26 <justcool393> https://cdn.discordapp.com/attachments/279692806442844161/361556747657412619/unknown.png
Sep 24 17 17:06:21 <SpyTec> But I sent the huge one with that included 😦
Sep 24 17 17:12:38 <justcool393> yeah but did you include keep yourself safe
Sep 24 17 17:12:39 <justcool393> also
Sep 24 17 17:12:44 <justcool393> I didn't read it that much
Sep 24 17 17:12:50 <justcool393> but on a quick scan didn't see it
Sep 24 17 17:22:15 <Tealeaf> keep yourself DANGEROUS
Sep 24 17 22:14:46 <TheAppleFreak> Quick question: does anyone know if resetting a password invalidates any OAuth refresh tokens for an account?
Sep 24 17 22:43:58 <justcool393> TheAppleFreak I believe so (you may have to select "log me out everywhere").
Sep 24 17 22:48:33 <TheAppleFreak> Cool. We're adding on some new bots to PCMRBot and I'm curious whether it'd be possible to generate a new password every so often for the account
Sep 24 17 22:49:27 <justcool393> if you're using the `script` type for auth, changing password does between jack and shit.
Sep 24 17 22:49:29 <justcool393> just so you know
Sep 24 17 22:49:30 <TheAppleFreak> And whether we'd need to figure out something with renewing the OAuth tokens or not
Sep 24 17 22:49:39 <TheAppleFreak> Heh lolno
Sep 25 17 13:46:14 <mbetts> So I just had a thought
Sep 25 17 13:47:01 <mbetts> I'm considering writing a program that builds Automod rules for you through an interface
Sep 25 17 13:47:29 <mbetts> I've done something like this before that auto writes code for arma missions, so it shouldn't be too big of a leap
Sep 25 17 13:47:53 <mbetts> I think itd help out a lot of people who don't know how to write the rules themselves
Sep 25 17 13:48:27 <mbetts> Any thoughts on it?
Sep 25 17 13:52:00 <BobCobble> https://github.com/captainmeta4/AutoMod-Rule-Maker
Something like this?
Sep 25 17 14:11:21 <mbetts> Yeah I think so, but it also looks like it hasn't been updated in a while
Sep 25 17 14:12:26 <Tealeaf> have automod rules been updated either?
Sep 25 17 14:12:56 <mbetts> There's an issue from 17 days ago asking for the new rules go be added, and it was last updated 2 months ago. So maybe?
Sep 25 17 14:13:32 <mbetts> Okay nvm he responded to it 4 days ago
Sep 25 17 14:27:15 <Boop> man I'd rather a local linter and to be able to just feed example submissions/comments through the rule just for testing
Sep 27 17 05:32:11 <Boop> does anyone have a `RSS/ATOM -> subbie` bot?
Sep 27 17 06:42:29 <justcool393> Boop IFTTT works well for this.
Sep 27 17 09:30:23 <Shane> https://www.reddit.com/r/TestingSubbie/ how would I get automod to summon an already existing bot that would pretty much say the same thing as it?
Sep 27 17 10:11:07 <Tealeaf> https://www.reddit.com/r/buzzfeedbot/ neat
Sep 29 17 09:44:00 <creesch> For anyone interested
Sep 29 17 09:44:01 <creesch> https://gist.github.com/creesch/93257450cdd70994019329c5af27efb9
Sep 29 17 09:44:16 <creesch> Made a nodejs bot that outputs new modmail to a discord channel
Sep 29 17 09:45:22 <creesch> example https://cdn.discordapp.com/attachments/279692806442844161/363259954620268554/image.png
Sep 29 17 09:48:12 <creesch> Though it shouldn't be too terrible I didn't really put much effort/planning in it so there might be some weird/lazy bits in the code.
Sep 29 17 09:48:21 <creesch> It is fully functional though
Sep 29 17 09:49:26 <Gleo> oooh sounds exciting!
Sep 29 17 09:49:42 <Gleo> does it perchance work with the old modmail?
Sep 29 17 09:49:48 <creesch> Nope
Sep 29 17 09:50:06 <Gleo> ay
Sep 29 17 09:50:20 <creesch> I don' t mod any subs that use old modmail
Sep 29 17 09:50:29 <cuddlefishcat> is there a character limit?
Sep 29 17 09:51:06 <creesch> I don' t know actually, I use discord webhooks and am not sure if embeds have a limit.
Sep 29 17 09:52:11 <creesch> The discord documentation doesn' t say anything about limits.
Sep 29 17 09:52:26 <creesch> Though that doesn' t say much as the discord documentation often lacks information
Sep 29 17 09:52:56 <cuddlefishcat> yeah
Sep 29 17 09:52:57 <creesch> But if that is true then the limit is on reddits side of things
Sep 29 17 09:53:06 <creesch> Assuming you are talking about the preview text
Sep 29 17 09:53:24 <cuddlefishcat> yep
Sep 29 17 09:53:24 <cuddlefishcat> jw
Sep 29 17 11:07:05 <Shane> creesch does that work with godmail?
Sep 29 17 11:07:12 <Shane> *new modmail
Sep 29 17 11:07:51 <creesch> No it doesn' t work with both new and old modmail, just with fictional modmail 😛
Sep 29 17 11:08:16 <Shane> 😐
Sep 29 17 11:08:33 <creesch> (it is for new modmail)
Sep 29 17 11:08:36 <Shane> >Made a nodejs bot that outputs new modmail to a discord channel
I am blind
Sep 29 17 11:10:18 <cuddlefishcat> will it send me all of your modmail
Sep 29 17 11:23:31 <creesch> No, it will not even send all of your modmail 😛
Sep 29 17 11:24:25 <creesch> Somewhat more serious: It will alert you off any new conversations in the folders you defined. It doesn't notify when someone replied for example.
Sep 29 17 11:25:04 <creesch> In /r/history we have set it up to alert us about mails in new, highlighted, mod and notifications.
Sep 29 17 11:27:53 <乇乂ㄒ尺卂 ㄒ卄丨匚匚> well i mean the new modmail is basically godmail
Sep 30 17 09:46:05 <Boop> justcool393 the account needs to have karma for IFTTT to work, n' I ain't keen on giving IFTTT access to absolutely everything on my reddit acnt
Oct 02 17 02:02:35 <ri0tnrrd> some help with regex: I'm trying to have it catch either a or an and after that a couple different works but no what I come up with it keeps only doing only a or only an - anybody know offhand how to properly get that to check for either on an either of ahahh either of them?
Oct 02 17 02:04:33 <justcool393> `an? (word1|word2|word3)` ri0tnrrd
Oct 02 17 02:04:46 <justcool393> the word1|word2|word3 part could be made a bit better
Oct 02 17 02:04:47 <justcool393> but...
Oct 02 17 02:07:33 <ri0tnrrd> bahhh aaannnd I oddly enough got it
Oct 02 17 02:07:45 <ri0tnrrd> (an)?
Oct 02 17 02:08:05 <ri0tnrrd> now to figure out the rest but also - what if that itself should have a ?
Oct 02 17 02:08:26 <Geo☆1088> `(an)?` and `an?` aren't the same
Oct 02 17 02:08:33 <HH0S> an? will also trigger for just a
Oct 02 17 02:08:48 <Geo☆1088> whereas `(an)?` triggers on "an" or nothing
Oct 02 17 02:08:52 <HH0S> the ? after the "n" only affects the n
Oct 02 17 02:10:10 <ri0tnrrd> what I'm trying to accomplish is it to look at any of these and pick it up
Oct 02 17 02:11:04 <justcool393> so `a` or `an` you want it to trigger, right?
Oct 02 17 02:11:06 <ri0tnrrd> looking for (clan|active clan|active members|members|recruitment)
Oct 02 17 02:11:39 <ri0tnrrd> well I want it to trigger whether or not it has a or an in front of the words in the () above
Oct 02 17 02:11:50 <justcool393> oh
Oct 02 17 02:11:55 <justcool393> `((active)? (clan|members)|recruitment))`
Oct 02 17 02:12:39 <Geo☆1088> prob put the space inside the parens so things don't get weird if you combine with `an? `
Oct 02 17 02:12:55 <Geo☆1088> `((active )?(clan|members)|recruitment))`
Oct 02 17 02:12:57 <ri0tnrrd> on top of that the option which I may need to just write differently but in the context on new clan looking for then join ?new (my|our|the|this) or something like that
Oct 02 17 02:13:22 <ri0tnrrd> hhmmmm
Oct 02 17 02:13:45 <ri0tnrrd> aahh I see
Oct 02 17 02:13:53 <ri0tnrrd> interesting that it's on active
Oct 02 17 02:14:48 <justcool393> you could also do `((active )?(clan|members|recruitment))` if you want to include "active recruitment" as well.
Oct 02 17 02:14:52 <ri0tnrrd> pretty much I want it to grab if it has: looking for (a/an in there or not) active clean, member, active members, clan, (our)? new clan and so forth
Oct 02 17 02:15:01 <ri0tnrrd> oohhhh ok lemme try tht
Oct 02 17 02:15:55 <ri0tnrrd> then there's the join (my|our|this) (active|new) clan
Oct 02 17 02:16:13 <ri0tnrrd> thanks for helpiing me with this btw Justin
Oct 02 17 02:16:17 <ri0tnrrd> and Geo☆1088
Oct 02 17 02:17:13 <ri0tnrrd> but still runs into the issue of how to do the addition of a or an
Oct 02 17 02:18:31 <justcool393> do you want it to capture if you have "a", "an", or nothing at all?
Oct 02 17 02:18:42 <ri0tnrrd> that being said fucking awesome what you gave me seems to be working!! correct
Oct 02 17 02:18:51 <ri0tnrrd> if it has a or an or nothing at all
Oct 02 17 02:19:08 <justcool393> If you're using AutoModerator, it won't matter if it's captured.
Oct 02 17 02:19:18 <justcool393> because it captures on "active recruitment" or whatever already
Oct 02 17 02:19:29 <ri0tnrrd> crap tech active also could either be there or not 😦
Oct 02 17 02:19:48 <ri0tnrrd> to grab "looking for a clan"
Oct 02 17 02:20:27 <justcool393> it'd capture that, actually.
Oct 02 17 02:20:30 <ri0tnrrd> and or looking for a new clan, or looking for a/an active clan
Oct 02 17 02:20:43 <ri0tnrrd> hhmmm the one you gave me lemme double check
Oct 02 17 02:21:27 <justcool393> oh, do you have `looking for` in there before the regex we provided?
Oct 02 17 02:23:39 <ri0tnrrd> yes
Oct 02 17 02:23:45 <ri0tnrrd> sorry I should have mentioned that
Oct 02 17 02:24:12 <ri0tnrrd> the two main words/phrase to start are either looking for, or join my
Oct 02 17 02:24:54 <ri0tnrrd> but I mean even what I have honestly that would grab sooo many and I can also do the: a clan in a new thing
Oct 02 17 02:42:53 <ri0tnrrd> hhmmm sorry to bother again but in writing out join (our|my) clan - how do I add something that has or does not have the word new before clan?
Oct 02 17 02:49:23 <Geo☆1088> add a `?` outside the last paren
Oct 02 17 02:49:33 <Geo☆1088> i think
Oct 02 17 02:49:42 <Geo☆1088> spacing might get weird
Oct 02 17 02:57:18 <ri0tnrrd> it's ok I'm testing what I have now and will go from there - at the very least it will cut down on the queue a bit - thanks for your help
Oct 02 17 05:12:30 <ri0tnrrd> does anybody know what happened to the u/FlairYourPostBot by chance?
Oct 02 17 05:16:48 <HH0S> if u need a flair bot, you can try /u/flair_enforcer_bot
Oct 02 17 05:20:39 <ri0tnrrd> nope I got it - working on my own server *dances the dance of joy* but thanks 😃
Oct 02 17 05:21:21 <ri0tnrrd> holy crap I think I actually do have it working - which means I can rip it a part and create a 'wall of text' version
Oct 02 17 16:08:28 <Tayzers> can automod be triggered if you assign a flair to a post? say if i put 'question' as my flair for the post automod posts something like an FAQ
Oct 02 17 16:12:26 <BobCobble> No. Automod can only be triggered when something is first submitted, edited, reported or commented.
Oct 04 17 19:28:18 <BobCobble> https://www.reddit.com/r/automodsnippets/
Just made a sub to dump useful automod code to.
Oct 04 17 19:29:00 <cuddlefishcat> that's really good
Oct 04 17 23:09:05 <Squingu> hey look at that, i have one too https://www.reddit.com/r/CleverAMSolutions
Oct 05 17 03:16:04 <Musely> Now kiss.
Oct 05 17 05:43:30 <Squingu> BobCobble 😘
Oct 05 17 05:45:19 <Gleo> i'm not bob, but eh
Oct 05 17 05:45:31 <Gleo> Squingu 😘
Oct 05 17 05:46:02 <Squingu> Scandalous
Oct 05 17 08:20:43 <Boop> and now time to steal both for my tiddly wiki
Oct 09 17 02:20:10 <ri0tnrrd> can anybody help me or point me in the right direction so I can update the sidebar with info from a .json file ? using praw latest version if I have to or eariler version
Oct 09 17 02:22:25 <allthefoxes> Maybe reach out to CFB mods? IDK, but their sidebar is black magic
Oct 09 17 02:27:07 <ri0tnrrd> heheh CBF?
Oct 09 17 02:27:59 <ri0tnrrd> I dunno -I have about 7 or so github pages open that have json and sidebar in them somewhere I'm sorting through - thing is I could have sworn I had a script doign this about a year ago but NO clue where I put it and less of a clue what I wrote :\
Oct 09 17 02:56:38 <Geo☆1088> ri0tnrrd idk about loading the JSON but I can hook you up with a PRAW script to edit the sidebar if you have text that it should be
Oct 09 17 02:57:27 <ri0tnrrd> yah sure maybe - I mean I have found reference to a few ways I could do it - send it on over I'd be happy to lood and thanks 😃
Oct 09 17 02:57:41 <Geo☆1088> Sure thing, sec
Oct 09 17 02:58:07 <ri0tnrrd> Finding a LOT of ways to grab stuff from reddit and do a json dump but only a few on reading from a json dumb except for a few subs that are outdated - still have a few githubs to scour 😃
Oct 09 17 02:58:51 <Geo☆1088> Ah, so you have a dump of sub info and want to apply it back to the sub or something?
Oct 09 17 03:02:08 <ri0tnrrd> well not really. I have a .json file on my server that I want it to grab from in particular 1 thing and update the sub's sidebar with that item
Oct 09 17 03:02:34 <ri0tnrrd> the .json file itself only has 4 things I think but it's auto updated every 5 seconds with the indermation
Oct 09 17 03:02:39 <ri0tnrrd> information that is
Oct 09 17 03:03:05 <ri0tnrrd> from there I want to take 1 json item of that file and update the sidebar with that item info
Oct 09 17 03:03:33 <Geo☆1088> ah gotcha
Oct 09 17 03:04:33 <Geo☆1088> I dunno how you'd handle ratelimits on that kind of thing and my brain isnt really working rn but I can get you hooked up with the part for the actual uploading to reddit, you can add in the file reading and JSON parsing yourself
Oct 09 17 03:04:37 <ri0tnrrd> now if I need to convert the info in the .json file and put it in either a csv, or a sqlite or a text file I guess I could go about it that way
Oct 09 17 03:04:54 <ri0tnrrd> thanks that would be a big help 😃
Oct 09 17 03:06:06 <Geo☆1088> Pretty sure json is easy to work with if you want to parse that from python, i just dont have code for it handy :P
Oct 09 17 03:06:44 <ri0tnrrd> yah I know I feel rather inept that I can't seem to put together how to easily do this
Oct 09 17 14:53:21 <Boop> `data = json.load(open(file_location))['path'][0]['to']['data']`
Oct 09 17 14:54:11 <Boop> `data = requests.get(url).json()['path'][0]['to']['data']` if its url accessable
Oct 09 17 14:54:54 <Boop> then you download the current sidebar with praw (or use the last uploaded sidebar), slot the data in, and then upload it
Oct 09 17 15:59:57 <ri0tnrrd> Boop yah I ended up getting it to work thanks!
Oct 10 17 03:39:18 <Boop> https://github.com/Reddit-Mods/AMConfigs/tree/master/src hey guess who scored a dank org name
Oct 10 17 03:39:23 <Boop> its this guy
Oct 10 17 03:43:38 <Boop> n' if anyone wants to be added to it just ask i gues
Oct 10 17 03:46:05 <ClearlyCoder> Boop oh my god
Oct 10 17 03:46:22 <ClearlyCoder> That is one of the worst slur filters I've seen in my life!
Oct 10 17 03:47:15 <ClearlyCoder> ....some of the highlights include: sick, idiot, kill yourself (but not kys or any other variant)
Oct 10 17 03:47:26 <ClearlyCoder> gas? wtf?
Oct 10 17 03:47:49 <Boop> oh yeah because some guy was obsessed with the idea of gassing characters
Oct 10 17 03:48:04 <ClearlyCoder> is it for a specific sub?
Oct 10 17 03:48:13 <ClearlyCoder> In that case it's still pretty bad but I guess a little less bad
Oct 10 17 03:48:34 <Boop> fwiw I think it has a 80% success rate
Oct 10 17 03:48:54 <ClearlyCoder> whoa
Oct 10 17 03:48:58 <Boop> but yeah feel free to join and or pullreq
Oct 10 17 03:49:12 <ClearlyCoder> can you define 80% success rate though?
Oct 10 17 03:49:18 <ClearlyCoder> Is it for a specific sub?
Oct 10 17 03:49:23 <Boop> a porn sub
Oct 10 17 03:49:40 <ClearlyCoder> ah yeah, I guess conversation there is limited to, er
Oct 10 17 03:49:42 <Boop> so generally, if someone is making a comment, its already 50% chance its going to be a shit comment
Oct 10 17 03:50:12 <ClearlyCoder> Automoderator:
> removes everything in sub
> 95% success rate
Oct 10 17 03:50:29 <Boop> prettty much
Oct 10 17 03:54:21 <Boop> fuk
Oct 10 17 03:57:02 <Boop> <https://avatars1.githubusercontent.com/u/32661751?v=4&s=200> there we go
Oct 10 17 04:07:15 <justcool393> add me Boop please I've done reddit-mods stuff justcool393
Oct 10 17 04:08:30 <Boop> there u go
Oct 10 17 04:08:35 <justcool393> thanks
Oct 10 17 07:30:57 <Tealeaf> Gas the news info wars now
Oct 10 17 07:32:14 <BobCobble> https://github.com/Reddit-Mods/AMConfigs/blob/master/src/approve-contributors.yaml
Oct 10 17 07:32:17 <BobCobble> this won't work
Oct 10 17 07:32:35 <Tealeaf> One of the subreddits I mod has automod so tight that it’s mostly false positives
Oct 10 17 07:32:35 <BobCobble> it'll only approve stuff when they are in modqueue or filtered for whatever reason
Oct 10 17 07:32:45 <BobCobble> it won't approve as soon as stuff is posted
Oct 10 17 11:39:55 <SpyTec> We should create a Discord where we share AM config rules
Oct 10 17 11:54:16 <BobCobble> I made a subreddit for sharing some if you're interested. /r/automodsnippets. I'll make you an approved submitter if you want later.
Oct 10 17 11:54:33 <BobCobble> I just use it to save useful ones
Oct 10 17 12:33:04 <mbetts> I swear there is already a sub for that
Oct 10 17 13:35:27 <Boop> BobCobble tbf AM fishing something out of modqueue when submitted by an approved contrib was the exact usecase
Oct 10 17 13:36:37 <Boop> and yeah there is 2 sub wikis, 2 subs, a tiddlywiki, and a git repo just for AM configs
Oct 13 17 01:17:57 <Boop> Does anyone have any experience with reddit oauth for a single page application?
Oct 14 17 00:25:48 <MajorParadox> Is there a way to flag comments with automod that have a high frequency of a single word? Either by defining specific words or just a high frequency of any word?
Oct 14 17 00:26:27 <MajorParadox> For example a comment with lots of "woof woof woof" or "moo moo moo"
Oct 14 17 00:30:37 <Geo☆1088> could use a regex, something like `((word1|word2|word3)\s){5}`
Oct 14 17 00:30:49 <Geo☆1088> catches 5 or more instances of any of `word1`, `word2`, `word3`
Oct 14 17 00:31:31 <MajorParadox> Cool, thanks!
Oct 14 17 00:33:22 <MajorParadox> Would it only be if those words are in a row or 5 total in the comment?
Oct 14 17 00:34:43 <Deimos> that one would only work for 5 in a row
Oct 14 17 00:34:45 <Geo☆1088> Er, forgot the `.*`
Oct 14 17 00:34:55 <Deimos> you could write a regex that looks for 5 anywhere, but it has the potential to be slow and I'm not sure if it will always work
Oct 14 17 00:35:23 <Geo☆1088> `((word1|word2|word3)\s[\S\s]*){5}` would do it I think
Oct 14 17 00:35:36 <Geo☆1088> `[\S\s]*` instead of `.*` because newlines
Oct 14 17 00:36:01 <MajorParadox> Might be better to check them in a row anyway.
Oct 14 17 00:36:05 <Deimos> I think that would still only find ones in a row
Oct 14 17 00:36:46 <MajorParadox> The use case is in WritingPrompts when someone posts a prompt about a dog and lots of people just post "Woof woof woof," said the dog. Woof woof woof... and so on
Oct 14 17 00:37:17 <Geo☆1088> https://cdn.discordapp.com/attachments/279692806442844161/368557844703739905/unknown.png
Oct 14 17 00:37:35 <Geo☆1088> could actually use `\b` rather than `\s` for the boundary but otherwise it works
Oct 14 17 00:38:04 <Deimos> yeah, that's going to be difficult for writingprompts probably, if you're going to do it I'd suggest also adding a check to make sure that the comment's length is short
Oct 14 17 00:38:17 <Deimos> otherwise you could catch a very long actual response that just happened to use the word 5 times out of 1000 or something
Oct 14 17 00:38:22 <MajorParadox> Yeah
Oct 14 17 00:38:35 <Deimos> also risky for the runtime issue in writingprompts especially because so many comments are long
Oct 14 17 00:38:54 <MajorParadox> Hmm, but they might also just copy/paste it over and over
Oct 14 17 00:39:03 <Deimos> automod used to only allow 2 seconds for checking a particular comment against the rules in a subreddit before it would stop and skip it, I don't know if they've changed that to some other method now though
Oct 14 17 00:39:14 <Deimos> I think that timeout was related to all the issues with it skipping tons of stuff lately, so I expect they've changed it somehow
Oct 14 17 00:40:12 <MajorParadox> I'll probably just play around with it and have automod report comments first just to see how well it works, anyway
Oct 14 17 00:58:55 <MajorParadox> How did the one work with them in a row? Geo☆1088, you said `((word1|word2|word3)\s){5}` needed a `.*`?
Oct 14 17 01:01:15 <Geo☆1088> In a row, you'd use something like `((word1|word2|word3)\b\s*){5}` I think
Oct 14 17 01:01:39 <Geo☆1088> https://cdn.discordapp.com/attachments/279692806442844161/368563976755478528/unknown.png
Oct 14 17 01:01:56 <MajorParadox> Cool, thanks again!
Oct 14 17 01:02:31 <Geo☆1088> No prob
Oct 14 17 01:05:00 <MajorParadox> Hmm, `found unknown escape character 's'`
Oct 14 17 01:05:08 <MajorParadox> Trying to save in automod config
Oct 14 17 01:05:35 <MajorParadox> `body (regex): "((woof|moo|oink|squawk|hoot|baa)\b\s*){4}"` That's what I came up with
Oct 14 17 01:05:45 <MajorParadox> Do I need to double escape?
Oct 14 17 01:06:13 <Geo☆1088> uh, maybe
Oct 14 17 01:06:16 <Geo☆1088> or try single quotes
Oct 14 17 01:06:23 <Geo☆1088> i dont remember which is better for regexps
Oct 14 17 01:06:40 <MajorParadox> Single quotes worked 🙂
Oct 14 17 01:06:43 <Geo☆1088> woo
Oct 14 17 01:07:06 <Geo☆1088> Also, you could do stuff like `moo+` and `baa+` to catch instances of "moooo" and "baaa" and stuff too if you want
Oct 14 17 01:07:18 <MajorParadox> Oh, good idea
Oct 14 17 01:08:17 <Deimos> it probably won't matter, but one thing to keep in mind is that it will catch any of those words in a row, not necessarily just the same one
Oct 14 17 01:08:30 <Deimos> so something like "woof moo oink hoot" would trigger it, not just "woof woof woof woof"
Oct 14 17 01:08:49 <Geo☆1088> Also, if there's punctuation between the words it won't trigger
Oct 14 17 01:09:09 <MajorParadox> I can't imagine that'd come up naturally
Oct 14 17 01:09:21 <Deimos> yeah, you could replace the `\b\s*` with something like `\W*` instead
Oct 14 17 01:09:27 <MajorParadox> The mixing, I mean, not the punctuation
Oct 14 17 01:09:51 <Geo☆1088> Would that be the same as something like `\b[.,;\s]*`
Oct 14 17 01:09:54 <MajorParadox> `\W*` to catch the punctuation?
Oct 14 17 01:10:14 <Deimos> `\W` is "non-word characters", so it's everything except letters, numbers, and underscore
Oct 14 17 01:10:49 <Geo☆1088> That doesn't include the word boundary though, so it would also trigger on something like "woofwoofwoofwoof"
Oct 14 17 01:10:55 <Geo☆1088> That might be a good thing though
Oct 14 17 01:11:13 <Deimos> maybe yeah, or you could just change the `*` to a `+` instead
Oct 14 17 01:11:26 <Geo☆1088> True
Oct 14 17 01:11:30 <Deimos> always about 8000 different options for how to do the same thing in regex
Oct 14 17 01:11:35 <Geo☆1088> lmao
Oct 14 17 01:11:47 <Geo☆1088> this makes me want to go optimize /r/anime's now
Oct 14 17 01:11:59 <MajorParadox> But `\W*` was fine, right?
Oct 14 17 01:12:17 <Geo☆1088> Yeah, that'll work
Oct 14 17 01:12:19 <Deimos> yeah, as long as you don't mind, like geo said, the possibility of catching ones without spaces or anything between
Oct 14 17 01:12:36 <Geo☆1088> `body (regex): '((woof|moo|oink|squawk|hoot|baa)\W*){4}'`
Oct 14 17 01:13:36 <MajorParadox> Yeah, no spaces isn't any better haha
Oct 14 17 01:15:33 <Geo☆1088> or i guess if you do the other thing too, `body (regex): '((woof|moo+|oink|squawk|hoot|baa+)\W*){4}'`
Oct 14 17 01:17:56 <MajorParadox> 👍
Oct 14 17 01:29:04 <MajorParadox> Tested and it works good 🙂
Oct 14 17 01:30:39 <Geo☆1088> \o/
Oct 16 17 08:33:04 <SpyTec> Is there a way to check for all caps titles with AM, including characters
Oct 16 17 08:46:52 <Tealeaf> You can try matching for a lack of lower case characters
Oct 16 17 08:47:44 <Tealeaf> There should be a regex character class for lower case stuff including international
Oct 16 17 15:57:57 <kuhnie> Any reason this script would allow non-whitelisted sites to be posted in automod?
>type: submission
>
>~body+domain: [archive., unvis.it, imgur.com, reddituploads.com, redd.it, reddit.com, clickhole.com, clusterfake.net, webcache.googleusercontent.com, streamable.com, youtube.com, gyazo.com, sendvid.com]
>
>body+domain: [archive.org/save/, msn.com]
>
>action: remove
action_reason: Unarchived
Oct 16 17 15:58:57 <kuhnie> '''type: submission
~body+domain: [archive., unvis.it, imgur.com, reddituploads.com, redd.it, reddit.com, clickhole.com, clusterfake.net, webcache.googleusercontent.com, streamable.com, youtube.com, gyazo.com, sendvid.com]
body+domain: [archive.org/save/, msn.com]
action: remove
action_reason: Unarchived'''
Oct 16 17 15:59:04 <kuhnie> wtf how do I do code on discord?
Oct 16 17 15:59:44 <kuhnie> ```type: submission
~body+domain: [archive., unvis.it, imgur.com, reddituploads.com, redd.it, reddit.com, clickhole.com, clusterfake.net, webcache.googleusercontent.com, streamable.com, youtube.com, gyazo.com, sendvid.com]
body+domain: [archive.org/save/, msn.com]
action: remove
action_reason: Unarchived```
Oct 16 17 15:59:47 <kuhnie> Nailed it
Oct 16 17 16:07:26 <justcool393> It only allows the blacklisted sites to be posted.
Oct 16 17 16:07:38 <justcool393> flip the lines that have ~ and the one that doesn't
Oct 16 17 16:08:06 <justcool393> also you can turn off images in your settings and that will disable imgur and places like there too
Oct 16 17 19:43:50 <kuhnie> The ~body+domain: sites are the ones I want posted. We're getting sites that are not on that list posted
Oct 16 17 20:19:16 <Deimos> kuhnie the problem is probably that you've got two checks at the same time, and people aren't going to be able to satisfy them both
Oct 16 17 20:19:43 <Deimos> you most likely need to split it into two rules
Oct 16 17 20:21:34 <Deimos> right now it will only remove a post if it's from msn.com, because that's the only valid thing in there (`archive.org/save/` is a url, not a domain)
Oct 16 17 20:22:17 <Deimos> with both checks in the same rule like that, they both need to be satisfied, so the post has to be NOT from the big list, AND from the small list, and the only thing that's going to satisfy both of those right now is msn.com
Oct 16 17 20:22:46 <Deimos> or a self-post with `archive.org/save/` in it, I think
Oct 16 17 20:25:52 <Deimos> actually I'm not sure why you have the second check at all
Oct 16 17 22:37:07 <kuhnie> Well the second check was to prevent links to archive.org/save/, and I recently added msn because it made it through the filter without an explicit check. More posts than we want are making it through, we're not having a problem of no posts making through the filter, the filter isn't stopping posts that aren't on the whitelist. But are you saying that if a post is not in the big list and not archive.org/save/ in the post it would get through, because that would explain the problem
Oct 16 17 22:40:06 <Deimos> yes, I'm saying that the rule as it is right now won't work, and won't do anything
Oct 16 17 22:40:26 <kuhnie> Got it
Oct 16 17 22:40:34 <Deimos> what you'll want to do is remove that `body+domain` check from that one, and just leave it as *only* checking against the whitelist
Oct 16 17 22:41:03 <Deimos> then add a separate check that looks for `archive.org/save` (and it needs to be a `url:` check, not `domain:`) and removes ones that match that
Oct 16 17 22:42:35 <Deimos> so overall you'd have something like:
```
---
type: submission
~body+domain: [...whitelist...]
action: remove
action_reason: Unarchived
---
type: submission
body+url: 'archive.org/save/'
action: remove
action_reason: archive save page
---
```
Oct 16 17 22:43:53 <kuhnie> Sounds great, thanks for pointing that out!
Oct 17 17 02:04:47 <justcool393> So it appears that there is a bug with AutoModerator, where it doesn't set `spam` or `removed` when it actions on a post. While there isn't a way to get the "action note" via the API (i.e. `spam`, `confirm spam`, `reinforce spam`, `removed not spam`), you can fudge it and get whether it's `removed not spam` (or a `spam`my type) via these two properties, but only when the actioner is not AutoModerator.
Oct 17 17 02:06:54 <justcool393> https://cdn.discordapp.com/attachments/278566343836565505/363510076058894337/unknown.png
Oct 17 17 02:07:14 <Boop> man
Oct 17 17 02:07:34 <Boop> so I guess part of that mystery is sorta solved?
Oct 17 17 02:08:04 <justcool393> the mystery is solved, but the bug still remains
Oct 17 17 02:08:34 <Boop> man I really hope for an api v2 for next reddit
Oct 17 17 02:09:04 <justcool393> now they'd be *really* funny if they changed it the `/api/v4/` instead
Oct 17 17 02:09:43 <justcool393> `removal_reason` only appears to even apply to posts that are "takedown"ed.
Oct 17 17 02:09:55 <justcool393> it seems to be either `null` or `legal`.
Oct 17 17 02:10:26 <justcool393> but yeah, I do hope that the reddit API improves a bunch, but I'm not holding out my hopes.
Oct 17 17 02:11:15 <Boop> just like a list of mod actions, len of 1 or more, with the earliest entry being the original state out of the reddit spam filter
Oct 17 17 02:11:54 <Boop> and all subsequent ones being any changes to that, and then finally a current_state object for when none of that matters
Oct 17 17 02:14:57 <justcool393> unforunately, if AutoMod actions on a post before the app sees it (very very likely), the original spam filter state will be lost. You could get a *likely* idea of what it is (*just check if a user is shadowbanned or not, because the reddit spam filter is garbage*), but if you don't, the state will be incorrect. I can think of one example where the state will wrongly display as `spam` when it should be `reinforce spam`.
Also the "note" property ought to be the in the API IMO.
Oct 17 17 02:16:09 <Boop> if I make a social media site I'm gonna make sure it has no users or login capabilities
Oct 17 17 02:16:23 <Boop> just avoid these issues
Oct 17 17 02:16:30 <justcool393> that's how my old phpBB forum got overrun with spambots tbh
Oct 17 17 02:16:44 <justcool393> I was smart and allowed anonymous posting.
Oct 17 17 02:16:47 <Boop> oh I mean not even posting would be allowed
Oct 17 17 02:16:52 <Boop> not even any posts
Oct 17 17 02:17:05 <justcool393> `/dev/null` is the best site IMO
Oct 17 17 02:17:16 <Boop> I'll call it a social experiement and get to the top of hacker news with it
Oct 17 17 02:17:42 <justcool393> I assuming your developing it in Go or Ruby or some shit like that
Oct 17 17 02:17:58 <justcool393> or Brainfuck
Oct 17 17 02:18:27 <Boop> go transpiled to JS using a rust interpreter
Oct 17 17 02:18:54 <justcool393> welp this exists: https://github.com/ajyoon/systemf
Oct 17 17 02:18:56 <Boop> run on node in a rkt container on aws lambda somehow
Oct 17 17 02:19:29 <Boop> oh that warms my heart
Oct 17 17 02:19:37 <Boop> reminds me of the web server running on a potato
Oct 17 17 02:21:18 <justcool393> <:disapproval:358379286811508736>
Oct 17 17 02:23:46 <Boop> https://web.archive.org/web/20000815202656/http://world.std.com/~fwhite/spud/
Oct 18 17 16:48:03 <its_kos> anyone good with automod ?
Oct 18 17 16:53:19 <BobCobble> Yeah what do you need help with? its_kos
Oct 18 17 16:59:02 <its_kos> BobCobble im looking for someone to help me set up and maintain automod for a sub i moderate
Oct 18 17 16:59:23 <BobCobble> I'd be happy to help. What do you need automod to do?
Oct 18 17 17:00:16 <its_kos> would you like to have a proper convo over at our discord ?
Oct 18 17 17:02:20 <BobCobble> Sure, PM me a link
Oct 18 17 19:31:16 <XenoBen> Deimos is/was there ever an AM function to run rules on specific dates?
Oct 18 17 19:31:46 <Deimos> nope
Oct 18 17 19:32:24 <SpyTec> There is though. Isn't it called like, enslave Deimos to do it for you 😛
Oct 18 17 19:32:30 <BobCobble> wish that was a thing
Oct 18 17 19:32:38 <BobCobble> then i could have a rule just run at weekends
Oct 19 17 17:44:26 <mrbreadwater> Hey, so I've never used AutoMod before, and I need to add a script to auto approve comments with specific words. What's the best way to go about this? I normally would just go for it and try things until it works, but it's a default sub, I can't afford to screw up.
Oct 19 17 17:46:40 <Tealeaf> make a bullshit test sub and fuck around with the automod config there
Oct 19 17 17:47:13 <BobCobble> Automod can only approve comments that are filtered or reported. It can't just approve as soon as they are posted.
Oct 19 17 17:47:35 <BobCobble> But you could approve reported comments if they have certain words in them
Oct 19 17 17:51:54 <mrbreadwater> BobCobble Yeah, but the only reason I'm setting it up is because "Good Bot" and "Bad Bot" comment spam reports keep flooding up the Mod Queue. If they don't get reported, it doesn't really matter if they are approved or not.
Oct 19 17 17:52:13 <BobCobble> So you want to approve good bot bad bot comments whenever they are reported?
Oct 19 17 18:01:12 <BobCobble> ```yaml
---
type: comment
body: [good bot, bad bot]
reports: 1
action: approve
action_reason: "Approved {{match}} comment."```
Use that if you're trying to approve all reported good bot or bad bot comments.
Oct 19 17 18:03:02 <mrbreadwater> Oh, wish I had seen this 5 minutes ago. At least it turns out that AutoMod is actually really easy to program.
Oct 19 17 21:15:17 <mrbreadwater> Tealeaf Hey, do you know how to make it so that automod only approves comments with the words "Good Bot" and "Bad Bot" but nothing else?
Oct 19 17 21:15:40 <Tealeaf> ^Good bot$
Oct 19 17 21:16:02 <Deimos> I'd do `body (full-text): ['good bot', 'bad bot']`
Oct 19 17 21:16:47 <Tealeaf> does reddit strip leading and trailing whitespace from comments?
Oct 19 17 21:17:15 <Deimos> I don't think so
Oct 19 17 21:17:24 <Deimos> leading whitespace can be significant for code blocks
Oct 19 17 21:17:37 <Tealeaf> right
Oct 19 17 21:18:18 <Tealeaf> so if several people drop whitespace in their comments, you might need a regex anyway
Oct 19 17 21:19:05 <Deimos> the `(full-text)` modifier ignores any leading/trailing whitespace, punctuation, etc.
Oct 19 17 21:19:19 <Tealeaf> sweet
Oct 19 17 21:19:28 <mrbreadwater> Ok, perfect
Oct 19 17 21:19:29 <mrbreadwater> Thanks
Oct 21 17 10:48:32 <ri0tnrrd> anybody awake by chance???
Oct 21 17 10:51:16 <BobCobble> yes
Oct 21 17 10:51:19 <Gleo> i’d be very surprised if anyone was _not_ awake at one in the afternoon
Oct 21 17 10:51:22 <BobCobble> it's 11:51am
Oct 21 17 10:51:23 <Gleo> ~~timezones amirite~~
Oct 21 17 10:51:38 <BobCobble> u rite
Oct 21 17 11:00:16 <RandomRedditorWithNo> does this have something to do with automation somehow
Oct 21 17 11:00:48 <cuddlefishcat> it's the automation of life
Oct 21 17 11:00:52 <cuddlefishcat> we wake up
Oct 21 17 11:00:54 <cuddlefishcat> we go to sleep
Oct 21 17 11:01:02 <cuddlefishcat> do we really have any control over it?
Oct 21 17 11:01:16 <cuddlefishcat> do we control anything we do?
Oct 21 17 11:02:00 <RandomRedditorWithNo> can we write a script for it?
Oct 21 17 11:02:58 <ri0tnrrd> oh people are awake
Oct 21 17 11:03:14 <ri0tnrrd> aahh it's jut after 4am here
Oct 21 17 11:06:36 <SpyTec> Lies
Oct 21 17 11:06:39 <SpyTec> It's 1300
Oct 21 17 11:06:48 <BobCobble> lies
Oct 21 17 11:06:52 <BobCobble> it's 12:06
Oct 21 17 11:06:58 <BobCobble> your timezone is fake SpyTec
Oct 21 17 11:07:34 <SpyTec> Fuck your timezone
Oct 21 17 11:07:41 <BobCobble> no u
Oct 21 17 11:07:56 <cuddlefishcat> plz be nice to my timezone
Oct 21 17 11:09:12 <BobCobble> only if your timezone respects mine
Oct 21 17 11:09:58 <cuddlefishcat> well it's the same as yours so
Oct 21 17 11:11:00 <BobCobble> oh good
Oct 21 17 11:27:18 <RandomRedditorWithNo> it's 22:11 AM
Oct 21 17 11:27:27 <RandomRedditorWithNo> actually no it's 22:27 TM
Oct 21 17 11:28:46 <BobCobble> lies
Oct 21 17 11:29:12 <BobCobble> cuddlefishcat we may not share the same feelings on christmas but at least we share a timezone
Oct 21 17 11:29:20 <BobCobble> which of course is most important
Oct 21 17 11:30:33 <cuddlefishcat> <:blobkissheart:357765371568324620>
Oct 21 17 11:43:35 <ri0tnrrd> such luvvvv
Oct 21 17 17:18:02 <beelzeybob> I'm a bit rusty with automod, but is it possible to make it ignore certain report reasons?
Oct 21 17 17:19:54 <SpyTec> Nope, it only checks the number of reports. Not the content of the reports
Oct 21 17 17:20:42 <BobCobble> It can check the content of a comment/post when it's reported and approved based on that though.
Oct 24 17 23:22:22 <Deimos> if anyone is running bots using an old version of praw (probably 3.x), all of your bots will probably be broken right now: https://www.reddit.com/r/redditdev/comments/78f4yg/praw_version_361_no_longer_usable_after_reddit/
Oct 24 17 23:22:39 <Deimos> apparently SubredditSimulator's been dead for over a day
Oct 25 17 02:57:21 <justcool393> uh oh
Oct 25 17 13:04:30 <mbetts> 3.6.1? For my diss last year I was using 3.4 😄
Oct 25 17 13:04:38 <mbetts> so glad that didn't break
Oct 25 17 13:31:31 <creesch> https://www.reddit.com/r/redditdev/comments/78bgvn/praw_has_reddit_changed_the_api_in_such_a_way/doue5d8/
Oct 25 17 13:32:06 <creesch> In any case, seems to be mostly due to the abstraction that praws adds to the api.
Oct 25 17 13:32:57 <creesch> Praw makes it really easy to start using the api but also limits understanding of how the api works leaving people stuck like this.
Oct 25 17 13:40:53 <creesch> In case of the permalink think it seems to be the praw function that constructed the permalink. Which would also break someone's own implementation but then that person would know where to look.
Oct 25 17 13:46:34 <creesch> Though in this case it seems to be specifically in how praw named it exactly like it would be called in the api creating a conflict when it was added to the api.
Oct 25 17 13:46:47 <creesch> Which is something that is avoidable in the first place.
Oct 25 17 13:47:31 <creesch> tl;dr sometimes it helps to not use a wrapper that adds a bunch of abstraction.
Oct 25 17 17:11:40 <Deimos> I don't think it has anything to do with abstraction, they just didn't separate the API data fields so a collision between a new value in the data and one they had already defined "internally" broke it, because they didn't expect that would happen (the new version of PRAW didn't break, so I'm guessing they fixed that decision in the newer versions)
Oct 25 17 17:13:00 <Deimos> having a deeper understanding of the API wouldn't really have helped anyone fix it, it was more about understanding python so you could see what was happening
Oct 25 17 17:49:24 <creesch> I'd say that the one they defined internally is actually a good example of abstraction. The reddit api did not provide a permalink so praw filled that in with its own method.
Oct 25 17 17:53:58 <justcool393> RedditSharp does a similar thing except without the autoproperties
Oct 25 17 17:55:06 <Deimos> it seems to be a pretty common issue, I remember a few years ago baconreader completely broke when a new field was added to the API that had the same name as one they had internally
Oct 25 17 17:57:22 <Tealeaf> that's like the #1 rule of api consumption, don't shit the bed if the api adds new fields
Oct 25 17 17:59:19 <Deimos> and this is how people learn that rule :b
Oct 25 17 19:12:40 <creesch> Well not if they use praw and depend on praw to get fixed 😉 that was my entire point, with these sort of api changes you see a lot of people panicking because praw is no longer working without really having a clue how to fix it themselves.
Oct 25 17 19:16:06 <justcool393> PRAW sometimes feels like a black box to me. Like I get the reddit API, but how PRAW does it I'm still trying to fully understand
Oct 25 17 19:29:08 <ri0tnrrd> I have never really worked with the API only praw
Oct 25 17 19:30:24 <Deimos> for me the main thing that was always kind of "magic" and dangerous in praw is that it makes it pretty difficult to tell when you're doing something that's going to involve another request
Oct 25 17 19:30:41 <ri0tnrrd> Hehhe true true
Oct 25 17 19:30:56 <Deimos> so it's pretty easy to accidentally end up doing something that requires a lot of requests in a loop or something, and then your code ends up being extremely slow for no obvious reason
Oct 25 17 19:31:12 <ri0tnrrd> For me though praw was my first really learning of python stuff
Oct 25 17 19:32:16 <Deimos> yeah I think that's kind of one of the really neat things about it, it's gotten a lot of people into some basic python/coding because it made it pretty easy for them to build bots
Oct 25 17 19:32:25 <justcool393> true
Oct 25 17 19:32:26 <justcool393> on the flip side
Oct 25 17 19:32:31 <ri0tnrrd> My problem is figuring out how to find certain things with praw that I finally came to understand I would need to use the so I....or something
Oct 25 17 19:32:35 <Deimos> if it didn't exist and they had to learn how to use an API from scratch with no experience they just would have given up immediately
Oct 25 17 19:32:39 <justcool393> you have every "It's captain jack sparrow" bot ever
Oct 25 17 19:33:01 <Deimos> also very true, I think it would be a lot better if praw (or even reddit) just didn't expose a "watch every single comment on the entire site" method
Oct 25 17 19:33:29 <justcool393> that'd also make the giant datasets where they compile every single comment since 2005 a bit harder though
Oct 25 17 19:33:42 <ri0tnrrd> See I never understood the plethora of reply bots made. Personally I like automating tasks and review data
Oct 25 17 19:33:45 <justcool393> which is arguably a good thing
Oct 25 17 19:33:48 <Deimos> definitely, but maybe you could whitelist people to have access to that endpoint if they have a legitimate reason to need it
Oct 25 17 19:34:09 <ri0tnrrd> Yah justcool393 aI never really got that eithwr
Oct 25 17 19:34:19 <Deimos> at least throw a roadblock in the way of idiots with useless bots
Oct 25 17 19:34:28 <ri0tnrrd> Yah
Oct 25 17 19:34:44 <justcool393> apparently after getting an API key you're supposed to apply through some google form
Oct 25 17 19:34:48 <justcool393> I didn't know that
Oct 25 17 19:34:50 <justcool393> and sitll haven't
Oct 25 17 19:34:53 <ri0tnrrd> Omg the amount of useless ones
Oct 25 17 19:35:05 <Deimos> I think that's more for if you're building a mobile app or something
Oct 25 17 19:35:06 <ri0tnrrd> You are?
Oct 25 17 19:35:11 <justcool393> ohh
Oct 25 17 19:35:32 <justcool393> https://cdn.discordapp.com/attachments/279692806442844161/372830559132581898/unknown.png
Oct 25 17 19:35:43 <ri0tnrrd> I keep wanting to build a personal backend web app I guess for moderation type rhings
Oct 25 17 19:35:53 <justcool393> https://www.reddit.com/wiki/api
Oct 25 17 19:36:05 <justcool393> which links to https://docs.google.com/forms/d/e/1FAIpQLSezNdDNK1-P8mspSbmtC2r86Ee9ZRbC66u929cG2GX0T9UMyw/viewform
Oct 25 17 19:36:29 <ri0tnrrd> I've played with the API tester thing a few times
Oct 25 17 19:37:54 <ri0tnrrd> Also it seems sadly the things I desire to do are apparently not easy and involved which is blah sometumes
Oct 25 17 19:40:27 <ri0tnrrd> Btw Deimos thanks for your help last week I was able to get that script up and running for the sub so I feel like woohoo I accomplished something haha
Oct 25 17 19:41:56 <Deimos> no problem, glad you got it going
Oct 27 17 08:55:52 <Boop> I havn't read anything at all
Oct 27 17 08:56:12 <Boop> so praw was just doing `self.__dict__ += jsonresponse` ?
Oct 27 17 08:56:32 <Boop> instead of checking to not overwrite methods et al?
Oct 27 17 09:00:57 <Boop> n' did that change in new versions, or did they decide to make permalink a property instead and still have the overwrite issue?
Oct 27 17 13:59:57 <Shane> yo, I want automod to message everyone who makes a comment or post in a subreddit, how would I do this?
Oct 27 17 14:00:03 <Shane> BobCobble pls
Oct 27 17 14:01:10 <BobCobble> ```yaml
type: any
message: |
Message
goes
here
```
You could take out the `|` if you want the message on one line. Add `message_subject` if you want a custom subject.
Oct 27 17 14:01:15 <BobCobble> Shane
Oct 27 17 14:01:54 <Shane> Thanks mate
Oct 27 17 14:05:24 <BobCobble> no probs :)
Oct 27 17 14:36:24 <Shane> ```type: any
author:
is_moderator: false
message_subject: Welcome to r/Arrow
message: |
Hi, /u/{{author}}!
**Thank you for [your submission]({{permalink}}) to /r/{{subreddit}}!**
Don't worry, your {{kind}} has not been removed, I would just like to inform you of a survey we are running regarding the new look of the subreddit. If you only browse the subreddit in mobile this will not effect you so you can ignore this message, if you regularly browse on desktop however, please read on.
Yesterday, we push out a new update to our css which had controversial feedback from users, some liking it and some hating it. you can view the subreddit design here if you have not seen it already: r/arrow or r/ShaneH
You can vote on the design of the subreddit here: https://strawpoll.com/exf6ewpx
you can submit written feedback here: https://redd.it/793ik3 - Please be constructive. comments that are just 'this is shit' will be ignored, please say why.```
Oct 27 17 14:36:28 <Shane> this all correct?
Oct 27 17 14:36:55 <BobCobble> it says submission even if it's a comment
Oct 27 17 14:37:19 <BobCobble> changing submission to {{kind}} should work but it may not due to formatting
Oct 27 17 14:37:57 <Shane> hmm, doesnt appear to be working
Oct 27 17 14:39:45 <BobCobble> it worked for me when i just tested it on another sub
Oct 27 17 14:39:51 <BobCobble> did you use a non mod account?
Oct 27 17 14:40:18 <BobCobble> changing submission to {{kind}} didn't mess up the formatting either
Oct 27 17 14:53:08 <Shane> ah I see, its cuz I was getting a removal message too
Oct 28 17 16:08:11 <N3DSdude> Are there any good bots that automatically flair posts?
Oct 28 17 16:09:29 <BobCobble> Automod can, depending on what you want the trigger to be N3DSdude
Oct 28 17 16:11:09 <N3DSdude> What triggers can there be? BobCobble
Oct 28 17 16:13:37 <BobCobble> Title or body keywords, you could also flair based on a comment.
Oct 28 17 16:15:11 <N3DSdude> oh also
Oct 28 17 16:15:24 <N3DSdude> how can i get flairs to show up next to the title of a post?
Oct 28 17 16:15:58 <justcool393> Go to /r/subreddit/about/flair and then sleect link position
Oct 28 17 16:16:00 <justcool393> left or right
Oct 28 17 16:16:13 <BobCobble> and add some templates
Oct 28 17 16:16:22 <justcool393> that too
Oct 28 17 16:16:23 <BobCobble> https://cdn.discordapp.com/attachments/279692806442844161/373867607662657549/unknown.png
Oct 28 17 16:16:32 <BobCobble> https://cdn.discordapp.com/attachments/279692806442844161/373867645260398595/unknown.png
Oct 28 17 16:17:01 <justcool393> https://cdn.discordapp.com/attachments/279692806442844161/373867763866796042/unknown.png
Oct 28 17 16:17:04 <justcool393> Unless you have a good reason to
Oct 28 17 16:17:07 <justcool393> please use left
Oct 28 17 16:17:21 <BobCobble> looks awful on the right
Oct 28 17 16:18:34 <BobCobble> I wish you could have mod only flairs
Oct 28 17 16:18:46 <SpyTec> https://i.imgur.com/vIuKOTq.gifv
Oct 28 17 16:19:07 <BobCobble> https://www.reddit.com/r/ideasfortheadmins/comments/777031/allow_moderators_to_set_mod_only_flair_templates/
Oct 28 17 16:19:09 <justcool393> /r/ScreenshotsOfLinkFlairPosition
Oct 28 17 16:19:19 <SpyTec> It's a gif
Oct 28 17 16:19:27 <SpyTec> Having mod flairs would be so good. Don't have to rely on picking an existing one or having to use comments that AM pick up on
Oct 28 17 16:20:03 <BobCobble> Yeah. Like we have a quality post flair which we have to leave a comment to use then automod flairs it.
Oct 28 17 16:20:07 <BobCobble> and the rule flair
Oct 28 17 16:20:24 <BobCobble> we have that hidden to non mods with css but for mobile users or people who don't have css on they can see it
Oct 28 17 16:21:39 <justcool393> https://www.reddit.com/r/ideasfortheadmins/comments/3a67nj/modonly_link_flair_in_the_link_flair_chooser_for/
Oct 28 17 16:21:56 <justcool393> it's pretty commonly requested
Oct 28 17 16:21:58 <justcool393> it's a good request
Oct 28 17 16:22:14 <SpyTec> Yeah and it won't happen. Wait until their rewrite
Oct 28 17 16:22:36 <justcool393> >.>
Oct 28 17 16:22:58 <justcool393> "wait until their rewrite" is such a cop out it feels like.
Oct 28 17 16:23:33 <BobCobble> wait until the rewrite
Oct 28 17 16:24:07 <justcool393> "wait until the rewrite" and then every mod action will automatically deposit $500 into your bank account, give you fifty different NSFW tags, have 60 stickies, etc
Oct 28 17 16:25:26 <SpyTec> Well what else do you want us to say? They really won't add anything new and awesome to what we currently have, and they are making the "next gen" Reddit
Oct 28 17 16:26:05 <BobCobble> i wish there was a "porn" tag and a "nsfw" tag. Almost all the time nsfw is fine for me but i wish i could just filter out porn.
Oct 28 17 16:26:17 <justcool393> also the rewrite will suck your dick but that's not mnetioned in the patch notes
Oct 28 17 16:26:18 <N3DSdude> thanks for the help bob
Oct 28 17 16:26:24 <Tealeaf> You’re welcome
Oct 28 17 16:26:31 <BobCobble> You're welcome
Oct 28 17 16:27:18 <justcool393> mod link flair also isn't just a desktop issue either
Oct 28 17 16:27:43 <justcool393> it's something that would be enforced at the code level, not validated at the UI
Oct 28 17 16:30:46 <N3DSdude> anyone here know how to shrink flairs down?
Oct 28 17 16:31:12 <justcool393> CSS is the only way, but are you talking height wise or width wise
Oct 28 17 19:40:32 <N3DSdude> both
Oct 29 17 01:29:26 <N3DSdude> anyone here who could help me with setting up a bot that autoposts from a twitter feed?
Oct 29 17 01:30:13 <justcool393> N3DSdude you can use "if this then that" to do that.
Oct 29 17 01:30:46 <justcool393> probably the easiest and most reliable way at the moment
Oct 29 17 01:31:20 <N3DSdude> ah alright
Oct 29 17 06:19:34 <ri0tnrrd> does anybody know if praw has access to usernotes, or the about/usernotes page?
Oct 29 17 06:19:58 <Geo☆1088> Usernotes are a toolbox thing, all the info is stored in a wiki
Oct 29 17 06:20:06 <justcool393> `/about/usernotes` is a pseudo-page
Oct 29 17 06:20:12 <justcool393> it doesn't actually exist
Oct 29 17 06:20:34 <Geo☆1088> what he said
Oct 29 17 06:21:57 <justcool393> for the usernotes, use `/r/subreddit/wiki/usernotes` (you may need the `wiki` permission).
Oct 29 17 06:22:17 <justcool393> RedditSharp has an implementation of it
Oct 29 17 06:22:51 <ri0tnrrd> woh ok lemme read up here
Oct 29 17 06:23:27 <ri0tnrrd> Geo☆1088 yah except that it seems to be intergrated with reddit in that on top of a wiki page, there's about bout/usernotes page that actually has the readable notes and whatnot
Oct 29 17 06:23:40 <ri0tnrrd> damn justcool393 well that sucks
Oct 29 17 06:23:44 <Geo☆1088> It's not a page unless you have toolbox
Oct 29 17 06:23:44 <justcool393> it isn't. it's actually well hacked
Oct 29 17 06:23:55 <justcool393> you may notice that initially says "page not found"
Oct 29 17 06:23:56 <Geo☆1088> Toolbox removes the 404 image and adds its own stuff
Oct 29 17 06:23:59 <justcool393> before TB loads
Oct 29 17 06:24:19 <Geo☆1088> Everything about usernotes is hacked onto Reddit via Toolbox
Oct 29 17 06:24:23 <ri0tnrrd> yah I mostly code in python and use praw 😦 but toolbox is written in javascript ssooo I may have to bite the bullet and actually read up on that
Oct 29 17 06:24:32 <Geo☆1088> well, not really
Oct 29 17 06:24:33 <ri0tnrrd> oh damn that's impressive/cool
Oct 29 17 06:24:47 <ri0tnrrd> wait ok tech - could I scrape the page with say beautifulsoup?
Oct 29 17 06:24:50 <Geo☆1088> as long as you can uncompress the wiki and read JSON you're good
Oct 29 17 06:24:54 <justcool393> you could read the wiki page
Oct 29 17 06:24:59 <ri0tnrrd> tell me more tell me more
Oct 29 17 06:25:21 <justcool393> PRAW can read wiki pages.
Oct 29 17 06:25:30 <justcool393> I forget how though to be honest
Oct 29 17 06:25:35 <ri0tnrrd> but the wiki page - let me go check again - but it's a bunch of just...random numbers and letters it does not specifically say user, note, reason
Oct 29 17 06:25:40 <justcool393> right
Oct 29 17 06:25:43 <justcool393> you have to decompress it
Oct 29 17 06:26:01 <ri0tnrrd> I'm trying to throw something together that counts the number of usernotes of a specific type on a user and preforms an automated action from there
Oct 29 17 06:26:02 <Geo☆1088> I forget what we use to compress it, but there's probably a pypi package you can use for it
Oct 29 17 06:26:06 <Geo☆1088> its not js specific
Oct 29 17 06:26:43 <ri0tnrrd> say 4 warning usernotes on x user would prompt the action to ban user for x number of days and message them informing such action
Oct 29 17 06:26:46 <ri0tnrrd> _nods_
Oct 29 17 06:27:06 <justcool393> Don't know if you know C# but there is this: https://github.com/CrustyJew/RedditSharp/blob/2.0-.Net-Core/RedditSharp/ToolBoxUserNotes.cs#L29-L44
Oct 29 17 06:27:26 <ri0tnrrd> or x number of category good contributor on a user automatically adds them as a bah I forget if it's trusted or verified but that
Oct 29 17 06:27:44 <ri0tnrrd> lemme take a look justcool393 and thanks in advance
Oct 29 17 06:28:00 <justcool393> no prob
Oct 29 17 06:28:04 <ri0tnrrd> justcool393 can I ask what sub(s) you mod?
Oct 29 17 06:28:19 <Geo☆1088> all the subs
Oct 29 17 06:28:19 <justcool393> /r/google is the sub I pay the most attention to
Oct 29 17 06:28:47 <justcool393> As far as reddit automation stuff /r/TotesMessenger (for /u/TotesMessenger) and /r/SnapshillBot (for /u/SnapshillBot)
Oct 29 17 06:29:18 <ri0tnrrd> oh wow ok then 😃 *goes to check sub out*
Oct 29 17 06:29:49 <ri0tnrrd> awesome 😃 ahahah I remember reading a lot of TotesMessenger when I first started diving into codeing stuff about a year ago
Oct 29 17 06:30:17 <Geo☆1088> oh, lol, it actually is just base64
Oct 29 17 06:30:18 <Geo☆1088> lol
Oct 29 17 06:30:24 <Geo☆1088> i said lol twice
Oct 29 17 06:30:39 <justcool393> A lot of this is cmd-t's handiwork
Oct 29 17 06:30:55 <justcool393> I'm trying to get him to join, but I think he's having issues with verifying
Oct 29 17 06:30:55 <ri0tnrrd> actually you guys may know something - what happened to flairyourpost user/bot - it's suspended and it was doing a lot of auto flair management for subs - I recently re-wrote a altered version for a sub so they had that ability agian
Oct 29 17 06:31:00 <justcool393> so
Oct 29 17 06:31:05 <justcool393> the creator went rogue
Oct 29 17 06:31:06 <ri0tnrrd> only added ability to respond to message with flair desired and anywhooo
Oct 29 17 06:31:18 <justcool393> well
Oct 29 17 06:31:23 <justcool393> rogue is kinda an understatement
Oct 29 17 06:31:29 <justcool393> more like off the deep end
Oct 29 17 06:31:31 <ri0tnrrd> oh damn so that's what happened
Oct 29 17 06:31:40 <ri0tnrrd> mind expanding?
Oct 29 17 06:31:48 <ri0tnrrd> mostly becasue I'm just curious
Oct 29 17 06:31:51 <justcool393> I believe it was /u/radd_it.
Oct 29 17 06:32:56 <justcool393> What happened was this:
1.) he got involved with some religious thing.
2.) he then became obsessed with proving people are demons or something ("Standard demon behavior: X" is from this)
3.) he spammed it all over reddit and eventually got all of his accounts banned.
Oct 29 17 06:34:11 <ri0tnrrd> aaahhhh - that's too bad I know a LOT of subs used that thing
Oct 29 17 06:34:53 <justcool393> same thing with BotWatchman to ban spammy bots
Oct 29 17 06:34:58 <justcool393> before the spammy bots got shadowbanned
Oct 29 17 06:35:07 <justcool393> but I believe that code was public
Oct 29 17 06:35:21 <justcool393> so BotBust was created in its place after he was suspended
Oct 29 17 06:35:22 <ri0tnrrd> damnnnnn
Oct 29 17 06:35:57 <ri0tnrrd> yah I had a theory that flairyourbot was shadowbanned becasue in theory users are gonna get pissed with a bot commenting on the post and then messaging them and see it as a bother
Oct 29 17 06:36:12 <justcool393> Mod bots are generally okay
Oct 29 17 06:36:22 <ri0tnrrd> I did up mine specifically for that subreddit so I was able to make it better suited and give more detailed commands for users
Oct 29 17 06:36:30 <justcool393> If it's endorsed by the mods and not breaking the site or posting bad content, it's generally fine.
Oct 29 17 06:36:50 <justcool393> A subreddit I ""mod"" even endorsed a spambot
Oct 29 17 06:37:01 <justcool393> have no clue who made it
Oct 29 17 06:37:05 <justcool393> but it's still going to this day
Oct 29 17 06:37:37 <justcool393> the subreddit I'm talking about is a really shitty subreddit
Oct 29 17 06:37:53 <ri0tnrrd> I don't write anything that is a general anybody can add - hell I dont even put my stuff up on github I use secret gists - but everything I write is specific for a subreddit in mind
Oct 29 17 06:37:53 <ri0tnrrd> really? cool - what sub if you dont mind me asking (so I can go check it out heh)
Oct 29 17 06:38:01 <justcool393> Drama
Oct 29 17 06:38:16 <ri0tnrrd> ok awesome
Oct 29 17 06:38:32 <ri0tnrrd> my silly little flairbot was/is for RandomActsofMakeup
Oct 29 17 06:38:51 <justcool393> But yeah, SnapshillBot is similar. We make the code public, but all subreddits that use it must request it
Oct 29 17 06:39:10 <ri0tnrrd> it's a small sub, but so far it's running and well recieved so that's nice - it's the first I've done for a sub that's not my own or that I dont mod
Oct 29 17 06:39:44 <ri0tnrrd> heh too much anxiety for me to make any of my stuff public which sucks because some stuff I think of doing in order to see if others can help me expand on it or do it in a better way
Oct 29 17 06:39:52 <justcool393> heh
Oct 29 17 06:39:58 <justcool393> you should've seen the first version of totes
Oct 29 17 06:40:15 <justcool393> it tracked everything in two text files
Oct 29 17 06:40:28 <justcool393> it was not well done
Oct 29 17 06:40:31 <ri0tnrrd> but every few days I browse github doing a search on reddit, most recent, pythong gits and just go through and grab anything I see that I wanna look into
Oct 29 17 06:40:32 <ri0tnrrd> heheh wow
Oct 29 17 06:41:31 <justcool393> I wish the user who ran this bot: https://www.reddit.com/user/totes_meta_bot made their code public. You can obviously see the similarity, and thats because Totes is modeled after totes_meta_bot. Completely different authors
Oct 29 17 06:41:44 <ri0tnrrd> the first bot I wrote was for the ability to do removal reasons via my phone - I wrote it to put a command in a comment, have it auto put in the modqueue then scan for said command and if seen, remove that comment and replace with the full removal reason or macro either in comment or PM
Oct 29 17 06:42:21 <ri0tnrrd> and then a command to list all commands and what they reference becaseu there was no way I was going to be able to remember all of my shortcodes there were about 30 of them for about 3 or 4 subs
Oct 29 17 06:42:27 <ri0tnrrd> on top of my personal macros for anxiety
Oct 29 17 06:43:15 <ri0tnrrd> that sucks when they don't make it public - can you contact the user I mean - isnt it a rule that if it's a bot you have to at the bottom let people know and give a link of how to contact the maker?
Oct 29 17 06:43:31 <ri0tnrrd> I always assumed that's a rule and reasoning if you don't do it to get banned
Oct 29 17 06:45:17 <justcool393> It's been two years since it's been retired. Have no idea who even runs it.
Also, the contact link is a message link to /r/meta_bot_mailbag, which has totes_meta_bot as the sole moderator.
Oct 29 17 06:47:40 <ri0tnrrd> wow
Oct 29 17 06:47:44 <ri0tnrrd> but it's still up and going?
Oct 29 17 06:47:57 <ri0tnrrd> interesting
Oct 29 17 06:48:05 <ri0tnrrd> is that sub you mentioned private?
Oct 29 17 06:48:12 <ri0tnrrd> if not does it have anything in their wiki pages?
Oct 29 17 06:49:06 <ri0tnrrd> just curious - I know at least one user who runs a number of bots that are open to reddit and they also have a private sub where they keep all the logs and information in wiki pages
Oct 29 17 06:54:14 <justcool393> The subreddit is restricted
Oct 29 17 06:54:20 <justcool393> But there's only one mod
Oct 29 17 06:54:32 <justcool393> and as far as I know
Oct 29 17 06:54:39 <justcool393> that mailbaig hasn't been checked in two years
Oct 29 17 06:55:18 <ri0tnrrd> yah I have a feeling then the bot logs stuff in there for the user who runs it
Oct 29 17 06:55:29 <ri0tnrrd> hhmmmm interesting
Oct 29 17 06:55:38 <ri0tnrrd> I wonder if I mean you said it's still working right?
Oct 29 17 06:56:12 <justcool393> It's a contact point
Oct 29 17 06:56:20 <justcool393> The bot hasn't ran in two years
Oct 29 17 06:56:37 <justcool393> https://www.reddit.com/r/botsrights/comments/2xiw4p/im_retiring/
Oct 29 17 06:58:43 <ri0tnrrd> _shakes head_
Oct 29 17 07:01:17 <justcool393> honestly
Oct 29 17 07:01:28 <justcool393> it looks like the creator just quit reddit
Oct 29 17 07:01:34 <justcool393> and only used reddit to run the bot
Oct 29 17 07:01:36 <justcool393> https://www.reddit.com/r/conspiracy/comments/2mdn49/umagnora_here_with_a_48_hour_update_after_i_was/cm4q0oz/
Oct 29 17 07:02:04 <justcool393> pings fritzy since you might know more (you were the OP of that comment IIRC)
Oct 29 17 07:07:53 <ri0tnrrd> ah interesting
Oct 29 17 07:07:57 <ri0tnrrd> also reading up
Oct 29 17 07:09:07 <ri0tnrrd> heh you knowwww - I wonder if - since the moderator of that sub you mentioned where only the bot is a mod has not been active in over 2 years, and the mod has not been active - if you could request it in the request a sub ... sub
Oct 29 17 07:12:14 <ri0tnrrd> What I'm desiring most right now - is anything that gives the ability to do moderation things via a private discord channel. I've read a LOT of scripts and doc stuff and there's a lot about grabbing info from sites and pulling into a discord channel but so far as I can tell nothing about then taking something say a command and then having that be an action preformed on a subreddit. Though in thinking about it more today I wonder if I can tech use a json file to store the command info and then from there process the json file or read from it to preform said action. Sorry ignore me I'm over thinkinga s usual 😃
Oct 29 17 07:15:07 <ri0tnrrd> https://cdn.discordapp.com/attachments/279692806442844161/374093781496233985/ignoreme.jpg
Oct 29 17 07:23:10 <justcool393> I'll do that once my pending request is processed.
Oct 29 17 07:23:24 <justcool393> not sure what good it'll do
Oct 29 17 07:23:24 <justcool393> but
Oct 29 17 07:31:57 <ri0tnrrd> I mean I wrote something that currently grabs number of online users and puts it into a json file - then calls that info in the json file to update that subreddit's sidebar with # if discord users currently online every hour I think it is
Oct 29 17 15:14:17 <fritzy> justcool393 pretty crazy you remember that I was the author of that comment. I really don’t know anymore than I wrote there.
Oct 29 17 17:27:04 <justcool393> fritzy I actually didn't, I got linked to an archive of it
Oct 29 17 17:27:17 <fritzy> ah
Oct 29 17 17:27:28 <fritzy> why would someone archive that?
Oct 29 17 17:27:55 <fritzy> nvm
Oct 29 17 17:28:06 <fritzy> I remmeber people archived everything durring that period
Oct 29 17 17:33:08 <justcool393> not sure really
Nov 01 17 14:50:31 <Draculore> Help
Nov 01 17 14:51:14 <Draculore> ```Type: submission``` only checks the body of the submission
Nov 01 17 14:51:25 <Draculore> How do I make it check the title
Nov 01 17 14:52:39 <creesch> With type you just tell it what type of thing to check. Not what you want to check.
Nov 01 17 14:53:07 <BobCobble> use `body:` or `title:`
Nov 01 17 14:53:16 <creesch> If you want to check things based on title you need to use ```title:```
Nov 01 17 14:53:29 <creesch> ```title: ["red", "blue", "green"]```
Nov 01 17 14:53:40 <BobCobble> ```yaml
type: submission
title: ["Whatever you wanna check"]
action: whatever action you wanna make```
Nov 01 17 14:55:37 <Draculore> Thanks. Its done. I'm trying to stop baby jokes from r/darkjokes and used
```type: submission
body: ["baby", ]
action: remove```
Nov 01 17 14:56:48 <Draculore> BobCobble ty bobcobblebby
Nov 01 17 14:57:16 <BobCobble> you can take out the comma
Nov 01 17 14:57:30 <BobCobble> unless you wanna add multiple checks
Nov 01 17 14:57:45 <Draculore> Yh I know. I wanna add babies too
Nov 07 17 18:58:56 <Boop> do you need to decomma it?
Nov 07 17 20:03:13 <justcool393> he's kicked
Nov 07 17 22:19:02 <justcool393> I mentioned this in <#278566343836565505> but no one responded so I'll ask again here:
Nov 07 17 22:19:11 <justcool393> Is there an issue with AutoMod not actioning on some comments?
Nov 07 17 22:19:13 <justcool393> It should say `[ removed by AutoModerator (reinforce spam) ]` but it just says `[ removed ]` indicating the spam filter took a removal action but AutoModerator did not look at it.
Nov 07 17 22:19:19 <justcool393> https://cdn.discordapp.com/attachments/278566343836565505/376621763909648394/unknown.png
Nov 07 17 22:19:30 <justcool393> AutoMod config:
```yml
author:
name: [..., wahana303_betting, ...]
action: spam
set_flair: ["",""]
overwrite_flair: true
priority: 1
```
Nov 07 17 22:24:28 <Deimos> since that has a `set_flair` action in it, I don't think it'll apply to comments
Nov 07 17 22:25:21 <Deimos> it might be able to force it to if you specifically say `type: any`, but I'm not certain
Nov 08 17 02:05:37 <N3DSdude> Anyone here well versed with reddit's automod?
Nov 08 17 02:05:49 <N3DSdude> I need help fixing flair tags
Nov 08 17 02:05:59 <N3DSdude> So their colors show
Nov 08 17 02:06:07 <N3DSdude> As well as autoflairing posts
Nov 08 17 02:20:58 <RandomRedditorWithNo> I thought flair tag colors was a stylesheet thing
Nov 08 17 02:22:48 <Geo☆1088> Flair colors are done by applying colors to flair classes via CSS
Nov 08 17 02:23:11 <Geo☆1088> If you have a class you want to add to a flair that AutoMod gives, use `set_flair: ["flair text", "your-class"]`
Nov 08 17 02:23:45 <Geo☆1088> you can then style that flair in CSS with the selector `.flair-your-class` (or `.linkflair-your-class` if you're acting on posts instead of users)
Nov 08 17 02:26:22 <N3DSdude> ahh also Geo☆1088 how would i go about placing a link in a sub's banner?
Nov 08 17 02:26:37 <N3DSdude> trying to do that for /r/MonsterHunterWorld
Nov 08 17 02:26:41 <Geo☆1088> more CSS :p
Nov 08 17 02:26:49 <Geo☆1088> head over to <#290982666860363777> and I can paste you some example code
Nov 08 17 02:27:13 <N3DSdude> yep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment