MyBot
A Java-Based OneBot11-Compatible Bot Framework
Quick Start
Requirements
- Java Runtime Environment (JRE) version ≥ 11
- Implementation of any OneBot11 protocol framework
Steps to Use
- Go to Github Release or Gitea Release to download the latest version of the JAR package.
- Place the downloaded JAR package in an empty folder.
- Start your OneBot instance.
- Start the MyBot server using the following command:
java -jar mybot.jar
- Edit the generated configuration file and set the WebSocket address to your OneBot WebSocket address.
- Run the following command again to start the server:
java -jar mybot.jar
- Now, you can start using MyBot!
Yes, adding repository guidelines will help developers better integrate MyBot. If you are using custom Maven repositories, you can provide detailed repository setup instructions in the development guide. I can help you add this section. Here's the modified development guide:
Development Guide
Add Repositories
If you need to pull dependencies from custom repositories, add the following repository configurations to your project's build file:
Maven Repository Setup
In your pom.xml
, add the following repository configuration:
<repositories>
<repository>
<id>wzpmc-maven-releases</id>
<url>https://wzpmc.cn:90/repository/maven-releases</url>
</repository>
</repositories>
Gradle Repository Setup
Groovy DSL
repositories {
maven {
url "https://wzpmc.cn:90/repository/maven-releases"
}
}
Kotlin DSL
repositories {
maven {
url = uri("https://wzpmc.cn:90/repository/maven-releases")
}
}
Add Dependencies
Maven Build
In your pom.xml
, add the following dependency:
<dependency>
<groupId>cn.wzpmc</groupId>
<artifactId>my-bot</artifactId>
<version>[LATEST-VERSION]</version>
</dependency>
Gradle Build
Groovy DSL
implementation 'cn.wzpmc:my-bot:[LATEST-VERSION]'
Kotlin DSL
implementation("cn.wzpmc:my-bot:[LATEST-VERSION]")
With these settings, you'll be able to seamlessly integrate MyBot into your project and quickly build OneBot11-compatible bot applications. Enjoy!
MyBot-1.0.6-RELEASE
Latest
Languages
Java
100%