java开发qq群机器人_一个可扩展、可部署的QQ群机器人。

Avalon是一个可扩展的多功能QQ和Discord群组机器人。它基于CoolQ-HTTP-API支持QQ,基于JDA支持Discord,并通过Mojo-Weixin与微软小冰连接。功能包括自然语言问答、消息记录和引用、构建状态通知、在线代码执行、RSS更新通知等。此外,Avalon还支持通过MessageHook和Plugin添加新功能。
摘要由CSDN通过智能技术生成

Avalon v1.3.1 a000b1f7aa92d89c4b68a326bb2ce202.png68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f5261792d456c646174682f4176616c6f6e2e7376673f7374796c653d736f6369616c266c6162656c3d537461727368747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f6c6c6f776572732f5261792d456c646174682e7376673f7374796c653d736f6369616c266c6162656c3d466f6c6c6f77

68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5261792d456c646174682f4176616c6f6e2f6d61737465722e7376673f7374796c653d666c61742d73717561726568747470733a2f2f696d672e736869656c64732e696f2f6170707665796f722f63692f526179456c646174682f6176616c6f6e2f6d61737465722e7376673f7374796c653d666c61742d73717561726568747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f5261792d456c646174682f4176616c6f6e2f6d61737465722e7376673f7374796c653d666c61742d73717561726568747470733a2f2f6a69747061636b2e696f2f762f5261792d456c646174682f4176616c6f6e2e7376673f7374796c653d666c61742d73717561726568747470733a2f2f736e796b2e696f2f746573742f6769746875622f7261792d656c646174682f6176616c6f6e2f62616467652e7376673f7374796c653d666c61742d737175617265

Avalon is a scalable multi-function group robot for QQ and Discord.

The support for QQ is based on CoolQ-HTTP-API, and the support for Discord is based on JDA. The connection with Microsoft XiaoIce is based on Mojo-Weixin (may not works except in China).

Functions

Note: Because Avalon is designed for QQ (an IM most of which users are Chinese) initially, and therefore some commands and functions are only available in nations and areas using Chinese.

Introduction

Natural language question answering: Avalon has been docked to Wolfram Alpha in order to provide natural language question answering service. You could use it by command avalon tell me.

Message record and quote: If configured correctly, Avalon will record every message in group(s) into a database. You can also quote message into database annually by command avalon quote.

Build status notification: When the build status for specified project(s) update, Avalon will send notification.

Execute code online: Avalon allows you to execute a piece of code by command avalon execute. 35+ programming languages supported, include Java, Rust, Ruby, JavaScript, Kotlin, C++, and so on. (served by glot.io)

Notification sent when RSS update: After enable RSS function and specified the URL(s), Avalon will send notification when these RSS update.

Scalable: Avalon allows you to add new function or feature by MessageHook or Plugin.

(Unavailable except in Chinese nations or areas) Smart reply: Avalon has been docked to Microsoft XiaoIce to privide smart reply service (just like chat bot), you could use it by command avalon answer me.

Unavailable except in Chinese nations or areas) Hitokoto: Avalon has been docked to 一言 to provide "hitokoto". You could config Avalon to send one when started or use command avalon hitokoto to get one.

...

List of commands

All commands listed below can be triggered by some particular command as long as has required permission.

❕: Admin command. Only users specficed as admin in group.json and owner could execute these commands.

❗: Owner command. Only user specified as owner in group.json could execute these commands.

⚪: Unmanagerable command. These command can not be managed by avalon manager, but can be disabled in config.json.

🔴: Basic command. These command can neither be managed by avalon manager nor disabled in config.json.

Name

Trigger command

Description

Blacklist

avalon blacklist (list OR add OR remove)

❕ List all accounts in blacklist. Add account to blacklist or remove from it.

Echo

avalon (ec OR echo)

Avalon will repeat the given sentence.

Execute

avalon (ex OR execute) {ENTER}

Execute given code and echo the return or the error message.

ExecuteInfo

avalon (exi OR execute info)

For info about code executor.

Flush

avalon flush

❕ Flush caches and delete temp files.

Heartbeat

avalon (hb OR heartbeat)

⚪ Test if Avalon still alives.

Help

avalon (hp OR help)

🔴 For help content.

Manager

avalon manager (start OR stop)

❕ To start or stop particular command responder.

Quote

avalon quote

❕ To quote message into Avalon's database.

Reboot

avalon reboot

❗ Reboot Avalon.

ShowAdmin

avalon (wia OR whoisadmin)

Show list of all admins.

Shutdown

avalon (shutdown OR exit)

❗ Shutdown Avalon.

Version

avalon (ver OR about)

🔴 Show version and related info.

Wolfram

avalon (tm OR tell me)

(Only English) Send your question to Wolfram Alpha and echo the return.

Some commands only available in particular version of Avalon. For more details, see RELEASE Notes for every RELEASE.

List of extension

All following extension are push-type, they will sent message automatically when state change detected and therefore can not be triggered by command statements.

Name

Description

BuildStatus

Notification will be sent when configured CI build state of given project update. TravisCI and AppVeyor now supported.

RSSFeeder

Message will sent when configured for RSS update.

If you want Avalon to have some new functions, welcome new issue.

Commands and extensions not work except in Chinese nations or areas may not listed. For info about these commands and extensions, see Chinese (Simplified) version of README file.

Coversation log

// TODO

Contribute 68747470733a2f2f7777772e636f64657472696167652e636f6d2f7261792d656c646174682f6176616c6f6e2f6261646765732f75736572732e7376673f7374796c653d666c61742d737175617265

Notice

Please make sure your editor support EditorConfig!

All class under package group must implements GroupMessageResponder.

Class or method that tagged as @deprecated will removed officially in the next release.

From v0.0.1, the version number will follow Semantic Versioning 2.0.0.

Todo

Configuration

See Avalon.wiki. (Only Chinese (Simplified) version provided yet ;-) )

Acknowledgement

This project is developed with IntelliJ IDEA Ultimate and the subscription is obtained freely from Jetbrains Open Source Support Program. Thanks to Jetbrains!

jetbrains-variant-4.jpg

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值