Skip to content

memset0/membot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

membot

Yet Another Open Source & Cross-platform Chatbot Powered by Koishi

Deploy

As an independent bot

To deploy as an independent bot, which means you will start the bot with all features enabled, will probably cost you quite a lot time on the configuration. Due to the lack of my time, I wouldn't provide a template configuration file currently. However, you can refer to the Config interfaces in the code to the modules by yourself.

Notice that our image operations are dependent on ffmpeg to handle. If you enabled any submodules depending on the image service, make sure you have ffmpeg installed before launching.

To start the bot, please run following commands.

yarn
yarn start

As a koishi plugin

On the propose of making development more convenient, various complex dependencies are included in code. Therefore, I strongly recommend you to clone the whole repository and import modules directly without changing directory structure.

If you just want to enable the RSS feature, which is depending on the web service plugin, for example. You should have koishi deployed firstly and use ctx.plugin method to import packages of this project.

Here is an example code. Remember to replace <path> pattern with the correct relative location of membot folder.

ctx.plugin(require('<path>/membot/src/services/web'));
ctx.plugin(require('<path>/membot/src/plugins/rss'));

Features

  • Service: Web - Koa & Vue powered web support for displaying hypertext and so on.
  • Plugin: RSS Feed - A simple RSS Feed plugin, coming with many useful configuration items.
  • Plugin: Message Forward - Forward message between platforms, currently support QQ, Telegram and Kook. Supporting for Discord is WIP.
  • ...

Dependences