some shit

Signed-off-by: deepCurse <leverplays@gmail.com>
This commit is contained in:
lever1209 2021-12-13 17:06:27 -04:00
commit bf1d67fb48
No known key found for this signature in database
GPG key ID: EEBCBB60C9DFC782
15 changed files with 434 additions and 198 deletions

View file

@ -30,11 +30,12 @@ public class Info implements GuildCommandInterface, PrivateCommandInterface {
@Override
public @Nullable HashMap<String, Argument> getArguments() {
HashMap<String, Argument> args = new HashMap<String, Argument>();
args.put("userdump", new Argument("userdump", (CommandBlob blob) -> {
blob.getChannel().sendMessage(Users.dump(blob.getAuthorID())).queue();
}).setPrefixRequirement(true).setAutoStartRunnable(true).setSkipOriginalTaskOnRunnable(true));
blob.getChannel().sendMessage(!Users.dump(blob.getAuthorID()).isEmpty() ? Users.dump(blob.getAuthorID())
: "Sorry, but this user does not exist in the database").queue();
}).setPrefixRequirement(true).setAutoStartRunnable(true).setSkipOriginalTaskOnRunnable(true).addAliases("u"));
return args;
}
@ -44,6 +45,6 @@ public class Info implements GuildCommandInterface, PrivateCommandInterface {
@Override
public void runGuildCommand(CommandBlob blob, HashMap<String, Argument> argumentList) throws Exception {
blob.getChannel().sendMessage("EEE").queue();
blob.getChannel().sendMessage("This command is used to send data stored in the database to whoever is authorized to view it, to view your own data, use `"+getCommandName()+" -userdump`").queue();
}
}