-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ toggles for UserRoleLogging, MessageEditLogging, JoinLeaveLogging.
- Loading branch information
1 parent
3794590
commit 41f3f92
Showing
10 changed files
with
530 additions
and
192 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,35 @@ | ||
package GuildToggles.Toggles; | ||
|
||
import Commands.CommandObject; | ||
import GuildToggles.GuildToggle; | ||
import POGOs.GuildConfig; | ||
|
||
/** | ||
* Created by Vaerys on 21/02/2017. | ||
*/ | ||
public class EditLogging implements GuildToggle { | ||
@Override | ||
public String name() { | ||
return "EditLogging"; | ||
} | ||
|
||
@Override | ||
public boolean toggle(GuildConfig config) { | ||
return config.editLogging = !config.editLogging; | ||
} | ||
|
||
@Override | ||
public boolean get(GuildConfig config) { | ||
return config.editLogging; | ||
} | ||
|
||
@Override | ||
public void execute(CommandObject command) { | ||
|
||
} | ||
|
||
@Override | ||
public boolean isModule() { | ||
return false; | ||
} | ||
} |
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,35 @@ | ||
package GuildToggles.Toggles; | ||
|
||
import Commands.CommandObject; | ||
import GuildToggles.GuildToggle; | ||
import POGOs.GuildConfig; | ||
|
||
/** | ||
* Created by Vaerys on 21/02/2017. | ||
*/ | ||
public class JoinLeaveLgging implements GuildToggle{ | ||
@Override | ||
public String name() { | ||
return "JoinLeaveLogging"; | ||
} | ||
|
||
@Override | ||
public boolean toggle(GuildConfig config) { | ||
return config.joinLeaveLogging = !config.joinLeaveLogging; | ||
} | ||
|
||
@Override | ||
public boolean get(GuildConfig config) { | ||
return config.joinLeaveLogging; | ||
} | ||
|
||
@Override | ||
public void execute(CommandObject command) { | ||
|
||
} | ||
|
||
@Override | ||
public boolean isModule() { | ||
return false; | ||
} | ||
} |
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,35 @@ | ||
package GuildToggles.Toggles; | ||
|
||
import Commands.CommandObject; | ||
import GuildToggles.GuildToggle; | ||
import POGOs.GuildConfig; | ||
|
||
/** | ||
* Created by Vaerys on 21/02/2017. | ||
*/ | ||
public class UserRoleLogging implements GuildToggle { | ||
@Override | ||
public String name() { | ||
return "UserRoleLogging"; | ||
} | ||
|
||
@Override | ||
public boolean toggle(GuildConfig config) { | ||
return config.userRoleUpdatelogging = !config.userRoleUpdatelogging; | ||
} | ||
|
||
@Override | ||
public boolean get(GuildConfig config) { | ||
return config.userRoleUpdatelogging; | ||
} | ||
|
||
@Override | ||
public void execute(CommandObject command) { | ||
|
||
} | ||
|
||
@Override | ||
public boolean isModule() { | ||
return false; | ||
} | ||
} |
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
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
Binary file not shown.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#Generated by Maven | ||
#Tue Feb 21 17:51:11 AEDT 2017 | ||
#Tue Feb 21 18:55:02 AEDT 2017 | ||
version=2.4.6 | ||
groupId=com.github.vaerys | ||
artifactId=DiscordSAIL |
Binary file not shown.