Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

典中典无法使用,求助 #46

Closed
duoshoumiao opened this issue Sep 13, 2023 · 4 comments · Fixed by #47
Closed

典中典无法使用,求助 #46

duoshoumiao opened this issue Sep 13, 2023 · 4 comments · Fixed by #47

Comments

@duoshoumiao
Copy link

image
并没有什么实质报错记录

@duoshoumiao
Copy link
Author

有报错了
[2023-09-13 09:58:38,691 nonebot] INFO: Self: 270974535, Message 240206935 from 645364231@[群:717297973]: '表情详情 典中典'
[2023-09-13 09:58:38,691 头像表情包] INFO: Message 240206935 triggered info_cmd.
[2023-09-13 09:58:39,294 头像表情包] ERROR: <class 'meme_generator.exception.MemeGeneratorException'> occured when info_cmd handling message 240206935.
[2023-09-13 09:58:39,294 头像表情包] ERROR: Error in meme_generator: The baidu_trans_appid or baidu_trans_apikey is not set.Please check your config file!
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\HoshinoBot-master - 1\HoshinoBot-master\hoshino\msghandler.py", line 21, in handle_message
await service_func.func(bot, event)
File "C:\Users\Administrator\Desktop\HoshinoBot-master - 1\HoshinoBot-master\hoshino\modules\headimg_generator_init_.py", line 122, in info_cmd
img = await meme.generate_preview()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\meme_generator\meme.py", line 185, in generate_preview
return await _generate_preview(default_images, default_texts)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\meme_generator\meme.py", line 180, in generate_preview
return await self.call(images=images, texts=texts, args=args)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\meme_generator\meme.py", line 143, in call
return await cast(Callable[..., Awaitable[BytesIO]], self.function)(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\meme_generator\memes\dianzhongdian_init
.py", line 48, in dianzhongdian
trans = await translate(text, lang_to="jp")
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\meme_generator\utils.py", line 320, in translate
raise MemeGeneratorException(
meme_generator.exception.MemeGeneratorException: Error in meme_generator: The baidu_trans_appid or baidu_trans_apikey is not set.Please check your config file!

@Lanly109
Copy link
Owner

meme_generator插件更新了,配置方法发生了变化,具体可以参考这里,baidu的apikey在config.toml里配置,晚点我会更新下readme

@duoshoumiao
Copy link
Author

meme_generator插件更新了,配置方法发生了变化,具体可以参考这里,baidu的apikey在config.toml里配置,晚点我会更新下readme

👌

@kcn3388
Copy link
Contributor

kcn3388 commented Oct 18, 2023

Complete in #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants