memes.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:dogbot 作者: slice 项目源码 文件源码
def handicapped(self, ctx, image_source: converters.Image, *, text: commands.clean_content):
        """Sir, this spot is for the handicapped only!..."""
        await Meme.recipe(ctx, {
            'image': 'resources/memes/handicap.png',
            'render_as': 'handicapped.png',
            'cache': [(image_source, (80, 80))],
            'steps': [
                {'text': text, 'x': 270, 'y': 310, 'max_width': 270},
                {'place': (image_source, (373, 151))},
                {'place': (image_source, (302, 408))},
                {'place': (image_source, (357, 690))}
            ]
        })
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号