Real stats about a server

This commit is contained in:
GregTCLTK 2020-01-30 08:07:57 +01:00
parent 8367b1090f
commit 887a494509
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
2 changed files with 11 additions and 7 deletions

View file

@ -18,16 +18,18 @@ package com.bbn.hadder.commands.misc;
import com.bbn.hadder.commands.Command; import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent; import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.utils.MessageEditor;
public class ServerStatsCommand implements Command { public class ServerStatsCommand implements Command {
@Override @Override
public void executed(String[] args, CommandEvent e) { public void executed(String[] args, CommandEvent e) {
if (args.length == 0) { e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO,
"commands.misc.serverstats.title", "",
} else if (args.length == 1) { "commands.misc.serverstats.description", e.getGuild().getName())
.addField("Owner", e.getGuild().getOwner().getUser().getAsTag(), false)
} else e.getHelpCommand().sendHelp(this, e); .addField("ID", e.getGuild().getId(), false)
.build()).queue();
} }
@Override @Override
@ -42,11 +44,11 @@ public class ServerStatsCommand implements Command {
@Override @Override
public String usage() { public String usage() {
return "[Server-ID]"; return null;
} }
@Override @Override
public String example() { public String example() {
return "448554629282922527"; return null;
} }
} }

View file

@ -87,6 +87,8 @@ commands.misc.screenshare.number.error.description = This isn't a Number.
commands.misc.screenshare.channel.existing.error = Hol' up commands.misc.screenshare.channel.existing.error = Hol' up
commands.misc.screenshare.channel.existing.description = There is no Voice Channel named like this. \n\nNote\: Make sure the Voice Channel is in this Guild. commands.misc.screenshare.channel.existing.description = There is no Voice Channel named like this. \n\nNote\: Make sure the Voice Channel is in this Guild.
commands.misc.screenshare.help.description = Shows you the link to share your screen. commands.misc.screenshare.help.description = Shows you the link to share your screen.
commands.misc.serverstats.title = Serverstats
commands.misc.serverstats.description = This message contains some information about `%extra%`
commands.misc.serverstats.help.description = Shows information about a server. commands.misc.serverstats.help.description = Shows information about a server.
commands.moderation.ban.success.title = Successfully banned commands.moderation.ban.success.title = Successfully banned