Implement profile banner grabber command
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-12-25 01:48:31 +01:00
parent b02892d60b
commit beae316bb3
9 changed files with 299 additions and 80 deletions

View File

@@ -48,8 +48,8 @@ public class HelloCommand implements MessageCommand
@Override
public void runCommand(MessageReceivedEvent event, String label, String[] args)
{
String senderId = event.getMessage().getAuthor().getId();
event.getMessage().reply("Hi, <@" + senderId + ">! :sparkles:").queue();
String sender = event.getMessage().getAuthor().getAsMention();
event.getMessage().reply("Hi, " + sender + "! :sparkles:").queue();
}
}