Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
Update version & improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMicky-FR committed Dec 12, 2018
1 parent 92857ba commit 43e5a65
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Light command framework for JDA Discord bots using annotations
<dependency>
<groupId>com.dev-infinity</groupId>
<artifactId>JDACommands</artifactId>
<version>v1.0</version>
<version>1.0.1</version>
</dependency>
</dependencies>
```
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.dev-infinity</groupId>
<artifactId>jdacommands</artifactId>
<version>1.0</version>
<version>1.0.1</version>

<name>JDACommands</name>

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/dev_infinity/commands/CommandManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private void checkArguments(Method method) {
for (Parameter parameter : method.getParameters()) {
Class<?> type = parameter.getType();

Checks.check(ARGUMENTS_TYPE.get(type) != null, "%s is not a valid argument type", type.getSimpleName());
Checks.check(ARGUMENTS_TYPE.get(type) != null, "Invalid argument type: " + type.getName());
}
}

Expand Down Expand Up @@ -149,7 +149,7 @@ public boolean executeCommand(Message message) {
}
}

LOGGER.info(message.getAuthor().getName() + " executed command " + message.getContentRaw());
LOGGER.info("{} executed command {}", message.getAuthor().getName(), message.getContentRaw());

String[] args = Arrays.copyOfRange(split, 1, split.length);

Expand All @@ -160,7 +160,7 @@ public boolean executeCommand(Message message) {
try {
command.getMethod().invoke(command.getObject(), parameters);
} catch (Exception e) {
LOGGER.error("Error while dispatching command " + command.getName(), e);
LOGGER.error("Error while dispatching command {}", command.getName(), e);
}

return true;
Expand Down

0 comments on commit 43e5a65

Please sign in to comment.