GithubHelp home page GithubHelp logo

Comments (4)

duoshoumiao avatar duoshoumiao commented on July 4, 2024

有报错了
[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!

from headimg_generator.

Lanly109 avatar Lanly109 commented on July 4, 2024

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

from headimg_generator.

duoshoumiao avatar duoshoumiao commented on July 4, 2024

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

👌

from headimg_generator.

kcn3388 avatar kcn3388 commented on July 4, 2024

Complete in #47

from headimg_generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.