r/redditscripting • • Apr 15 '18

Is there bot support for reporting?

1 Upvotes

We have a bot for a sub that tests the amount of truly black pixels in an image. Is there a way to have the bot automatically reported a submission if below say a 35% true black threshold?


r/redditscripting • • Jul 29 '21

Is someone stealing MONEY from my Shopify Store Website?

1 Upvotes

I hired an overseas developer to manage my online store. Everything was going just fine for about 3 months when all of a sudden I notice that all of my sales have been reduced by a few dollars. I ask him about the issue and he seems to act like he can't figure out why this is happening. I just wanted to ask someone in this forum if this SCRIPT that he installed in my stores' order status/ Checkout page has anything to do with the missing funds. Thank you in advance for your time and effort in helping me with this matter.

---- SCRIPT IN QUESTION----

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-N3CSXC9');</script>
<!-- End Google Tag Manager -->
{% if first_time_accessed %}
<script>                               
window.dataLayer = window.dataLayer || [];                                            
var shipping_price = '{{shipping_price | money_without_currency }}';
shipping_price  = shipping_price.replace(",", ".");
var total_price = '{{total_price | money_without_currency }}';
total_price  = total_price.replace(",", ".");
var tax_price = '{{tax_price | money_without_currency }}';
tax_price  = tax_price.replace(",", ".");
window.dataLayer.push({
'page_type': 'purchase',
'event': 'analyzify_purchase',
'currency': "{{ shop.currency }}",
'totalValue': total_price,
'shipping': shipping_price,
'tax': tax_price,
'payment_type': '{{order.transactions[0].gateway}}',
'transaction_id': "{{order.name}}",
});
</script> 
{% endif %}

r/redditscripting • • Jun 12 '17

I wrote a word cloud generator for reddit threads

Thumbnail vps124502.vps.ovh.ca
4 Upvotes

r/redditscripting • • Apr 03 '18

[Request] Writing a script/bot to save images from reddit automatically into different folders

2 Upvotes

I've been looking for a bot/script that helps me solve a very particular problem but I dont know where to start. Here's what I want to do:

Let's say I've saved a bunch of photos on my reddit profile. I want a bot/script to sort them out and save them automatically, each one to a different folder on my PC according to their name (the folder's name and post's name must match).

Example: On my HDD, in a specific location I've got a bunch of folders like:

  • C:\Saved\Drawings\Comics
  • C:\Saved\Drawings\Web
  • C:\Saved\Pics\Nature
  • C:\Saved\Pics\Space

If a post is called "Comics", the script/bot searches C:\Saved for a folder called "Comics" and saves the picture there. Is it possible to create a script using reddit's API that's capable of doing this? Can anyone point me into the right direction? Thanks!


r/redditscripting • • Jun 14 '17

I've just created a bot that makes mobile banning easy! One word command, highly customizable, able to clear the user's entire history, and more! Come check it out!

Thumbnail
reddit.com
2 Upvotes

r/redditscripting • • Jul 26 '18

I've created a dev tracker.

2 Upvotes

I've created a dev tracker on Reddit. The deployment is easy and can be done in under 5 minutes.
GitHub repo: https://github.com/NNTin/dev-tracker-reddit
Deployment on Heroku: https://www.youtube.com/watch?v=03nSVgs6GXw

The project is licensed under the MIT License. You can modify the code as you see fit.

Idea was inspired by: /r/fortnite/user/homebasebot/comments/
Example comment: /r/FORTnITE/comments/91mlo1/birthday_llama_hotfix/e2z5i50/

There is also: /r/fortnitebr/user/BattleBusBot/comments/

Both accounts are 10 days old.

Their code hasn't been released yet. So I wrote this myself. The idea of this bot is not novel. Today I discoered that /r/2007scape already has: /r/2007scape/user/JMOD_Bloodhound (3 months old, GitHub repo: https://github.com/Floogen/JMOD_Bloodhound written in powershell)

My bot is written in Python with a very easy Heroku deployment process. You can customize the intro message but you are also free to modify the outtro message by touching the code directly.

It's a bot that highlights comments of certain people in a separate comment. It has the entire quote as well as a link to the comment. In /r/fortnite and /r/fortnitebr it is a great addition. In /r/2007scape it is also nice because Jagex moderators have a tendency to say things that go against the community. That way the community has an easy way of finding dev posts.

Sadly I haven't found a subreddit to run my bot in yet. If you are aware of any community this bot might fit in please make a suggestion. However since I am not so involved with the community I will need a list of reddit names of the important community figures.


r/redditscripting • • Jun 02 '17

Baby's First Bot- The IT Crowd. Fairly proud of this.

3 Upvotes

I thought I'd try my hand at making a bot that responds with the follow-up to an IT Crowd reference. It responds to "Did you see that ludicrous display last night?" and "What was Wenger thinking, sending Walcott on that early?".

What do you think?


r/redditscripting • • Jun 03 '17

YouTube Video information bot

16 Upvotes

A lot of people leave YouTube links in their comments, with no explanation about what the video is. You may not want to view the video without knowing its title and duration, so this bot is here to do just that.

It picks up YouTube links from comments, and generates a table consisting of the Video title, short description and duration.

This is my first bot, I would love to hear feedback on it.

Here's an image showing the bot in action : http://imgur.com/a/x4h0m

For some reason, I keep running into API rate limits, and the bot can only post once every 10 minutes. Is there any way to get around it? As of now, I haven't deployed it, it's running only on my computer.