Skip to content

Commit

Permalink
ready to deploy;
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Nov 24, 2020
1 parent 4dbdacd commit 1d4fdd8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
11 changes: 11 additions & 0 deletions component-parent/component-lovelycat-httpapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

<artifactId>component-lovelycat-httpapi</artifactId>


<dependencies>
<dependency>
<groupId>love.forte.simple-robot</groupId>
Expand Down Expand Up @@ -82,6 +83,16 @@
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
</plugin>

<plugin>
<!-- skip deploy -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,7 @@
@SimbotApplication
public class Test implements SimbotProcess {
public static void main(String[] args) throws InterruptedException {
//
// Logger logger = LoggerFactory.getLogger(Test.class);
//
// logger.info("a\na");
// logger.info("b\r\nb");
// logger.info("c>\r<c");

SimbotContext context = SimbotApp.run(new Test(), args);
// BotManager manager = context.get(BotManager.class);

// for (Bot bot : manager.getBots()) {
// System.out.println(bot.getSender().getBotInfo());
// }
//
// Thread.sleep(5000);
//
//
// context.close();
//
// System.exit(-1);

SimbotApp.run(new Test(), args);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@
@Beans
public class TestListener {

@OnGroup
@Filter(groups = "703454734")
public void group(GroupMsg msg){
System.out.println(msg.getBotInfo().getBotCode() + " on group msg: " + msg);
}

}

0 comments on commit 1d4fdd8

Please sign in to comment.