mirror of
https://github.com/Geniusay/ChopperBot.git
synced 2026-09-03 06:25:04 +08:00
文档编写
ReadMe更改
This commit is contained in:
@@ -23,6 +23,11 @@
|
||||
<artifactId>chopperbot-creeper</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.example</groupId>
|
||||
<artifactId>chopperbot-live</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.example</groupId>
|
||||
<artifactId>chopperbot-file</artifactId>
|
||||
|
||||
@@ -16,16 +16,13 @@ import java.util.function.Supplier;
|
||||
**/
|
||||
public class WorldInitMachine extends ModuleInitMachine{
|
||||
|
||||
|
||||
|
||||
|
||||
private static final String githubUrl = "https://github.com/969025903/ChopperBot";
|
||||
|
||||
public WorldInitMachine() throws Exception {
|
||||
super("ChopperBot",ChopperLogFactory.getLogger(LoggerType.System));
|
||||
}
|
||||
|
||||
|
||||
public List<CommonInitMachine> alreadyInitModule = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
public boolean init() {
|
||||
@@ -41,6 +38,7 @@ public class WorldInitMachine extends ModuleInitMachine{
|
||||
return fail();
|
||||
}
|
||||
(initMachine).registerPlugin();
|
||||
alreadyInitModule.add(initMachine);
|
||||
}else{
|
||||
return fail();
|
||||
}
|
||||
@@ -86,7 +84,7 @@ public class WorldInitMachine extends ModuleInitMachine{
|
||||
logger.info("🌏 <{}> is shutting down,{} modules need to be closed,please wait.....","ChopperBot",getInitMachines().size());
|
||||
|
||||
ChopperBotGuardPool.GuardPool().shutdown();
|
||||
this.getInitMachines().forEach(
|
||||
this.alreadyInitModule.forEach(
|
||||
InitMachine::shutdown
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user