如何用Java寫一個聊天機器人

專注的阿熊發表於2022-03-30

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="

         xmlns:xsi="

         xsi:schemaLocation="

    <modelVersion>4.0.0</modelVersion>

    <groupId>simbot.example</groupId>

    <artifactId>外匯跟單gendan5.comsimbot-mirai-demo</artifactId>

    <version>1.0-SNAPSHOT</version>

    <properties>

        <maven.compiler.source>8</maven.compiler.source>

        <maven.compiler.target>8</maven.compiler.target>

        <simbot.version>2.3.4</simbot.version>

    </properties>

    <dependencies>

        <dependency>

            <groupId>com.alibaba</groupId>

            <artifactId>druid</artifactId>

            <version>1.1.10</version>

        </dependency>

        <!-- Mybatis核心 -->

        <dependency>

            <groupId>org.mybatis</groupId>

            <artifactId>mybatis</artifactId>

            <version>3.5.7</version>

        </dependency>

        <!-- junit測試 -->

        <dependency>

            <groupId>junit</groupId>

            <artifactId>junit</artifactId>

            <version>4.12</version>

            <scope>test</scope>

        </dependency>

        <dependency>

            <groupId>org.springframework</groupId>

            <artifactId>spring-context</artifactId>

            <version>5.0.5.RELEASE</version>

        </dependency>

        <dependency>

            <groupId>org.springframework.boot</groupId>

            <artifactId>spring-boot-starter-webflux</artifactId>

            <version>2.3.11.RELEASE</version>

        </dependency>

        <!-- MySql -->

        <dependency>

            <groupId>mysql</groupId>

            <artifactId>mysql-connector-java</artifactId>

            <version>5.1.47</version>

        </dependency>

        <!-- 連線池 -->

        <dependency>

            <groupId>com.alibaba</groupId>

            <artifactId>druid</artifactId>

            <version>1.0.11</version>

        </dependency>

        <!--簡化bean程式碼的工具包-->

        <dependency>

            <groupId>org.projectlombok</groupId>

            <artifactId>lombok</artifactId>

            <optional>true</optional>

            <version>1.18.20</version>

        </dependency>

        <dependency>

            <groupId>junit</groupId>

            <artifactId>junit</artifactId>

            <version>4.12</version>

        </dependency>

        <dependency>

            <groupId>org.slf4j</groupId>

            <artifactId>slf4j-log4j12</artifactId>

            <version>1.6.4</version>

        </dependency>

        <!-- mybatis-plus外掛依賴 -->

        <dependency>

            <groupId>com.baomidou</groupId>

            <artifactId>mybatis-plus</artifactId>

            <version>3.1.1</version>

        </dependency>

        <!-- 使用 mirai 元件。 -->

        <dependency>

            <groupId>love.forte.simple-robot</groupId>

            <artifactId>component-mirai</artifactId>

            <version>${simbot.version}</version><!--vv-->

        </dependency>

        <!-- 定時任務模組 -->

        <dependency>

            <groupId>love.forte.simple-robot.time-task</groupId>

            <artifactId>time-task-quartz</artifactId>

            <version>${simbot.version}</version>

        </dependency>

        <dependency>

            <groupId>com.alibaba</groupId>

            <artifactId>fastjson</artifactId>

            <version>1.2.75</version>

            <scope>test</scope>

        </dependency>

    </dependencies>

    <build>

        <resources>

            <resource>

                <directory>src/main/resources</directory>

                <includes>

                    <include>**/*.properties</include>

                    <include>**/*.yml</include>

                    <include>**/*.xml</include>

                    <include>**/*.tld</include>

                    <include>**/*.**</include>

                </includes>

                <filtering>false</filtering>

            </resource>

            <resource>

                <directory>src/main/java</directory>

                <includes>

                    <include>**/*.properties</include>

                    <include>**/*.yml</include>

                    <include>**/*.xml</include>

                    <include>**/*.tld</include>

                </includes>

                <filtering>false</filtering>

            </resource>

        </resources>

        <plugins>

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-compiler-plugin</artifactId>

                <configuration>

                    <source>1.8</source>

                    <target>1.8</target>

                </configuration>

            </plugin>

            <plugin>

                <groupId>org.springframework.boot</groupId>

                <artifactId>spring-boot-maven-plugin</artifactId>

                <version>2.5.3</version>

                <configuration>

                    <!-- main方法所在類。 -->

<mainClass>love.simbot.example.SimbotExampleApplication</mainClass>

                </configuration>

                <executions>

                    <execution>

                        <goals>

                            <goal>repackage</goal>

                        </goals>

                    </execution>

                </executions>

            </plugin>

        </plugins>

    </build>

</project>


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69946337/viewspace-2885026/,如需轉載,請註明出處,否則將追究法律責任。

相關文章