Skip to content

Commit

Permalink
2.4.9 - Documentation
Browse files Browse the repository at this point in the history
* fixed a couple minor bugs to do with logging
+ StartupGuide command added, links to Wiki
  • Loading branch information
Vaerys-Dawn committed Feb 22, 2017
1 parent 858ceb1 commit bf6941d
Show file tree
Hide file tree
Showing 10 changed files with 280 additions and 161 deletions.
349 changes: 196 additions & 153 deletions .idea/workspace.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.vaerys</groupId>
<artifactId>DiscordSAIL</artifactId>
<version>2.4.8</version>
<version>2.4.9</version>
<build>
<resources>
<resource>
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.github.vaerys</groupId>
<artifactId>DiscordSAIL</artifactId>
<version>2.4.8</version>
<version>2.4.9</version>

<build>
<resources>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/Commands/CommandInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public static ArrayList<Command> get() {
commands.add(new Info());
commands.add(new Report());
commands.add(new SilentReport());
commands.add(new StartUpGuide());
//RoleSelect commands
commands.add(new CosmeticRoles());
commands.add(new ModifierRoles());
Expand Down
75 changes: 75 additions & 0 deletions src/main/java/Commands/Help/StartUpGuide.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
package Commands.Help;

import Commands.Command;
import Commands.CommandObject;
import sx.blah.discord.handle.obj.Permissions;

/**
* Created by Vaerys on 22/02/2017.
*/
public class StartUpGuide implements Command {
@Override
public String execute(String args, CommandObject command) {
return "https://github.com/Vaerys-Dawn/DiscordSailv2/wiki/S.A.I.L-Startup-Guide";
}

@Override
public String[] names() {
return new String[]{"StartUpGuide"};
}

@Override
public String description() {
return "Posts a link to the Bot's Startup Guide on its wiki.";
}

@Override
public String usage() {
return null;
}

@Override
public String type() {
return TYPE_HELP;
}

@Override
public String channel() {
return null;
}

@Override
public Permissions[] perms() {
return new Permissions[0];
}

@Override
public boolean requiresArgs() {
return false;
}

@Override
public boolean doAdminLogging() {
return false;
}

@Override
public String dualDescription() {
return null;
}

@Override
public String dualUsage() {
return null;
}

@Override
public String dualType() {
return null;
}

@Override
public Permissions[] dualPerms() {
return new Permissions[0];
}
}
6 changes: 3 additions & 3 deletions src/main/java/Listeners/AnnotationListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,10 @@ public void onMessageUpdateEvent(MessageUpdateEvent event) {
return;
}
int charLimit = 1800;
if (command.message.getContent().length() > charLimit) {
content = command.message.getContent().substring(0, 1800);
if (event.getOldMessage().getContent().length() > charLimit) {
content = event.getOldMessage().getContent().substring(0, 1800);
} else {
content = command.message.getContent();
content = event.getOldMessage().getContent();
}
Utility.sendMessage("> **@" + command.authorUserName + "'s** Message was Edited in channel: " + command.channel.mention() + " Old Contents:\n" + content, logging);
}
Expand Down
Binary file modified target/JavaDiscordSAILv2.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion target/classes/project.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=2.4.8
version=2.4.9
4 changes: 2 additions & 2 deletions target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Generated by Maven
#Wed Feb 22 10:44:18 AEDT 2017
version=2.4.8
#Wed Feb 22 15:19:32 AEDT 2017
version=2.4.9
groupId=com.github.vaerys
artifactId=DiscordSAIL
Binary file modified target/original-JavaDiscordSAILv2.jar
Binary file not shown.

0 comments on commit bf6941d

Please sign in to comment.