This repository was archived by the owner on May 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Custom Usage
runoneall edited this page Dec 11, 2024
·
2 revisions
This is the simplest way to install the SDK, and you can customize all its features. If you only need some features of the SDK, this method is suitable for you.
Just download all the contents of the Custom folder and save.
- Open the
config.jsonfile - Add the features you need
- Save the file
- Run
python3 create.py - The SDK will be generated in the
RyhBotPythonSDKfolder - Move the
RyhBotPythonSDKfolder to your project directory - See Wiki for usage instructions
- You need to add the
messagefield to declare that you need to use message related functions - Such as
{
"message": [
"send:text",
"send:markdown",
"send:image",
"send:file",
"edit:text",
"edit:markdown",
"edit:image",
"edit:file",
"delete",
"get:before",
"get:after",
"board-user:text",
"board-user:markdown",
"board-user:html",
"board-user:cancel",
"board-global:text",
"board-global:markdown",
"board-global:html",
"board-global:cancel"
]
}-
send:text: Send text message -
send:markdown: Send markdown message -
send:image: Send image message -
send:file: Send file message -
edit:text: Edit text message -
edit:markdown: Edit markdown message -
edit:image: Edit image message -
edit:file: Edit file message -
delete: Delete message -
get:before: Get message withbefore -
get:after: Get message withafter -
board-user:text: Send text message to user board -
board-user:markdown: Send markdown message to user board -
board-user:html: Send html message to user board -
board-user:cancel: Cancel user board message -
board-global:text: Send text message to global board -
board-global:markdown: Send markdown message to global board -
board-global:html: Send html message to global board -
board-global:cancel: Cancel global board message
- You need to add the
serverfield to declare that you need to use server related functions - Such as
{
"server": [
"normal",
"command",
"button",
"all",
"bot-add",
"bot-delete",
"bot-settings",
"user-join",
"user-leave"
]
}-
normal: Receive normal messages -
command: Receive command messages -
button: Receive button click messages -
all: Receive all messages -
bot-add: Receive bot add messages -
bot-delete: Receive bot delete messages -
bot-settings: Receive bot settings messages -
user-join: Receive user join messages -
user-leave: Receive user leave messages
- You need to add the
allow-pluginfield to declare that you need to use plugin related functions - Such as
{
"allow-plugin": true
}- When
allow-pluginistrue, plugin loader and management will be available
Developer: Runoneall
Translator: Spectrollay
This document is written by English and 简体中文.
English
本文档由English和简体中文编写。
简体中文