A Epic free game info plugin for Nonebot2
Project description
Nonebot Plugin EpicFree
🤖 用于获取 Epic 限免游戏资讯的 Nonebot2 插件
安装方法
nb plugin install nonebot_plugin_epicfree
# or
pip install --upgrade nonebot_plugin_epicfree
在 Nonebot2 入口文件(例如 bot.py
)增加:
nonebot.load_plugin("nonebot_plugin_epicfree")
指令详解
# nonebot_plugin_epicfree/nonebot_plugin_epicfree/__init__.py#L7
matcher = on_regex("((E|e)(P|p)(I|i)(C|c))?喜(加一|\+1)")
基于正则匹配,所以,甚至 EpIc喜+1
这样的指令都可用!(
如果你觉得不顺眼也可以自己参考 Nonebot2 文档修改下。
特别鸣谢
@nonebot/nonebot2 | @Mrs4s/go-cqhttp | @DIYgod/RSSHub | @SD4RK/epicstore_api
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_epicfree-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37174747bf4c92dbc323c77c1f6edfecb3278733f2bbc5613c84855c6c1bf268 |
|
MD5 | 57b7af927a54c8e91ce20bd77ff7ebd3 |
|
BLAKE2b-256 | d63ea6aeb7cee1a5b4b2714012fe5b6b7d484dc9e08b40bc70faabef2a69db8a |
Close
Hashes for nonebot_plugin_epicfree-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d10ddff95f0870c6c9bc768a335767c1d2742bb4090f17b5dc992624842f3e26 |
|
MD5 | 096cb0f5a8e47be1d4b6fe0abe9e0edf |
|
BLAKE2b-256 | c5398c77c6cbd49855c37eb88e5874f705d30f90437b8091ee3ecf55d66007b5 |