mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-24 13:44:33 +00:00
added feature to dynamically adapt the prefix while the bot is running, multiple characters are supported
This commit is contained in:
@@ -14,4 +14,5 @@ public interface CommandRegistry {
|
||||
List<Command> getAllCommands();
|
||||
List<Command> getAllCommandsFromModule(ModuleInterface module);
|
||||
boolean isCommand(Message message);
|
||||
String getCommandName(String input, Long serverId);
|
||||
}
|
||||
|
||||
@@ -3,7 +3,9 @@ package dev.sheldan.abstracto.core.service;
|
||||
public interface ConfigService {
|
||||
Double getDoubleValue(String name, Long serverId);
|
||||
Double getDoubleValue(String name, Long serverId, Double defaultValue);
|
||||
String getStringValue(String name, Long serverId, String defaultValue);
|
||||
void createDoubleValueIfNotExist(String name, Long serverId, Double value);
|
||||
void setDoubleValue(String name, Long serverId, Double value);
|
||||
void setStringValue(String name, Long serverId, String value);
|
||||
|
||||
}
|
||||
|
||||
@@ -12,4 +12,5 @@ public interface ConfigManagementService {
|
||||
AConfig loadConfig(Long serverId, String name);
|
||||
boolean configExists(Long serverId, String name);
|
||||
void setDoubleValue(Long serverId, String name, Double value);
|
||||
void setStringValue(Long serverId, String name, String value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user