Discord bot for control over the VLC Lua web interface
You can't use my personal token I got from the Discord Developer Portal. You need to create a Bot yourself, and paste the token you get from there into an extension-less token file, and put it in the directory where the executable is. Discord Developer Portal
- In VLC Player, go to Preferences. Make sure that under Viewing options, the radio for Everything is selected.
- In the menu on the left, go to Interface -> Main interfaces.
- From here, on the view on the right, enable the Lua interpreter and the Web checkbox. Make sure to set a password at Interface -> Main interfaces -> Lua
- Make sure to save the changed settings by clicking on Save.
- In program.cs, you change the IP adres in the variables playlist_url and status_url, to the IP adres of the computer you're running VLC player on.
- In program.cs, specifically in
var byteArray = Encoding.ASCII.GetBytes(":[password]"); httpClient.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));
, Change the value after the ':' character in the GetBytes method to the password you set in your VLC preferences.