Music recognition bot for Reddit powered by audd.io. Note that the code currently needs some cleaning up and doesn't follow the best practices.

Overview

Music recognition bot for Reddit

u/auddbot identifies music on Reddit.

When someone mentions it or writes a question like "what's the song", it sends URL of the video (or livestream) to the AudD's Music Recognition API.

Note that the code currently needs some cleaning up and doesn't follow the best practices.

You can support the bot on Patreon.

Comments
  • Bot should look for timestamps that start with @

    Bot should look for timestamps that start with @

    Example: https://www.reddit.com/r/KnowledgeFight/comments/yybjtw/748_november_16th_2022/iwto3ts?utm_medium=android_app&utm_source=share&context=3

    The original commenter gave a time to check, but the bot identified the song at the beginning of the 1.5h audio rather than 45:00 in as requested.

    I'll see if I can make a PR, this is a really cool idea for a bot and I appreciate your work!

    opened by Zomega 2
  • False positive triggers and other wrong behavior

    False positive triggers and other wrong behavior

    You may already be aware of this if you're looking through the bot's comments but rather than just downvoting I figured I'd make an issue so you can look into it. Link below, but I have no idea how/why it matched this.

    https://www.reddit.com/r/KerbalSpaceProgram/comments/oeu8mg/lets_get_some_heavy_machinery_on_the_surface_and/h48swh6

    bug 
    opened by magico13 2
  • Recommendation: move all config into files

    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): https://github.com/AudDMusic/RedditBot/blob/a82af307421f9ee3c6c82d33b16adc90b48fec82/main.go#L31-L52 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.

    enhancement good first issue 
    opened by Kenny2github 2
  • Issue recognizing songs.

    Issue recognizing songs.

    I think I got what the bot is supposed to do and I can't be sure where things are going off rails but it confused death metal with some Colombian music. So maybe the api isn't working very well? You can check yourself: https://www.reddit.com/r/AbruptChaos/comments/veiu1p/wish_i_had_that_much_fun_doing_shots/

    opened by yamgarcia 1
  • Song recognition Error

    Song recognition Error

    as seen in this reddit post the song playing is Virtual Riot - Energy Drink, but the lis.tn link leads to [The Blues](The Blues).

    I understand that this bot simply uses the AudD Music recognition API, but not sure where to submit this issue

    opened by zyugyzarc 1
  • support for gDrive and others cloud storage services

    support for gDrive and others cloud storage services

    Hello, Could you please add support for gDrive and others cloud storage services (MS Azure, Apple iCloud, Mega NZ, Dropbox).

    example reddit comment with gDrive URL

    Thank you and best regards, emilwojcik93

    opened by emilwojcik93 1
  • to find the background music

    to find the background music

    Hello! i was on a phone call while on hold and i noticed that the hold music was from an online song from youtube called " pua (feat. Offsite & Tango)" By drops of andromeda . i am not able to find the back ground music without the drums and extra additions to the flute, is there a way to help? Heres a mp3 version if you'd like https://user-images.githubusercontent.com/97133469/148135479-96f66917-8d34-4161-8f25-0cc782df1fe6.mp4

    opened by URMOMMASDOG 1
  • Formatting issues when no date available

    Formatting issues when no date available

    Hi, auddbot just commented on a post I made. It didn't have the date for one song, and so it just displays two backticks. On old reddit, this looks even worse and breaks the formatting a bit.

    It's on the last track suggested.

    Normal post: https://www.reddit.com/r/TIHI/comments/qr3ytx/thanks_i_hate_jelly_hands/hk5fmd0/?context=1

    Old reddit: https://old.reddit.com/r/TIHI/comments/qr3ytx/thanks_i_hate_jelly_hands/hk5fmd0/?context=1

    bug 
    opened by kitchen-ace 1
  • Optional AcoustID detection?

    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.

    opened by Avamander 1
  • Correctly identified song but not artist

    Correctly identified song but not artist

    https://www.reddit.com/r/ToolBand/comments/twqz4x/a_bored_13_year_old_tool_fan_at_1am/i3hrmdl/?utm_source=share&utm_medium=ios_app&utm_name=iossmf&context=3

    Artist should be Tool, not Thomas V. Warren

    opened by cbserra 0
  • Comment links to platforms directly to reddit

    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.

    opened by MKrabs 2
Owner
AudD
AudD provides music recognition services with API
AudD
An account creator/follow bot for twitch.tv

twitch-acc-gen An account creator/follow bot for twitch Reason for release Recently I've been seeing a lot of services pop up for twitch, these servic

post 37 Nov 22, 2022
An info-grabber that delivers to a Discord webhook. Doesn't remove data, ignorant executors will think it's a file cleaning application.

Disclaimer This was made for "educational" purposes ONLY. Files You can compile main.go after editing its code (make sure to also install the go.mod f

null 0 Dec 7, 2021
💁‍♀️Your new best friend powered by an artificial neural network

??‍♀️ Your new best friend Website — Documentation — Getting started — Introduction — Translations — Contributors — License ⚠️ Please check the Call f

Olivia 3.4k Nov 17, 2022
discord bot that plays music in a voice channel discord

Music discord bot by serje3 Description A bot written in the Golang language plays music on your server's voice channel on Discord. It can be built an

Сергей Ерин 1 Nov 17, 2021
Bot-template - A simple bot template for creating a bot which includes a config, postgresql database

bot-template This is a simple bot template for creating a bot which includes a c

Disgo 2 Sep 9, 2022
A Discord Bot written in Go. Provides some fun commands and utility.

asuka About Asuka is a project to finally learn Golang and get comfortable with the language while exploring many different concepts in programming. A

Michael Schwieger 0 Jan 7, 2022
Telegram bot check your TrainingPeaks profile workouts and send notification if some workouts added or changed

TrainingPeaks Bot Telegram bot check your TrainingPeaks profile workouts and sen

Kotov Alexander 0 Dec 29, 2021
Discord rich presence for MPRIS music players.

Clematis Discord rich presence for MPRIS music players. Clematis provides a rich presence for MPRIS-supported music players. It will take information

sammyette 23 Oct 6, 2022
A bot based on Telegram Bot API written in Golang allows users to download public Instagram photos, videos, and albums without receiving the user's credentials.

InstagramRobot InstagramRobot is a bot based on Telegram Bot API written in Golang that allows users to download public Instagram photos, videos, and

FTC Team 8 Dec 16, 2021
Sex-bot - The sex bot and its uncreative responses

Sex Bot The sex bot, made with golang! The sex bot can't hear the word "sexo" he

Marcos Vas 3 Nov 11, 2022
Dlercloud-telegram-bot - A Telegram bot for managing your Dler Cloud account

Dler Cloud Telegram Bot A Telegram bot for managing your Dler Cloud account. Usa

Beta Kuang 1 Dec 30, 2021
Quote-bot - Un bot utilisant l'API Twitter pour tweeter une citation par jour sur la programmation et les mathématiques.

Description Ceci est un simple bot programmé en Golang qui tweet une citation sur la programmation tout les jours. Ce bot est host sur le compte Twitt

Liam Cornu 0 Jan 1, 2022
Discord-bot - A Discord bot with golang

JS discord bots Install Clone repo git clone https://github.com/fu-js/discord-bo

JS Club 4 Aug 2, 2022
Pro-bot - A telegram bot to play around with the community telegram channels

pro-bot ?? Pro Bot A Telegram Bot to Play Around With The Community Telegram Cha

TechProber 1 Jan 24, 2022
Slack-emoji-bot - This Slack bot will post the newly created custom Slack emojis to the channel of your choice

Slack Emoji Bot This Slack bot will post the newly created custom Slack emojis t

Ryan Hollis 8 Oct 21, 2022
Feline-bot - Feline Bot for Discord using Golang

Feline Bot for Discord Development This bot is implemented using Golang. Feature

null 0 Feb 10, 2022
UcodeQrTelebot ver2 - Easy way to get QR and U-code using Utopia API in telegram bot

UcodeQrTelebot Easy way to get QR and U-code using Utopia API in telegram bot Us

null 1 Dec 30, 2021
A Telegram bot that will run code for you.

piston_bot A Telegram bot that will run code for you. Made using piston. Available as @iruncode_bot on telegram. Examples Basic example Input: /run py

Tushar Sadhwani 30 Sep 11, 2022
Kana - Simple discord bot for generate code snippet on the fly

kana discord bot for generate code snippet on the fly, made with graphene Invite

nekonako 1 Jan 25, 2022