A QQ(Tencent) robot created by go-cqhttp & nonebot2

Overview

绘梨花(胶布)Bot|ErikaBot

基于NoneBot2的绘梨花多功能 Bot ,自用

快速开始

  1. 参考go-cqhttp项目文档,配置好机器人的相关设置,以及反向ws客户端
  2. 参考nonebot2项目文档,添加必要的.env相关设置
  3. 安装本项目相关的依赖库(依赖清单
  4. git clone本项目,在项目目录下nb run运行机器人即可

功能清单

0.绘梨花特性

嘲讽

命令(注意是中文逗号):

嘲讽 [语句A],[语句B]

返回:

仅凭借[语句A],古户绘梨花便能[语句B]到这种程度,如何呀,诸位~

互动

尝试@本bot或者戳一戳本bot即可

如何添加/删除@之后的回复
add Erika嘴臭 '[需要添加的语录]'
del Erika嘴臭 '[需要添加的语录]'

1.语录放送

基于sqlite3轻量数据库的自定义语录放送功能

发送语录

[语录名称]语录

通过上述命令直接触发随机语录。其中,[语录名称]是用于检索的关键词,如:

发送命令:战人语录,如果数据库中已有该语录,则可以在存入的语录中随机发送一条

添加语录

add [语录名称]语录 '[需要加入该语录的内容,可以是图片/表情等]'

删除语录

del [语录名称]语录 '[需要加入该语录的内容,可以是图片/表情等]'

设置对指定群不可见

只对SUPERUSERS的命令进行响应

lock to [语录名称]语录
unlock to [语录名称]语录

设置宏观触发

只对SUPERUSERS的命令进行响应

update rule [语录名称]语录

开启该功能后可以不用加上后缀语录,并且只要一句话中含有[语录名称]即可触发,如:

发送一句话我真的好喜欢战人呀~,机器人检索到战人二字后,会随机发送一句隶属于战人迫害语录中的一句话。

由此可见,对于宏观触发的语录,需要在创建时使用[语录名称]迫害语录进行追加

2.推特更新推送

基于phantomjs进行爬虫实现

原项目地址:nonebot-twitter

本功能可实现对关注列表中的对象进行实时监控,一旦发送推文立刻到指定群里进行转发提醒(每个群可独立设置关注名单)

只对SUPERUSERSADMIN的命令进行响应

@[bot] 关注列表
@[bot] 给爷关注 [推特ID]
@[bot] 取关 [推特ID]

3.倒计时

每天8点自动提醒相关考试或日程的剩余天数

也可以通过倒计时考试等命令触发

4.奥利奥

原项目地址:Oreoooo

通过命令触发:

来点/来一份/order ['奥'和'利'的组合词(超过一个字)] 

效果展示:

注:输入奥利给或者字串超过50字有彩蛋

5.美图分享

You might also like...
TG-Url-Uploader-Bot - Telegram RoBot to Upload Links

MW-URL-Uploader Bot Telegram RoBot to Upload Links. Features: 👉 Only Auth Users

Okaeri Robot: a modular bot running on python3 with anime theme and have a lot features
Okaeri Robot: a modular bot running on python3 with anime theme and have a lot features

OKAERI ROBOT Okaeri Robot is a modular bot running on python3 with anime theme a

Robot Swerve Test Public With Python

Robot-Swerve-Test-Public The codebase for our swerve drivetrain prototype robot.

ShotsGram - For sending captures from your monitor to a telegram chat (robot)

ShotsGram pt-BR Envios de capturas do seu monitor para um chat do telegram. Essa

⚡ Yuriko Robot ⚡ - A Powerful, Smart And Simple Group Manager Written with AioGram , Pyrogram and Telethon

⚡ Yuriko Robot ⚡ - A Powerful, Smart And Simple Group Manager Written with AioGram , Pyrogram and Telethon

An Open-Source Discord bot created to provide basic functionality which should be in every discord guild. We use this same bot with additional configurations for our guilds.

A Discord bot completely written to be taken from the source and built according to your own custom needs. This bot supports some core features and is

Discord ToolBox is a discord bot developed by DJD320 created for the purpose of having some convenient tools in the form of a single bot.

Discord ToolBox Discord ToolBox is a discord bot developed by DJD320 created for the purpose of having some convenient tools in the form of a single b

Robocord is a bot created for the Pycord community.
Robocord is a bot created for the Pycord community.

Robocord is a bot created for the community of the Pycord Server. Just a bot created for Pycord Server. You can start pull requests, I will check it and if its good I will add it to the bot. 👍

The public discord bot, created by: primitt, further developed by: duino-coin team.
The public discord bot, created by: primitt, further developed by: duino-coin team.

Duino Stats Mini A public Duino-Stats Discord bot. Click this link to invite the bot to your server. License Duino Stats Mini distributed under the MI

Comments
  • 修复胶布特性:红色真实

    修复胶布特性:红色真实

    合适的显示方法:xml卡片 实现。

    @red_true.handle()
    async def handle(bot: Bot, event: Event, state: T_State):
        msg = state["_matched_groups"]
        rgb_dirc = {'虚妄':'#ffffff','红色':'#ff6347','蓝色':'#7f00ff','金色':'#d9d919'}
        color = rgb_dirc['虚妄']
        for i in msg:
            if i in ['虚妄','红色','蓝色','金色']:
                color = rgb_dirc[i]
                pass
            elif i != None and i != msg[-1]:
                color = i
                pass
        msg = msg[-1]
        if event.get_user_id() not in ['1364374624','2450509502'] and color == '#d9d919':
            await red_true.finish(Message('GameMaster岂是你能冒充的?'))
        send_msg = [{'type':'xml','data':{}}]
        data = f'''<?xml version='1.0' encoding='UTF-8' standalone='yes' ?><msg serviceID="1" templateID="-1" action="plugin" a_actionData="" brief="[真实]{msg}" sourceMsgId="0" url="" flag="2" adverSign="3" multiMsgFlag="0"><item layout="9" bg="2" advertiser_id="0" aid="0"><picture cover="https://cdn.jsdelivr.net/gh/SlieFamily/TempImages@main//Auto/erika_logo.png" w="0" h="0" /></item><item layout="6" advertiser_id="0" aid="0">
    <summary size="100" color="{color}">{msg}</summary></item><source name="" icon="" action="" appid="-1" /></msg>'''
        send_msg[0]['data']['data'] = data
        await red_true.finish(Message(send_msg))
    bug 
    opened by SlieFamily 1
  • 骰娘

    骰娘

    https://v2docs.kokona.tech/zh/latest/User_Manual.html#r 参考 最简单的先来吧比如用法:.r [掷骰表达式] ([掷骰原因]) 或.r [掷骰原因] [掷骰表达式]:([掷骰次数]#)[骰子个数]d骰子面数(p[惩罚骰个数])(k[取点数最大的骰子数])

    New features 
    opened by EPKFG 2
  • 增加 呼吸系统(即生气情绪)

    增加 呼吸系统(即生气情绪)

    • [ ] 建立用户表(name,id,degree,isblack)

    • [ ] 嵌入到users-time.db数据库中

    • [ ] 扩展原timer.py插件,以包的形式添加model.py完成数据库操作的API

    • [ ] 以try的方式对现有其他插件引入API

    • [ ] 在新的倒计时插件中,编写逻辑使得isblack能够定时变化

    • API包括:

      • 根据ID返回isblack的状态
      • 增加激怒度:根据ID使对应degree自增
      • 拉黑:根据ID使isblack = 1
      • Master根据ID一键解除 (即isblack = 0 && degree = 0
      • 更换用户名(update userlist set name = 'xxx' where name = 'xxx
      • 返回黑名单(select name,id from userlist where isblack=1
    New features 
    opened by SlieFamily 0
Owner
null
A little proxy tool based on Tencent Cloud Function Service.

SCFProxy 一个基于腾讯云函数服务的免费代理池。 安装 python3 -m venv .venv source .venv/bin/activate pip3 install -r requirements.txt 项目配置 函数配置 开通腾讯云函数服务 在 函数服务 > 新建 中使用自定义

Mio 716 Dec 26, 2022
Go-cqhttp Plugin for EFB QQ Slave.

efb-qq-plugin-go-cqhttp efb-qq-plugin-go-cqhttp 是 efb-qq-slave 的插件,需要配合 efb-qq-slave 使用,使用前请先阅读 efb-qq-slave 的文档。

XYenon 26 Dec 11, 2022
go-cqhttp API typing annoations, return data models and utils for nonebot

go-cqhttp API typing annoations, return data models and utils for nonebot

风屿 6 Jan 4, 2023
Nonebot2 简易群管

简易群管 ✨ NoneBot2 简易群管 ✨ _ 踢 改 禁 欢迎issue pr 权限说明:permission=SUPERUSER 安装 ?? pip install nonebot-plugin-admin 导入 ?? 在bot.py 导入,语句: nonebot.load_plugin("n

幼稚园园长 74 Dec 22, 2022
Monitor robot of Apple Store's products, using DingTalk notification.

概述 本项目应用主要用来监测Apple Store线下直营店货源情况,主要使用Python实现。 首先感谢iPhone-Pickup-Monitor项目带来的灵感,同时有些实现也直接使用了该项目的一些代码。 本项目在iPhone-Pickup-Monitor原有功能的基础上去掉了声音通知,但添加了多

Lennon Chin 159 Dec 9, 2022
An Open Source ALL-In-One Telegram RoBot, that can do lot of things.

An Open Source ALL-In-One Telegram RoBot, that can do lot of things.

JOBIN 0 Dec 1, 2021
An Open Source ALL-In-One Telegram RoBot, that can do lot of things.

URL Uploader Bot An Open Source ALL-In-One Telegram RoBot, that can do lot of things. My Features Installation The Easy Way You can also tap the Deplo

NT BOTS 1 Oct 23, 2021
An inline real-time media searching robot without any database.

MediaBuddy A Telegram Inline media searching robot without any database. About mediaBuddy is an inline media searching robot. If you have so many movi

Renjith Mangal 28 Oct 21, 2022
Robot to convert files to direct links, hosting files on Telegram servers, unlimited and without restrictions

stream-cloud demo : downloader_star_bot Run : Docker : install docker , docker-compose set Environment or edit Config/init.py docker-compose up Heroku

null 53 Dec 21, 2022
DonLee Robot

?? ?????? ?????? ?????????? ???? ?? ?? Hey Muhammed, Iam DonLee RoBoT Make me an admin for your group and channel then connect me.... ?? ?? To build a

Muhammed 27 Dec 1, 2022