Skip to content

Commit

Permalink
Remove ts.halfminer.de exclusive features
Browse files Browse the repository at this point in the history
Add GitHub link to !help
  • Loading branch information
Kakifrucht committed Jan 12, 2018
1 parent 430414c commit dc0c930
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 243 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Current features
- Checks if client has permission
- Sends correct usage and description
- When calling !help *querypassword* highest available group will be granted (can be disabled)
- !rank
- !rank (*not on master branch*)
- Automatic retrieval of ranks after querying Halfminer REST API for privileges
- Removes old server group, even if a different identity was used
- **Scheduled tasks**
Expand All @@ -65,4 +65,4 @@ Current features
- If server is full, kick AFK users to make room
- Configure amount of players to kick at once
- Exempt clients via permissions via permissions
- *Send current status to API via HTTP PUT*
- *Send current status to API via HTTP PUT* (*not on master branch*)
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>de.halfminer</groupId>
<artifactId>HalfminerBot</artifactId>
<name>Halfminer Bot</name>
<version>1.3.0</version>
<version>1.3.1</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/halfminer/hmbot/cmd/CmdHelp.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void run() {
}

String version = componentHolder.getStateHolder().getVersion();
MessageBuilder.create("[B]HalfminerBot[/B] v" + version + " - © halfminer.de | Kakifrucht")
MessageBuilder.create("[B]HalfminerBot[/B] v" + version + " - © Kakifrucht@halfminer.de | [url=https://github.com/Kakifrucht/HalfminerBot]GitHub[/url]")
.setDirectString()
.sendMessage(clientId);

Expand Down
168 changes: 0 additions & 168 deletions src/main/java/de/halfminer/hmbot/cmd/CmdRank.java

This file was deleted.

4 changes: 1 addition & 3 deletions src/main/java/de/halfminer/hmbot/cmd/CommandEnum.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ enum CommandEnum {
ADMIN (CmdAdmin.class),
BROADCAST (CmdBroadcast.class),
CHANNEL (CmdChannel.class),
HELP (CmdHelp.class),
RANK (CmdRank.class);
HELP (CmdHelp.class);

private Class<?> aClass;

Expand Down Expand Up @@ -66,7 +65,6 @@ private String getNameFirstUppercase() {
putAliases(BROADCAST, "bc");
putAliases(CHANNEL, "c", "create");
putAliases(HELP, "h", "?", "version", "ver", "hilfe");
putAliases(RANK, "rang", "premium", "vip", "freischalten", "pin");
}

private static void putAliases(CommandEnum command, String... aliasesToPut) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void createNewThreadPool() {

@Override
public void registerAllTasks() {
allTasks = Arrays.asList(new InactivityTask(), new StatusTask());
allTasks = Arrays.asList(new InactivityTask());
for (Task task : allTasks) {
registerTask(task);
}
Expand Down
43 changes: 0 additions & 43 deletions src/main/java/de/halfminer/hmbot/task/StatusTask.java

This file was deleted.

22 changes: 0 additions & 22 deletions src/main/java/de/halfminer/hmbot/util/RESTHelper.java

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ task:
# Second: number delay between subsequent execution
# Third: unit time unit for first and second argument, example: disabled, seconds, minutes, hours, ...
Inactivity: 10, 10, seconds
Status: 0, 2, disabled
inactivity:
#String the designated AFK channel must contain, the channels necessary talk power must also be higher than 0
channelNameContains: 'AFK'
Expand Down Expand Up @@ -74,4 +73,3 @@ permissions:
- bot.chat
- cmd.channel
- cmd.help
- cmd.rank

0 comments on commit dc0c930

Please sign in to comment.