-
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.
**[New Features]** + Pixel Xp system > xp gain of 20 xp per message > Xp gain is off by default in case you want to be able to use the transferLevels command to move old levels to the new system (turns on XpGain) > reward Roles > many settings avalible to customise the system to your liking > automatic role allocation and removal (only when handled via the system) > optional xp decay (off by default) > ability to set the levels of a user based on their current reward roles. > Top ten users can get a special role. > CCs are now granted based on your rewardRoles or if the module is off +40 slots + user Settings > ability to attach tags to a user to tell sail what to do with them > some are able to be obtained by the user > some are admin only + Channel statistics > ability to get all of the types and settings attatched to a channel + Character Bio Role prefix > enables the ability to set what shows up before the roles on a character bio. + Join Messages > enables you to set a message that users will see when they first join the server. **[New Commands]** + ChannelStats + SetJoinMessage + UserSettings + SetCharRolePrefix + DefaultLevelMode + SetLvlMessage + ManagePixelRoles + PixelHelp + Pixels + PixelSettings + SetLevel + SetPixelMultiplier + SetPixels + TransferLevels **[New Toggles/Modules]** + JoinServerMessages + XpDecay + XpGain + Pixels **[New Channel Types/Settings]** + XpDenied + LevelUpDenied + Pixels + LevelUp **[Bug Fixes]** * url generated image embeds now have the proper filename (also fixes a bug where images wouldnt embed properly) * Reorginised command perm/channel/args checks so that they are in the best order. * Updated UserInfo to show the user's Pixel level. * many more minor fixes.
- Loading branch information
1 parent
bbaaba9
commit 09ccf65
Showing
58 changed files
with
3,143 additions
and
676 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
...thub_austinv11_Discord4j_shaded_2_8_3.xml → ...thub_austinv11_Discord4j_shaded_2_8_4.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,19 @@ | ||
package ChannelSettings.Settings; | ||
|
||
import Interfaces.ChannelSetting; | ||
import Interfaces.Command; | ||
|
||
/** | ||
* Created by Vaerys on 04/07/2017. | ||
*/ | ||
public class LevelUpDenied implements ChannelSetting { | ||
@Override | ||
public String type() { | ||
return Command.CHANNEL_LEVEL_UP_DENIED; | ||
} | ||
|
||
@Override | ||
public boolean isSetting() { | ||
return true; | ||
} | ||
} |
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,19 @@ | ||
package ChannelSettings.Settings; | ||
|
||
import Interfaces.ChannelSetting; | ||
import Interfaces.Command; | ||
|
||
/** | ||
* Created by Vaerys on 01/07/2017. | ||
*/ | ||
public class Rank implements ChannelSetting{ | ||
@Override | ||
public String type() { | ||
return Command.CHANNEL_PIXELS; | ||
} | ||
|
||
@Override | ||
public boolean isSetting() { | ||
return true; | ||
} | ||
} |
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,19 @@ | ||
package ChannelSettings.Types; | ||
|
||
import Interfaces.ChannelSetting; | ||
import Interfaces.Command; | ||
|
||
/** | ||
* Created by Vaerys on 02/07/2017. | ||
*/ | ||
public class LevelUp implements ChannelSetting { | ||
@Override | ||
public String type() { | ||
return Command.CHANNEL_LEVEL_UP; | ||
} | ||
|
||
@Override | ||
public boolean isSetting() { | ||
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,116 @@ | ||
package Commands.Admin; | ||
|
||
import Commands.CommandObject; | ||
import Interfaces.ChannelSetting; | ||
import Interfaces.Command; | ||
import Main.Globals; | ||
import Main.Utility; | ||
import Objects.ChannelSettingObject; | ||
import Objects.UserTypeObject; | ||
import Objects.XEmbedBuilder; | ||
import sx.blah.discord.handle.obj.IChannel; | ||
import sx.blah.discord.handle.obj.Permissions; | ||
|
||
import java.util.ArrayList; | ||
|
||
/** | ||
* Created by Vaerys on 01/07/2017. | ||
*/ | ||
public class ChannelStats implements Command { | ||
@Override | ||
public String execute(String args, CommandObject command) { | ||
XEmbedBuilder builder = new XEmbedBuilder(); | ||
|
||
ArrayList<String> channelTypes = new ArrayList<>(); | ||
ArrayList<String> channelSettings = new ArrayList<>(); | ||
|
||
for (ChannelSettingObject c : command.guildConfig.getChannelSettings()) { | ||
if (c.getChannelIDs().contains(command.channelSID)) { | ||
for (ChannelSetting setting : Globals.getChannelSettings()) { | ||
if (c.getType().equalsIgnoreCase(setting.type())) { | ||
if (setting.isSetting()) { | ||
channelSettings.add(c.getType()); | ||
} else { | ||
channelTypes.add(c.getType()); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
builder.withTitle("Channel Stats"); | ||
builder.withColor(Utility.getUsersColour(command.botUser,command.guild)); | ||
if (channelSettings.size() == 0 && channelTypes.size() == 0){ | ||
return "> I found nothing of value."; | ||
} | ||
if (channelTypes.size() != 0) { | ||
builder.appendField("Types:", Utility.listFormatter(channelTypes, true), false); | ||
} | ||
if (channelSettings.size() != 0) { | ||
builder.appendField("Settings:", Utility.listFormatter(channelSettings, true), false); | ||
} | ||
Utility.sendEmbedMessage("",builder,command.channel); | ||
return null; | ||
} | ||
|
||
@Override | ||
public String[] names() { | ||
return new String[]{"ChannelStats"}; | ||
} | ||
|
||
@Override | ||
public String description() { | ||
return "Gives information about the current channel"; | ||
} | ||
|
||
@Override | ||
public String usage() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String type() { | ||
return TYPE_ADMIN; | ||
} | ||
|
||
@Override | ||
public String channel() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Permissions[] perms() { | ||
return new Permissions[]{Permissions.MANAGE_CHANNELS}; | ||
} | ||
|
||
@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]; | ||
} | ||
} |
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
Oops, something went wrong.