i have a music bot i am currently developing with the discord.net framework. i like it because i enjoy programming in c# the language i mainly use. but i want to expand the functionality of the bot so that it can play music in a discord voice chat. i have done a little research onto it and i cant find any resources on how to add this functionality to my bot.

i used to have a discord bot that ran on python and right now the best idea i have is to have both the bots running under the same account so it appears as one bot that can do everything when it is in fact two. but this way just seems wrong and inneficient.

and so here i am asking for help. any resources you may have on how to make my discord.net able to play music in a voice chat would be great. and if anyone can link me some code snippets or a link to some guide would be even better

TLDR: i have a bot written in c#, can someone please link me some assets or a guide on how to add a music player to this bot

thanks in advance :)

1 Answers

Community On Best Solutions

You can look into user a wrapper like Victoria or using ffmpeg you can do something like this.

The general documentation from the lib itself can be found here. Note, it says it's out of date but Audio hasn't changed since 1.0, so everything there should still apply.