Commit Graph

64 Commits

Author SHA1 Message Date
3f46c7fc9d refactor: replace config command with perm and move permissions to db 2025-12-15 23:49:09 +08:00
175193c606 refactor: replace PostgreSQL with SQLite database 2025-12-15 23:12:41 +08:00
5fbc83be54 refactor: replace the bot framework with github.com/awfufu/qbot 2025-12-15 20:11:54 +08:00
abbe419bf8 refactor: replace WebSocket with bidirectional HTTP for NapCat communication
refactor: migrate command handling from function pointers to object-oriented interface
feat: replace run.sh with YAML-based configuration file
v0.1.1
2025-10-31 20:30:39 +08:00
f54f04d287 refactor: update prompt
feat: add new cq code
2025-09-29 10:56:04 +08:00
9506a1d2ee feat: add legacy game 2025-09-29 10:53:25 +08:00
ac4b92c043 feat: add which cmd 2025-09-27 13:36:09 +08:00
443c2256a2 refactor: delete stock cmd; use qwen-image model for draw 2025-09-27 13:12:51 +08:00
f4c3c9d58c fix: silence GORM 'record not found' warnings for unconfigured RCON groups 2025-09-07 08:47:07 +08:00
e2ed340375 refactor: centralize LLM supplier config in DB and auto-switch model 2025-08-14 22:35:04 +08:00
lavacreeper
8d24be1498 fix: Prevent "无锡人" from abusing the group ban function 2025-08-11 09:58:42 +08:00
a5eba25024 feat & fix: improve Minecraft message display with enhanced tellraw formatting and fix GORM warnings 2025-08-06 18:45:36 +08:00
f95b8bfc8b feat: add RCON integration and Minecraft command system
- Add RCON configuration management with `rcon` command
- Add Minecraft command execution with `mc` command
- Add automatic message forwarding from groups to Minecraft
- Add group_rcon_configs database table for RCON settings
2025-08-06 10:08:09 +08:00
b720c05e23 feat: add info command 2025-08-06 08:58:07 +08:00
9cf9d0fbc8 feat: add memberinfo command 2025-08-05 10:00:37 +08:00
111379fbed feat: add rps and dice commands 2025-08-04 23:33:53 +08:00
0330aac5db refactor: modify sh command execution environment and access control 2025-08-04 23:12:20 +08:00
bba771e4f9 feat: add user-defined event system for custom auto-replies 2025-08-01 11:25:57 +08:00
88088d6470 feat: add example of run.sh 2025-08-01 10:19:16 +08:00
lavacreeper
6f385163a9 fix:Prevent someone from abusing this feature 2025-08-01 10:05:35 +08:00
akashi
f8516368dd fix: delete mistakenly uploaded binary files 2025-07-30 14:21:46 +08:00
AkashiNeko
db080111a1 feat: allow designated users to be set as administrators 2025-07-27 23:41:45 +08:00
AkashiNeko
8292affb7d Merge branch 'main' 2025-07-22 21:16:12 +08:00
AkashiNeko
9747c44e28 fix: optimize database performance and improve LLM reply/mention handling 2025-07-22 21:12:44 +08:00
cc
c4ce4ef2a5 Update custom_reply.go 2025-07-14 17:11:57 +08:00
AkashiNeko
f5d3fa2f90 fix: prevent panic when accessing empty message array in HandleCommand 2025-06-19 09:56:37 +08:00
氟氟
e011a7d339 Merge pull request #1 from fibiki/main
Now includes a cryptocurrency price lookup feature
2025-06-16 08:18:22 +08:00
lavacreeper
6c65d169ac fix: Improve output format 2025-06-15 23:36:47 +08:00
lavacreeper
93002f1c05 fix: change command 'er' to 'fx' 2025-06-15 23:19:21 +08:00
lavacreeper
70d3114999 feat: add command crypto 2025-06-15 17:56:10 +08:00
AkashiNeko
0d60f17491 feat: add command er and stock 2025-06-15 12:15:23 +08:00
AkashiNeko
b0051d9cff fix: include current message in LLM chat history 2025-06-14 14:59:30 +08:00
AkashiNeko
edf96d9973 feat: add draw command for image generation 2025-06-13 14:06:35 +08:00
AkashiNeko
e63b131d6c feat: enhance chat history with msg_id and improved formatting 2025-06-13 12:29:44 +08:00
AkashiNeko
20f2ccbacc feat: replace XML parsing with command-based approach and remove Grok API 2025-06-13 11:31:30 +08:00
AkashiNeko
9a61ca1d2b feat: add group essence and ban features, optimize LLM prompt
- Add group essence feature, support setting and removing essence messages; Add self-ban feature
- Optimize LLM prompt to improve conversation quality
2025-05-12 19:57:08 +08:00
AkashiNeko
c1d93e885d feat: add SiliconFlow API support 2025-04-12 11:42:26 +08:00
AkashiNeko
b446b57afd feat: optimize LLM prompts and message handling 2025-04-11 10:07:10 +08:00
AkashiNeko
d2efb0e401 fix: move gorm dependencies to direct requires
- Move gorm.io/gorm to direct requires
- Move gorm.io/driver/postgres to direct requires
2025-04-11 09:38:36 +08:00
AkashiNeko
be3214a9cb feat: add tts command 2025-04-06 23:44:24 +08:00
AkashiNeko
5592ba1b5f feat: add debug command and improve LLM functionality
- feat: add debug command for LLM configuration
- feat: implement token usage tracking for LLM
- feat: enhance LLM prompt system with XML response format
- feat: add debug mode for LLM responses
- feat: add group info persistence in LLM
- feat: add user nickname and info persistence in LLM
- refactor: update database schema for new features
2025-04-06 21:25:33 +08:00
AkashiNeko
a2922a77be feat: add callme command and refactor LLM message handling
- Add new callme command to manage user nicknames
- Move LLM message handling logic from custom_reply.go to llm package
- Improve code organization and maintainability
2025-04-01 22:49:01 +08:00
AkashiNeko
91182bb2aa feat: add configurable Grok-2 LLM support for group chat
- Add group_llm_configs table for per-group LLM settings
- Add llm command to manage group configurations:
  - llm prompt: view/set custom prompt
  - llm max-history: view/set history message limit (max 300)
  - llm enable/disable: toggle LLM feature
  - llm status: view current settings
- Integrate Grok-2 LLM with group configs in customReply
- Filter out command messages from chat history
2025-03-27 12:07:11 +08:00
AkashiNeko
a4fae9d026 fix: Fixed the issue where msg.Raw was truncated after executing the HandleCommand function 2025-03-22 19:22:47 +08:00
AkashiNeko
36d8af6057 chore: Added docker-compose.yml and init.sql 2025-03-20 00:19:06 +08:00
AkashiNeko
e1a5634509 refactor: update table structure:
- Added `content` and `is_cmd` fields to the `messages` table.
- Added the `summary` field and removed the `gender` field from the `users` table.
2025-03-20 00:18:03 +08:00
AkashiNeko
e385d0087e feat: Added delete command 2025-03-19 15:40:49 +08:00
AkashiNeko
5f321cd232 feat: Added support for reply and at ( @ ) 2025-03-18 20:32:51 +08:00
AkashiNeko
7a92de6286 feat: Using the sh command with a Docker container, making it accessible to anyone 2025-03-14 20:20:39 +08:00
AkashiNeko
386e8d45ee refactor: Added the cmds.ArgsList type to enable the cmds module to handle other types of messages 2025-03-13 15:06:10 +08:00