jonarzz / dotaresponsesredditbot Goto Github PK
View Code? Open in Web Editor NEWBot adding reply comments with links to appropriate responses found on /r/dota2
License: MIT License
Bot adding reply comments with links to appropriate responses found on /r/dota2
License: MIT License
Two reasons:
It wouldn't have to be anything else but a "source-link" at the end of each comment.
Pls for the memes
If possible to detect which flair the OP has, the Bot should try to find the responses within that hero's messages before, in case there is a duplicate message. Right now if that is the case, the first hero in alphabetical order will get its response sent instead.
There is a difference between:
This is bullshit. (Spirit Breaker)
and
This is bullshit! (Magnus)
In both cases SB voice line is called.
Magnus voice line should be called when there is exclamation mark ( ! ) at the end of the sentence and Spirit Breaker when there is dot ( . )
CATEGORY = 'Lists of responses'
in file /responses_wiki/dota_wiki_parser.py is possibly broken. The full API request doesn't work because of this. This could be the reason the bot doesn't respond for Grimstroke responses.
Original request: https://dota2.gamepedia.com/api.php?action=query&list=categorymembers&cmlimit=max&cmprop=title&format=json&cmtitle=Category:Lists_of_responses
returns nothing.
Possible fix:
CATEGORY = 'Responses'
New request: https://dota2.gamepedia.com/api.php?action=query&list=categorymembers&cmlimit=max&cmprop=title&format=json&cmtitle=Category:Responses
So the other day I found a cool idea on Reddit came up with something absolutely brilliant. Make it so that the HO HO HA HA line has (Trigger warning: Sniper) instead of (Sound warning: Sniper). Could even have that on some other lines, but that's up to you. I wouldn't however advise you to have ALL the lines have a Trigger warning, because that would not be cool imo.
pls mr jonarz
Tests should be added and/or updated to match the code as they are well outdated.
The tests would help to keep the code managable, would encourage refactoring (which is needed as well) and would make the code more understandable for others.
Run configuration as described in the Travis CI configuration file.
Seems like because of Dota 2 wiki migration from gamepedia to fandom and because bot uses assets from wiki now links are broken.
For example this bot comment:
https://www.reddit.com/r/DotA2/comments/p9bsbx/when_the_drums_guy_gets_ya/h9wr5ox/?utm_source=reddit&utm_medium=web2x&context=3
leads to url
https://gamepedia.cursecdn.com/dota2_gamepedia/1/17/Snip_ability_shrapnel_03.mp3
where are error with code "AccessDenied".
Url for this asset from fandom looks like
https://static.wikia.nocookie.net/dota2_gamepedia/images/2/2f/Vo_sniper_snip_ability_shrapnel_03.mp3
The Bot currently does not react on the new voice lines that Lina & CM got from their respective mini-games.
It would be nice if that could be updated, thanks.
i humbly suggest adding "Puppey warning" or somesuch to the FIGHT ME quote
memes are dank
that is all
In memory of the lost r/dota2smut bot on r/dota2, please add "Thus I invoke Masturbation" to the keyword "r/dota2smut" or when someone says "One of my favorites!"
He left a legacy, it's now your time to continue it.
Thank you.
In responses_wiki\dota_wiki_parser.py, you have 'beep bop' and 'bop' as wisp responses. This should be 'beep boop' and 'boop'.
There are some problems with the server on which the bot is running (I do not own it). If the problems are solved, the bot will continue it's normal cycle of running.
Sorry for the inconvenience.
via Reddit
pls mr.Jonarz
Considering the rise of the meme Ding Ding Ding Motherfcker and an already existing link to it, could there be a response by this bot?
Quoting: "We outnumbered you. We outnumber them all!" Seems totally the same as the one in Dota2Wiki.
https://www.reddit.com/r/DotA2/comments/4ksc24/bro_shes_not_the_right_one_for_you/d3hpddh
Practice makes perfect! is a line by Clockwerk, it is also a line by the Bastion voice pack.
IMO it should prioritize Clockwerks line over Bastions voice pack.
Would be nice, if you'd allow users to do something like this:
Windranger: Not Gonna Happen
or
Not Gonna Happen (Windranger)
via Reddit
Something like this.
Maybe at the end again if the sound warning message is needed.
These are all the standard hero flairs /r/dota2 uses: http://pastebin.com/pLTp4DRA (Code)
This wouldn't work well if the bot is referencing announcers.
Such as:
etc.
The link on Dota2Wiki seems to be changed to a CDN-sytle one, for example,
https://dota2.gamepedia.com/File:Chaknight_ability_phantasm_03.mp3
The file is https://d1u5p3l4wpay3k.cloudfront.net/dota2_gamepedia/2/28/Chaknight_ability_phantasm_03.mp3
Could he also respond to "Shotacon"? It doesnt have a Wiki entry, but some memer sent me this sound file , heh.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.