Giter Site home page Giter Site logo

littlefish's Introduction

littlefish

Release License Maintainability

A bot for the Minesweeper League app. See \docs folder or visit here for more details.

Happy fishing ^_^

littlefish's People

Contributors

dependabot[bot] avatar t0nyx1ang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fossabot

littlefish's Issues

universal_id 修改格式

为了将一部分目前用于群聊的指令推广到私聊,而 universal_id 目前只支持群聊模式,因此代码中的 universal_id 需要进行相应更改。后续将会实现一个 universal_id 相关的类,包含构造 id,序列化与反序列化 id 方法。

[Future] 小鱼模块分离计划

随着代码量增多,我觉得是时候对小鱼的功能进行一个分离,以方便其它用户进行相应的编写和调用。

以下是准备进行的改进

  • 将以下模块拆分为独立模块:

    • 数据库 littlefish._db module -> littlefish_database package
    • 权限控制 littlefish._policy module -> littlefish_policy package
    • 42点 littlefish._game.ftpts module -> littlefish_ftptsgame package,并与42点的核心模块合并
  • 将以下模块改为依赖模块:

    • 语言功能 littlefish._exclaim module -> littlefish_exclaim package
    • 联萌相应功能 littlefish._mswar module -> littlefish_LoM package
  • 前后端:

    • 机器人不再唯一依赖go-cqhttp作为其后端,可以在QQ以外的群组与个人使用
    • 设计独立的前端,不使用nonebot_test_plugin作为依赖

小鱼的小游戏征集区

猜bv小游戏:
规则: 猜(一次机会),开格子(多次机会但是同一人不能连续), 猜中者胜
积分: 剩余未打开方格数*100/玩家开格子的次数向下取整

[Feature] Inclusion of anchor events

为了使小鱼具备跨平台广播的能力,目前想到的一个方案是:锚点事件
选定一个事件作为广播的锚点,这样可以基于这个事件的响应创建相应的广播。

Use poetry instead of pip in the future

Poetry is a good tool for virtual environments, so littlefish will use poetry in the future. However, the versioning of nonebot2 is slightly incompatible with poetry's semantic versioning. I will consider using poetry in the future if the problem is resolved.

图像发送功能导致阻塞

因为群里面可能出现抽风,图片发不出去的话,很多需要图片的功能都会阻塞掉,现在计划采用一个触发器来专门发送图片,来缓解阻塞的问题。

[Feature Request] 联萌推送功能

小鱼实现一个api,接受联萌服务器的记录推送。

该推送拟实现为一个消息队列,根据FIFO的顺序将消息推送至群里。

联萌全用户数据库与全录像数据库获取的问题

这个功能其实以前就想写,因为可以根据这些数据库写出很多“奇奇怪怪”的分析功能,但是数据库的生成并非易事。目前的想法是:
首先获得联萌的全部录像数据,根据录像的数据库构建用户的数据库(这个过程是本地进行的),录像数据的起点是(recordID=68),第一次获取的终点是前一天的23:59:59:999包含的所有录像,以后的录像采用增量更新,每天更新一次,这样数据量不会太大。

p.s. 如果使用了录像数据库,与之相关功能的使用肯定会存在不同步的问题。
p.p.s 有更好的想法也可以提在这里。

[Notice] 永久停止服务说明

由于小鱼的上游服务 go-cqhttp 已经可以被迅速检测,且相关备用方案已经全部失效,目前小鱼永久停止服务。
这段期间内,如果有时间,我会对代码进行一些修改和重构,以适应最新的 Onebot 标准和 nonebot2 语法,同时尽量方便代码在多个聊天平台间的迁移工作。

机器人支持自动重启

最近小鱼在go-cqhttp端常常出现锁死,为了不频繁访问服务器,建议支持自动重启功能。

功能:在小鱼因为websocket error无法发送消息达到一定次数时,自动重启go-cqhttp端。

搜索功能的更新

现在的搜索功能总是让人觉得不太强,只有一个id查询,以后希望能把查询和排名功能结合起来,做到查某个榜的某一名(其实已经有雏形了),同时也对代码进行一些重构。

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.