Skip to content

frankli0324/CyanBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CyanBot

Some personal functions built with EssentialBot

  • improved module system
  • command parsing

Deployment

dotnet publish -c Release -r linux-x64 && docker build . -t cyanbot

example compose file:

version: "3.7"
services:
  mirai:
    image: frankli0324/go-cqhttp
    # you can find the Dockerfile for this image at https://github.com/frank-dockerfiles/docker-go-cqhttp
    volumes:
      - ./go-cqhttp:/opt
    ports:
      - 6700:6700

  cyan:
    image: cyanbot
    depends_on:
      - mirai
    restart: always
    volumes:
      - ./cyan-data:/opt
    environment:
      - access_url=ws://mirai:6700/api
      - event_url=ws://mirai:6700/event
      - access_token=your_token

Development

To create a new module:

under namespace CyanBot.Modules, create a public class
export a function as a command by decorating it with [OnCommand ("command")]
export a function for handling any other messages by decorating it with [OnMessage]
you may decorate a [Onmessage] function only once per class

About

simple QQ Bot abstraction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published