ad044 / navi Goto Github PK
View Code? Open in Web Editor NEWvery cool bot
License: GNU General Public License v3.0
very cool bot
License: GNU General Public License v3.0
bugs
feature requests
test code
public class TestHelpCommand {
public static void main(String[] args) {
HelpCommand h = new HelpCommand();
MessageEmbed m = h.constructHelpMessage();
System.out.println("max length bot"+ m.EMBED_MAX_LENGTH_BOT);
System.out.println("max length client"+ m.EMBED_MAX_LENGTH_CLIENT);
m.getFields().forEach(f -> System.out.println(f.getName() + "," + f.getValue()));
System.out.println("Total length " + m.getLength());
System.out.println("===");
//String s = m.toData();
//System.out.println(s.substring(0,999) + "***" + s.substring((1000)));
}
}
Aside from the dumb code's formatting, the embed should end with something like this
,PLAYER COMMANDS:
play,Adds a track to the queue.
showq,Shows the current playlist.
clearq,Clears the current queue.
continue,Unpauses the player.
mvhere,Moves the player to the caller's current vc.
currenttrack,Shows the current track.
rmrange,Removes tracks in a specified range.
skip,Skips a track.
rm,Removes a track from the playlist.
seek,Changes the current track to a specified time.
pause,Pauses the player.
โ,โ
Source code:,https://github.com/ad044/navi
Total length 1130
But the output from the bot is actually
Questions:
MAX_LENGTH_BOT
on the running instance of the bot? Why does it not send the full message?constructHelpMessage
to allow multiple embeds? It needs to fit channel.sendMessageEmbeds(constructHelpMessage()))
, so it should accept a Collection https://ci.dv8tion.net/user/seejay.11/my-views/view/all/job/jda/javadoc/net/dv8tion/jda/api/entities/MessageChannel.html#sendMessageEmbeds(java.util.Collection). Is List<MessageEmbed>
ok?erm?
If user issues a navi, play sc <query>
the command will be ignored, despite still being a valid search result,
Correct solution is to still forward that query to youtube or actually implement Soundcloud.
If the first one is chosen, also revise completely removing the yt/sc distinction, since navi, play yt <query>
should result in a youtube search yt <query>
and not <query>
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.