proohit / dirisslave Goto Github PK
View Code? Open in Web Editor NEWFeature-rich Discord bot written in Java using JDA. Supports music playback with spotify integration, imageboards, weather data, simple command APIs and much more.
Feature-rich Discord bot written in Java using JDA. Supports music playback with spotify integration, imageboards, weather data, simple command APIs and much more.
Now that we have spotify integration, it would be nice to have all the genres for the existing and for future songs in the db
When inserting a search term or an url which includes line breaks, the inputs are not getting sanitized.
example to reproduce:
.play
https://www.youtube.com/watch?v=V9gMX1KjK2I
The result is that the video is not getting found.
To solve, we should sanitize inputs and trim line breaks etc.
Since we are moving from Trello to Github, we should consider integrating this issue page into DirisSlave. By using commands like ".listissue", ".addissue " or ".readissue <>" issues should be accessible and readable via Discord.
Describe the solution you'd like
It would be cool if the bot could handle voting sessions. Participants can vote via text.
Command proposals
.vote NewVoting Option1
.vote new NewVoting --option Option1 --option Option2 --option Option3
The bot keeps the pause state saved even when the bot is stopped. We should reset the pause state when stopping.
The .calc-command does not work properly. Dividing by 0 just links an empty image.
Please add a funny black-hole gif there (maybe a random gif via Discord).
We could make the required arguments handling easier by moving it to to the handle method. Every command should instead define their minimum required arguments.
danbooru api now supports random post retrieval.
https://danbooru.donmai.us/posts.json?random=true
We can then limit the post to 1, because we just want one post:
With this new submission I want to see the lable-bot in full action and in HD+
Vizualize logs on a frontend. Possible KPI can be:
additionals:
With the new version of Discord, we could implement slash commands. JDA seems to not implement it before 2021, so we may park this feature.
See discord-jda/JDA#1470 for the current issue
Describe the bug
When deleting via the .del
command, it's not working and instead throwing:
main.MyEventListener.onMessageReceived() ERROR:
net.dv8tion.jda.api.exceptions.InsufficientPermissionException: Cannot delete messages of other users at
net.dv8tion.jda.internal.entities.TextChannelImpl.purgeMessages(TextChannelImpl.java:201) at
util.commands.ClearCommand.handleImpl(ClearCommand.java:26) at
shared.commands.Command.handle(Command.java:25) at
main.CommandManager.handle(CommandManager.java:105) at
main.MyEventListener.onMessageReceived(MyEventListener.java:32) at
net.dv8tion.jda.api.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:435) at
net.dv8tion.jda.api.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:96) at
net.dv8tion.jda.internal.hooks.EventManagerProxy.handleInternally(EventManagerProxy.java:88) at
net.dv8tion.jda.internal.hooks.EventManagerProxy.handle(EventManagerProxy.java:70) at
net.dv8tion.jda.internal.JDAImpl.handleEvent(JDAImpl.java:149) at
net.dv8tion.jda.internal.handle.MessageCreateHandler.handleInternally(MessageCreateHandler.java:122) at
net.dv8tion.jda.internal.handle.SocketHandler.handle(SocketHandler.java:36) at
net.dv8tion.jda.internal.requests.WebSocketClient.onDispatch(WebSocketClient.java:956) at
net.dv8tion.jda.internal.requests.WebSocketClient.onEvent(WebSocketClient.java:843) at
net.dv8tion.jda.internal.requests.WebSocketClient.handleEvent(WebSocketClient.java:821) at
net.dv8tion.jda.internal.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:994) at
com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:385) at
com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:276) at
com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:996) at
com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:755) at
com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108) at
com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64) at
com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)
** Affected command **
ClearCommand
When deleting songs out of a playlist, all songs get deleted and not only the specified number.
Add the option to load a playlist shuffled.
Using ".mostplayed" (.mp?) should add the top10 played songs to the queue.
(Matthew effect: "The rich get richer and the poor get poorer" -> Often played songs should be played often.)
The request to fetch posts with two tags has to build the request with the two tags combined with a "+" character.
DirisSlave should play recommended music similar to the played songs after ending the queued playlist.
Describe the solution you'd like
The bot could write hourly data into the DB to track when it was online/offline. For everytime it has no data, he should write an offline entry.
** Command proposals **
It should be visible in the dashboard.
When playing recommended songs, on of the requests return "nothing found". This is may be because of fetching too quickly in a short time. Maybe implement a sleep?
It would be nice to trigger a command also by alternative commands
E.g.:
.pl/.play trigger the same handler
Maybe refactor the defineCommand abstract method to return an array of strings?
Get a random number between 1-n,
Using the command ".roll n" or ".w n", DirisSlave will give you a random number.
i.e. ".roll 6" rolls a standard d6
Optional commands for the standard DnD dices: D4, D6, D8, D10, D10 or D100 (00-90), D12, D20 (optional: w4, w6, w8, ..)
We could use embeds to format search results, e.g. youtube play search results and make them more pretty.
This gist shows an example
Describe the solution you'd like
It would be nice if the bot could detect the requests command even with typos. Since we're using Simmetrics already, we can use it to search for matches. We could create a flat list of all commands and match it to a request. This can also happen recursively for sub commands, since the logic is the same.
some examples:
.pla
results in .play
or .pl
.playlist loaad asdf
results in .playlist load asdf
Adding to #13 DirisSlave should be able to customize the songs queued like ".pl recommended 6 rock" should add 6 songs.
Time-out a user from current channel.
Using the command ".timeout n @user", DirisSlave will kick the user out of the current channel for n minutes.
The time-outed user may enter another channel, but will be repeatedly removed from the channel in which the user was time-outed of.
".ytrandom rock music" queuet die ersten 10 youtubeeinträge für "Rock Music"-search ein
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.