Skip to content

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq committed Jun 21, 2023
1 parent 13c27b1 commit 020770c
Show file tree
Hide file tree
Showing 5 changed files with 291 additions and 283 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update_poetry_lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
python-version: "3.10"

- name: Setup Poetry
uses: Gr1N/setup-poetry@v7
uses: Gr1N/setup-poetry@v8

- name: Update poetry.lock
run: poetry update --lock
Expand Down
13 changes: 8 additions & 5 deletions nonebot_plugin_oddtext/__init__.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
import traceback

from nonebot import on_command
from nonebot.adapters import Message
from nonebot.log import logger
from nonebot.matcher import Matcher
from nonebot.adapters import Message
from nonebot.typing import T_Handler
from nonebot.params import CommandArg
from nonebot.plugin import PluginMetadata
from nonebot.typing import T_Handler

from .data_source import commands, Command

from .data_source import Command, commands

__plugin_meta__ = PluginMetadata(
name="文本生成器",
description="抽象话等多种文本生成",
usage=f"{'/'.join(sum([list(command.keywords) for command in commands], []))} + 文本",
type="application",
homepage="https://github.com/noneplugin/nonebot-plugin-oddtext",
supported_adapters=None,
extra={
"unique_name": "oddtext",
"example": "抽象话 那真的牛逼",
"author": "meetwq <meetwq@gmail.com>",
"version": "0.1.1",
"version": "0.2.0",
},
)

Expand Down
9 changes: 4 additions & 5 deletions nonebot_plugin_oddtext/data_source.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import math
import random

from dataclasses import dataclass
from typing import Tuple, Protocol
from typing import Protocol, Tuple

from .flip import flip_table
from .cxh import emoji, pinyin
from .bug import bug_code, bug_level
from .hxw import enchars, encharhxw, ftw, hxw, jtw
from .cxh import emoji, pinyin
from .flip import flip_table
from .hxw import encharhxw, enchars, ftw, hxw, jtw


def cxh_text(text: str) -> str:
Expand Down
Loading

0 comments on commit 020770c

Please sign in to comment.