2023-05-06 21:55:00 +00:00
|
|
|
from bot.targets import Targets
|
|
|
|
|
|
|
|
from bot.yomichan.exporters.export import JitenonKokugoExporter
|
|
|
|
from bot.yomichan.exporters.export import JitenonYojiExporter
|
|
|
|
from bot.yomichan.exporters.export import JitenonKotowazaExporter
|
|
|
|
from bot.yomichan.exporters.export import Smk8Exporter
|
|
|
|
from bot.yomichan.exporters.export import Daijirin2Exporter
|
|
|
|
|
|
|
|
|
2023-07-08 21:49:03 +00:00
|
|
|
def new_yomi_exporter(target):
|
2023-05-06 21:55:00 +00:00
|
|
|
exporter_map = {
|
|
|
|
Targets.JITENON_KOKUGO: JitenonKokugoExporter,
|
|
|
|
Targets.JITENON_YOJI: JitenonYojiExporter,
|
|
|
|
Targets.JITENON_KOTOWAZA: JitenonKotowazaExporter,
|
|
|
|
Targets.SMK8: Smk8Exporter,
|
|
|
|
Targets.DAIJIRIN2: Daijirin2Exporter,
|
|
|
|
}
|
|
|
|
return exporter_map[target](target)
|