Skip to content

Commit

Permalink
feat(coffeeani): Spin off korean_romanizer
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeebank committed Mar 23, 2024
1 parent b3cc54b commit a3e3d1e
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 253 deletions.
24 changes: 0 additions & 24 deletions coffeeani/coffeeani.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ async def manga(self, ctx, *, title):
To search by source, use:
- `[p]anilist manga`
- `[p]batoto`
- `[p]kakao`
- `[p]mangadex`
"""
msg = await ctx.send(embeds=[discord_embed_source(NAME_ANILIST, COLOR_ANILIST)])
Expand Down Expand Up @@ -155,26 +154,3 @@ async def batoto(self, ctx, *, title):
if embeds:
return await ExtendedSimpleMenu(pages=embeds, timeout=90).replace(ctx, msg)
return await msg.edit(embeds=[discord_embed_source(None)])

@commands.hybrid_command()
@app_commands.describe(title="Search Kakao for manhwa")
@commands.bot_has_permissions(embed_links=True, add_reactions=True)
async def kakao(self, ctx, *, title):
"""Search Kakao
Search Kakao Webtoons for manhwa. Korean version only.
> ✅ 공주
"""
msg = await ctx.send(embeds=[discord_embed_source(NAME_KAKAO_WEBTOON, COLOR_KAKAO)])
# TODO: Add DeepL translation for EN -> KO
# if title.startswith('"') and title.endswith('"') and len(title) > 2:
# title = title[1:-1]
# elif title.isascii():
# translated = await translate_deepl(self, title, "EN", "KO")
# if translated:
# title = translated
embeds = await discord_kakao_embeds(self, title)
if embeds:
return await ExtendedSimpleMenu(pages=embeds, timeout=90).replace(ctx, msg)
return await msg.edit(embeds=[discord_embed_source(None)])
6 changes: 0 additions & 6 deletions coffeeani/coffeeani_utils/sources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
discord_batoto_embeds
)

from .kakao_discord import (
NAME_KAKAO_WEBTOON,
COLOR_KAKAO,
discord_kakao_embeds
)

from .mangadex_discord import (
NAME_MANGADEX,
COLOR_MANGADEX,
Expand Down
176 changes: 0 additions & 176 deletions coffeeani/coffeeani_utils/sources/kakao.py

This file was deleted.

43 changes: 0 additions & 43 deletions coffeeani/coffeeani_utils/sources/kakao_discord.py

This file was deleted.

6 changes: 3 additions & 3 deletions coffeeani/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"name" : "coffeeani",
"disabled" : false,
"hidden" : false,
"requirements" : ["aiohttp", "korean_romanizer"],
"description": "Search anime, manga, manhwa/manhua, light novels, and characters. See series info, status, episodes/chapters, and tags.\n\nSearches Anilist, MangaDex, Batoto, and Kakao Webtoon.\n\nForked from anisearch by Jintaku and Wyn.",
"requirements" : ["aiohttp"],
"description": "Search anime, manga, manhwa/manhua, light novels, and characters. See series info, status, episodes/chapters, and tags.\n\nSearches Anilist, MangaDex, and Batoto.\n\nForked from anisearch by Jintaku and Wyn.",
"short": "Search for anime, manga, manhwa/manhua, light novels, and characters. See series info, status, episodes/chapters, and tags.",
"install_msg" : "Thanks for installing, I hope you enjoy :) To stay up to date with breaking changes, you might want to join my Support Discord. To find documentation, Discord, and more, drop by my site at https://coffeebank.github.io/coffee-cogs/coffeeani/",
"tags" : ["anime", "manga", "anilist", "myanimelist", "漫画", "만화", "漫画", "mangadex", "batoto", "kakao", "webtoons", "anisearch"],
"tags" : ["anime", "manga", "anilist", "myanimelist", "漫画", "만화", "漫画", "mangadex", "batoto", "webtoons", "anisearch"],
"permissions": ["add_reactions", "embed_links"],
"end_user_data_statement": "This cog does not persistently store data or metadata about users.",
"min_bot_version": "3.5.0"
Expand Down
2 changes: 1 addition & 1 deletion coffeeani/tests/test_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from unittest.mock import patch, Mock
import asyncio

from coffeeani_utils.sources import anilist, batoto, kakao, mangadex
from coffeeani_utils.sources import anilist, batoto, mangadex

LOREM_IPSUM = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

Expand Down

0 comments on commit a3e3d1e

Please sign in to comment.