Git Product home page Git Product logo

warthundernewsbot's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

nwollmann

warthundernewsbot's Issues

Autowikibot-style hover view?

Possibly ask mods to add some CSS to do this. (necessary CSS is on private test sub atm)

Post formatting:

#####	

######	

###	
Text

---

>content

>content

---

Fix error handling

Frequently (always?) fails to send error reports. Possible misuse of Reddit API?

Correctly format tables

Gaijin seems to like to use tables to organize information (such as in http://warthunder.com/en/news/522-Storm-over-Belgrade-en). Probably should find and convert these tables to Reddit markdown. (Sometimes the formatting change results in confusing content.)

Use formatting: (important that there aren't multiple carriage returns per newline - strip out extras)

Header | Header
|:-:|:-:|
item|item
item|item

Escape parentheses in links

Parentheses in links break formatting with Reddit's markdown scheme. Add a regex to find and escape these characters in links with backslashes.

Eg: http://warthunder.com/upload/image/800px-Fw_190_A-8(1).jpg should be formatted as [Image](http://warthunder.com/upload/image/800px-Fw_190_A-8\(1\).jpg) to prevent the link from breaking.

Log post/news article ID's

From a management standpoint, it would be nice to log the checked[] list in a text file so that when the bot needs to be restarted, it can be done without worrying about double-posting comments.

(Perhaps it would be better to simply have an --ignore-existing-posts command-line option.)

Fix mailto links

Just pull out the email address from the link and replace it with the unformatted email address.

Edit comments to reflect altered article text

Gaijin seems to like to go back and change the text of the article after posting it. Probably make a dictionary of article ID's, store a hash of the article text and edit the comment if something changes.

Fix YT embeds

Apparently YT video ID's can have dashes in them...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.