Git Product home page Git Product logo

redditbot's People

Contributors

mihonarium avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

redditbot's Issues

Optional AcoustID detection?

Would it also be possible to add AcoustID-based detection to the bot, this could increase the likelihood that a match is found, plus optionally the available MusicBrainz links and data from there can be very useful.

Add a license

Currently this project has no licensing information. I suggest AGPLv3.

Recommendation: move all config into files

All of this stuff is hardcoded and bad practice (especially the auddToken - forget to remove it one time when committing and you're dead):

RedditBot/main.go

Lines 31 to 52 in a82af30

var auddToken = "test"
var ravenDSN = "https://...:[email protected]/..."
var triggers = []string{"whats the song", "what is the song", "whats this song", "what is this song",
"what song is playing", "what song is this", "what the song is playing", "what the song is this",
"whats the music", "what is the music", "whats this music", "what is this music",
"whats the track in this", "what is the track in this",
"recognizesong", "auddbot", "u/find-song"}
var antiTriggers = []string{"has been automatically removed", "your comment was removed",
"comment here with such low karma", "bot wants to find the best and worst bots"}
var ignoreSubreddits = []string{
"wallstreetbets", //45 days account age threshold
}
var replySettings = map[string]bool{
"mentionLinks": true,
"commentLinks": false,
"postLinks": false,
"mentionReplyAlways": true,
"commentReplyAlways": false,
"postReplyAlways": false,
}

You can and should put all of this in e.g. a .gitignored JSON config file:

{
	"auddToken": "test",
	"ravenDSN": "https://...:[email protected]/...",
	"triggers": [
		"whats the song", "what is the song", "whats this song", "what is this song",
		"what song is playing", "what song is this", "what the song is playing",  "what the song is this",
		"whats the music", "what is the music", "whats this music", "what is this music",
		"whats the track in this", "what is the track in this",
		"recognizesong", "auddbot", "u/find-song"
	],
	"antiTriggers": [
		"has been automatically removed", "your comment was removed",
		"comment here with such low karma", "bot wants to find the best and worst bots"
	],
	"ignoreSubreddits": ["wallstreetbets"],
	"replySettings": {
		"mentionLinks": true,
		"commentLinks": false,
		"postLinks": false,
		"mentionReplyAlways": true,
		"commentReplyAlways": false,
		"postReplyAlways": false
	}
}

Then load this into your original variables. I don't know Go but I would be utterly horrified if there wasn't some JSON parser available.

Comment links to platforms directly to reddit

It would be cool to have the list of platforms + links in the reddit comment, instead of being redirected to a list.

Reason is that (for me) the link opens in a contained (in-app) Firefox windows, and the platform I use does not open in the app, but rather in the contained Firefox window.

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.