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;
|
package netneutrality.command.basic;
|
||||||
|
|
||||||
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
|
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
|
||||||
|
import netneutrality.MusicBot;
|
||||||
import netneutrality.command.AbstractCommand;
|
import netneutrality.command.AbstractCommand;
|
||||||
import netneutrality.command.Visibility;
|
import netneutrality.command.Visibility;
|
||||||
|
|
||||||
@@ -12,7 +13,7 @@ public class PingCommand extends AbstractCommand {
|
|||||||
@Override
|
@Override
|
||||||
public String execute(MessageReceivedEvent event, String args) {
|
public String execute(MessageReceivedEvent event, String args) {
|
||||||
if (countArgs(args) == 0)
|
if (countArgs(args) == 0)
|
||||||
event.getChannel().sendMessage("Pong!").queue();
|
event.getChannel().sendMessage("Pong! [" + MusicBot.getJDA().getPing() + " ms]").queue();
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user