KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
OrdinalBot-API
★ 19
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
GS.Adventure
:
Port of the classic "Adventure" console game for the Apple IIgs computer
UnityAI
:
AI in Unity.
jy_master_thesis
:
Master Thesis (2021, KAIST): The development of the scale-aware monocular depth estimation aided monocular visual SLAM system for real-time robot navigation
SYNLA-Plus
:
Successor to the original Synthetic Line Art (SYNLA) Dataset.
people-data-analysis
:
👥 Employee analysis #DWD
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
OrdinalBot-API
?
Download (.md)
# OrdinalBot-API   []() []() ## Overview **OrdinalBot-API** is a framework similar to Spigot, designed to enable the creation of plugins for Discord bots. ## Version Current Version: **0.1.0** ## Features - Create custom modules for your Bot. - Simplified API similar to Spigot. - Create customs / commands and use JDAListener ## Getting Started ### Installation 1. Download the library from the [releases page](https://github.com/Ordinal-Team/OrdinalBot-API/releases) and place it in the `libs` directory of your project. 2. Add the library to your local dependency manager. #### Gradle Add the following to your `build.gradle`: ```groovy repositories { mavenCentral() } dependencies { implementation(fileTree("/libs")) } ``` ### Usage Create a `plugin.json` in your resources directory: ```json { "name": "Module Test", "main": "fr.ordinalteam.moduletest.Main", "version": "1.0.0", "author": "Arinonia" } ``` Implement your main class: ```java public class Main extends Plugin { @Override public void onEnable() { this.logger.log("Registering test module"); } } ``` Register commands and listeners: ```java public class Main extends Plugin { @Override public void onEnable() { this.logger.log("Registering test module"); this.getJDAListenerManager().registerJDAListener(new YourListenerAdapter()); this.getCommandRegistry().registerCommand(new YourCommand(), this); } } public class YourListenerAdapter extends ListenerAdapter { // Your listeners } public class YourCommand extends Command { public YourCommand() { super("test", "!test <@user> to tag user"); } @Override public void onCommand(final SlashCommandInteractionEvent event) { // Command logic } } ``` ## Contributing Feel free to submit issues and pull requests. For suggestions and discussions, join our [Discord server](https://discord.gg/XQnNJYv). ## License This project is licensed under the GPLv3 License - see the [LICENSE](LICENSE) file for details. ## Contact For more information, visit our [Website](http://185.229.220.75:8090/).