Code Monkey home page Code Monkey logo

mostima-koishi's Introduction

Mostima-koishi

主要由TypeScript编写,基于go-cqhttpkoishi框架的舟游bot

启动

git clone https://github.com/werifu/Mostima-koishi.git

npm i

首先需要go-cqhttp服务器处于运行状态,能正确接收消息,并且将event上报给koishi

改名:private_config.sample.ts => private_config.ts

修改其中的配置

创建pictures、illusts、records文件夹

需要自己的推特开发者token

# 启动koishi
ts-node app.ts

DONE

  • 发饼 bilibili

    抓取方舟b站动态,主动轮询b站动态,发新动态时会推送至群里。

    !新饼 [0~9]
    // 支持0~9的索引,默认为0(其实可以超过9但是我写死了XD)
    // 支持全角!和半角!
    
  • 语音 voice

    随机干员语录,数据来自https://github.com/Kengxxiao/ArknightsGameData和[PRTS wiki](prts.wiki)

    语音 [角色名] [中文|日文|方言]
    

    参数可选,默认随机

    语音文件如:夕的语音

  • 搜图

    搜图
    

    使用koishi现成轮子

  • 推特关注

    !twi-list // 查看关注列表
    !twi-sub @twitter_id [--ark]  // 带--ark参数只转发带方舟tag的图,@后为推特的username(而不是昵称)
    !twi-td @twitter_id   // 退订
    !twitter // 打开help
    

    使用推特开发者平台的HTTP2 rule stream实现

    自己维护了规则

  • 来点色图(非R18)

    来点色图
    

    从推特历史图库里找

  • chatGPT

    小莫,xxxxx
    

    xxxxx 即为你想问的

TODO

[ ] 容器化 // 现在是用systemd跑的(懒得更了

mostima-koishi's People

Contributors

dependabot[bot] avatar werifu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.