bleuzen / blizcord Goto Github PK
View Code? Open in Web Editor NEWDiscord Bot written in Java using JDA and lavaplayer
License: MIT License
Discord Bot written in Java using JDA and lavaplayer
License: MIT License
In my case, English is not a problem but it would be confortable to enjoy this program into user's mother language, and make this application more accesible
Bot don't play anything, url, or file (wav, ogg, mp3), in logs it sends this
18:01:46.991 [JDA Gateway-Worker 1] DEBUG net.dv8tion.jda.internal.requests.WebSocketClient - Sending voice request {"op":4,"d":{"self_deaf":false,"guild_id":"744189716722745394","channel_id":null,"self_mute":false}} 18:01:47.523 [JDA Gateway-Worker 1] DEBUG net.dv8tion.jda.internal.requests.WebSocketClient - Sending voice request {"op":4,"d":{"self_deaf":false,"guild_id":744189716722745394,"channel_id":1059879536289919107,"self_mute":false}} 18:01:48.055 [JDA AudioWS-ReadThread (guildId: 744189716722745394)] DEBUG net.dv8tion.jda.internal.audio.AudioWebSocket - Using encryption mode xsalsa20_poly1305_lite 18:01:54.103 [JDA AudioWS-ReadThread (guildId: 744189716722745394)] DEBUG net.dv8tion.jda.internal.audio.AudioWebSocket - Unknown Audio OP code. {"op":18,"d":{"user_id":"745325857228455976","flags":null}}
I didn't do anything to the bot or the java, I just didn't run this bot for about 5 months.
Congrats on the bot, works like a charm! And I was quite surprised to find it on AUR 😀
Are there any plans to add a shuffle command to randomize the playlist order?
Showing only the filename (without extension) on the bot's "Playing" status instead of the full path would be a nice feature
The help
command shows an incorrect prefix, !
, no matter which prefix is set.
It would be nice if Blizcord saves the audio volume value after kill it
I'm unable to run Blizcord on Raspbian Lite (it has not any desktop environment) but is able to connect to Discord and stay online. However it doesn't do anything when you call it:
[12:23:37] [INFO] [Blizcord] Version: 0.9.2
[12:23:37] [INFO] [Blizcord] Developer: Bleuzen [email protected]
[12:23:37] [INFO] [Blizcord] Starting bot...
[12:23:37] [INFO] [Blizcord] Config: /home/user/.blizcord/config.json
[12:23:37] [INFO] [Blizcord] Starting JDA...
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.jnativehook.GlobalScreen.getAutoRepeatRate()Ljava/lang/Integer;
at org.jnativehook.GlobalScreen.getAutoRepeatRate(Native Method)
at org.jnativehook.GlobalScreen.(Unknown Source)
at com.github.bleuzen.blizcord.c.a(Unknown Source)
at com.github.bleuzen.blizcord.a.d.h(Unknown Source)
at com.github.bleuzen.blizcord.a.d.a(Unknown Source)
at com.github.bleuzen.blizcord.a.main(Unknown Source)
And when I tried to call it to play a YouTube video, It threw me this error:
12:24:20.063 [JDA MainWS-ReadThread] ERROR net.dv8tion.jda.core.JDA - One of the EventListeners had an uncaught exception
java.lang.NullPointerException: null
at java.lang.String.startsWith(String.java:1405)
at java.lang.String.startsWith(String.java:1434)
at com.github.bleuzen.blizcord.a.d.onMessageReceived(Unknown Source)
at net.dv8tion.jda.core.hooks.ListenerAdapter.onEvent(Unknown Source)
at net.dv8tion.jda.core.hooks.InterfacedEventManager.handle(Unknown Source)
at net.dv8tion.jda.core.handle.MessageCreateHandler.handleInternally(Unknown Source)
at net.dv8tion.jda.core.handle.SocketHandler.handle(Unknown Source)
at net.dv8tion.jda.core.requests.WebSocketClient.onDispatch(Unknown Source)
at net.dv8tion.jda.core.requests.WebSocketClient.onEvent(Unknown Source)
at net.dv8tion.jda.core.requests.WebSocketClient.handleEvent(Unknown Source)
at net.dv8tion.jda.core.requests.WebSocketClient.onBinaryMessage(Unknown Source)
at com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(Unknown Source)
at com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(Unknown Source)
at com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(Unknown Source)
at com.neovisionaries.ws.client.ReadingThread.handleFrame(Unknown Source)
at com.neovisionaries.ws.client.ReadingThread.main(Unknown Source)
at com.neovisionaries.ws.client.ReadingThread.runMain(Unknown Source)
at com.neovisionaries.ws.client.WebSocketThread.run(Unknown Source)
Hi there
I gave your Blizcord a try and with the little GUI it seems nice so far
But after I set it up to connect with my discord bot
and I am (using the GUI) adding a mp3 file
it always says "Could not play Unknown file format"
Am I doing sth wrong?
thanks
discord updated with a breaking change a few weeks ago, i would really appreciate if this bot would be updated since i sadly dont know enough about coding myself.
Hey,
I'm trying play a local file but can't figure it out for the life of me. I'm running the code myself (not through the .exe), where do I put the .mp3 file?
Thanks
please make something like an argument for !search, for adding in the result into the current playlist!
thanks :)
I would like to build my custom version of Blizcord only for testing proposes but I cannot find any information to do that
On my server I have several playlists but some of them share the same songs, I tried to create new playlists based on symlinks but Blizcord is unable to read them. I didn't test it with hard links
I added a playlist with !add and the file path of the folder. The bot started playing music as it joined, the first one on the folder. Now if I want it to play a specific file on the folder, what exactly should I put after the !play command?
And is it possible to get a "Now Playing «song name»" message, every time the song changes?
Would be nice if there was a clear way to delete created playlists via the bot on Discord.
Such as !remove list #listname
The bot works fine playing local files, but I can't seem to get YouTube links to play. Not sure what I'm doing wrong! Running Arch. I tried building from source and get the same issue.
[13:41:16] [INFO] [Blizcord] Developer: Bleuzen <[email protected]>
[13:41:42] [INFO] [Blizcord] Starting bot...
[13:41:42] [INFO] [Blizcord] Config: /home/user/.blizcord/config.json
[13:41:42] [INFO] [Blizcord] Starting JDA...
[13:41:44] [INFO] [Blizcord] Successfully started.
13:41:58.092 [JDA MainWS-ReadThread] ERROR net.dv8tion.jda.api.JDA - One of the EventListeners had an uncaught exception
java.lang.NullPointerException: null
at com.github.bleuzen.blizcord.a.d.onMessageReceived(Unknown Source)
at net.dv8tion.jda.api.hooks.ListenerAdapter.onEvent(Unknown Source)
at net.dv8tion.jda.api.hooks.InterfacedEventManager.handle(Unknown Source)
at net.dv8tion.jda.internal.hooks.EventManagerProxy.handleInternally(Unknown Source)
at net.dv8tion.jda.internal.hooks.EventManagerProxy.handle(Unknown Source)
at net.dv8tion.jda.internal.JDAImpl.handleEvent(Unknown Source)
at net.dv8tion.jda.internal.handle.MessageCreateHandler.handleInternally(Unknown Source)
at net.dv8tion.jda.internal.handle.SocketHandler.handle(Unknown Source)
at net.dv8tion.jda.internal.requests.WebSocketClient.onDispatch(Unknown Source)
at net.dv8tion.jda.internal.requests.WebSocketClient.onEvent(Unknown Source)
at net.dv8tion.jda.internal.requests.WebSocketClient.handleEvent(Unknown Source)
at net.dv8tion.jda.internal.requests.WebSocketClient.onBinaryMessage(Unknown Source)
at com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(Unknown Source)
at com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(Unknown Source)
at com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(Unknown Source)
at com.neovisionaries.ws.client.ReadingThread.handleFrame(Unknown Source)
at com.neovisionaries.ws.client.ReadingThread.main(Unknown Source)
at com.neovisionaries.ws.client.ReadingThread.runMain(Unknown Source)
at com.neovisionaries.ws.client.WebSocketThread.run(Unknown Source)```
I don't know if there is a trick to do it but it would be nice if there is an option to automaticaly shuffle everytime lists that you are going to play. Loading a list and typing --shuffle everytime is annoying
Hi Bleuzen,
I Really like the bot so far but sometimes it glitches out and a restart of the bot is needed.
Would you be able to add that as !restart ?
i will add seperate issues for the errors.
just a command to show the plyatime on a track?
Hello, Bleuzen. I know bot is old and outdated) But if you have time, can you update it???
Windows user. I use the add function in the gui executable, but all files result in an error saying Unknown file format, or error finding the file, or something broke while playing this track.
I tried first with mp3 files, but thought maybe since this bot was built for linux, a .flac or .ogg file, might be the case, but nope, same problem. any idea wtf is going on?
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.