-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69fe541
commit 0510dea
Showing
2 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/main/java/net/dv8tion/discord/commands/InfoCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package net.dv8tion.discord.commands; | ||
|
||
import net.dv8tion.jda.JDAInfo; | ||
import net.dv8tion.jda.MessageBuilder; | ||
import net.dv8tion.jda.events.message.MessageReceivedEvent; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
/** | ||
* Created by Austin on 3/21/2016. | ||
*/ | ||
public class InfoCommand extends Command | ||
|
||
{ | ||
@Override | ||
public void onCommand(MessageReceivedEvent e, String[] args) | ||
{ | ||
MessageBuilder builder = new MessageBuilder(); | ||
builder.appendString("__Yui Information__\n") | ||
.appendString("__Creator__\n") | ||
.appendString(" **Name**: DV8FromTheWorld (#6297)\n") | ||
.appendString(" **ID**: 107562988810027008\n") | ||
.appendString(" **Github**: <http://code.dv8tion.net>\n") | ||
.appendString("__Development__\n") | ||
.appendString(" **Language**: Java 8\n") | ||
.appendString(" **Library**: JDA - v" + JDAInfo.VERSION + "\n") | ||
.appendString(" **Source**: <https://github.com/DV8FromTheWorld/Yui>"); | ||
sendMessage(e, builder.build()); | ||
} | ||
|
||
@Override | ||
public List<String> getAliases() | ||
{ | ||
return Arrays.asList(".info"); | ||
} | ||
|
||
@Override | ||
public String getDescription() | ||
{ | ||
return "Provides information about Yui."; | ||
} | ||
|
||
@Override | ||
public String getName() | ||
{ | ||
return "Yui Information"; | ||
} | ||
|
||
@Override | ||
public List<String> getUsageInstructions() | ||
{ | ||
return Arrays.asList(".info - Prints all information pertaining to the current instance of Yui."); | ||
} | ||
} |