dunctebot / skybot Goto Github PK
View Code? Open in Web Editor NEWSkyBot is an LGBT-friendly discord bot with music and mod commands written in JDA
Home Page: http://duncte.bot
License: GNU Affero General Public License v3.0
SkyBot is an LGBT-friendly discord bot with music and mod commands written in JDA
Home Page: http://duncte.bot
License: GNU Affero General Public License v3.0
We should be able to set permissions that the user needs and that the bot needs
We should be able to send usage instructions with one method
(and more that I will come up with)
This way users can more easily edit the custom commands with auto-completion for the tags
Use TLongList instead because it's better performance wise
https://java-performance.info/primitive-types-collections-trove-library/
Trace:
com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Unexpected exception
at lavalink.client.player.event.AudioEventAdapterWrapped.onEvent(AudioEventAdapterWrapped.java:55)
at lavalink.client.player.LavalinkPlayer.lambda$emitEvent$0(LavalinkPlayer.java:208)
at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:804)
at lavalink.client.player.LavalinkPlayer.emitEvent(LavalinkPlayer.java:208)
at lavalink.client.io.LavalinkSocket.handleEvent(LavalinkSocket.java:150)
at lavalink.client.io.LavalinkSocket.onMessage(LavalinkSocket.java:102)
at lavalink.client.io.ReusableWebSocket$DisposableSocket.onMessage(ReusableWebSocket.java:134)
at org.java_websocket.client.WebSocketClient.onWebsocketMessage(WebSocketClient.java:462)
at org.java_websocket.drafts.Draft_6455.processFrame(Draft_6455.java:696)
at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:367)
at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:212)
at org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:389)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: lavalink.client.io.RemoteTrackException: <a href="http://www.youtube.com/watch?v=eLcYmljHqqY&feature=player_embedded" target="_blank">Watch this video on YouTube.</a> Playback on other websites has been disabled by the video owner.
at lavalink.client.io.LavalinkSocket.handleEvent(LavalinkSocket.java:136)
... 8 more
lavalink.client.io.RemoteTrackException: <a href="http://www.youtube.com/watch?v=eLcYmljHqqY&feature=player_embedded" target="_blank">Watch this video on YouTube.</a> Playback on other websites has been disabled by the video owner.
at lavalink.client.io.LavalinkSocket.handleEvent(LavalinkSocket.java:136)
at lavalink.client.io.LavalinkSocket.onMessage(LavalinkSocket.java:102)
at lavalink.client.io.ReusableWebSocket$DisposableSocket.onMessage(ReusableWebSocket.java:134)
at org.java_websocket.client.WebSocketClient.onWebsocketMessage(WebSocketClient.java:462)
at org.java_websocket.drafts.Draft_6455.processFrame(Draft_6455.java:696)
at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:367)
at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:212)
at org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:389)
at java.base/java.lang.Thread.run(Thread.java:844)
There should be a filter that can be placed in the channel topic to exclude a channel from several filters, this should follow the same structure as the command filter
I've been working on a way to un-shorten URLs that are shortened, I might make a quick API wrapper for my own API first.
Create a temmute command
todo:
the purpose of this is to have cleaner code and to make it more clear for users how the commands work.
Currently we have 1 huge ban command, I'd like to see that being split up into:
db!ban
db!tempban
Use the FinderUtils class from JDA-Utilities instead of this mess.
Charset.forName("UTF-8")
should be replaced with StandardCharsets.UTF_8
in the class ml.duncte123.skybot.SkyBot
on line 216.
Swap line 76 and 77 in https://github.com/DuncteBot/SkyBot/blob/master/src/main/kotlin/ml/duncte123/skybot/commands/essentials/StatsCommand.kt#L76-L77
the current order looks weird to me
This will allow everyone to use the commands that are currently vote-locked and will also clean up the code a lot
Circle ci failed building from jitpack
Hello, I like to contribute with graphic designs, in opensource projects, so if you need something from me like a logotype or something else just say it, Im here ready to help you.
Greetings!
Nuno Jesus
This makes it possible for the server count dispatcher to automatically send out the shard count
Add a link to the twitter account somewhere in the embed that is being sent.
Hey, please remove the GenderBendCommand. This command is far from LGBT friendly....
Because credit is important
Describe the bug
db!userinfo
command on myself shows Discord Nitro User as "No", however i am a Nitro user.
image of command and profile badge, can send Nitro page from profile if needed
https://imgur.com/ktg3KYy
To Reproduce
Steps to reproduce the behavior:
db!userinfo
w/ no argsExpected behavior
Unless there is a big api difference between Nitro and Nitro Classic (Early Supporter) it should show Yes in command
Screenshots
https://imgur.com/ktg3KYy
Additional context
The To Reproduce section i filled out may look sarcastic but its not i swear just following format :)
Currently, we're closing the connection ourselves and we should use try-with-resources to make it auto close.
We also should make the DBManager implement AutoClosable.
I've been testing with circleci for a while now and I like it better than travis
command usage should be db!translate [destination language] <text>
Html code:
<a href="https://twitter.com/DuncteBot?ref_src=twsrc%5Etfw" class="twitter-follow-button" data-show-count="true">Follow @DuncteBot</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
Store all mutes in a database and re-apply the role if a user rejoins
Make our custom lavalink client up-to-date with freds one
This could be done via a subcommand eg db!cc addembed <cmd> <embed json>
Or via a JagTag™ tag {embed:embed json}
There also needs to be a way for users to create these embeds via a gui, issue #108 could speed that up a bit by adding an embed visualizer to that gui.
Move it to it's own class to make the code look cleaner
Because this is a big complaint let's just fix it for all commands with the NSFW category
Tasks:
This should give us less memory usage as we only have the guilds in memory that are actually using the bot
I suggest that the cache has a timeout of 1 hour
Google guava seems like a good candidate for this https://google.github.io/guava/releases/23.0/api/docs/index.html?com/google/common/cache/package-summary.html
This way people can type invoke
instead of db!invoke
if they wish
Should
Names that have markdown chars in them (underscores eg) will mess up the embed's markdown
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.