Added ping to ping command...
This commit is contained in:
1 parent
818ddbf884
commit
9c820676d4
1 file changed
+2
-1
@@ -1,6 +1,7 @@
|
||||
package netneutrality.command.basic;
|
||||
|
||||
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
|
||||
import netneutrality.MusicBot;
|
||||
import netneutrality.command.AbstractCommand;
|
||||
import netneutrality.command.Visibility;
|
||||
|
||||
@@ -12,7 +13,7 @@ public class PingCommand extends AbstractCommand {
|
||||
@Override
|
||||
public String execute(MessageReceivedEvent event, String args) {
|
||||
if (countArgs(args) == 0)
|
||||
event.getChannel().sendMessage("Pong!").queue();
|
||||
event.getChannel().sendMessage("Pong! [" + MusicBot.getJDA().getPing() + " ms]").queue();
|
||||
|
||||
return null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user