Code Monkey home page Code Monkey logo

meme-with-qqavatar's Introduction

Meme-with-QQavatar

简介

给定一个QQ号和指令,将获取其头像,制作成为一个有趣的表情包。非常适合作为QQbot的一个功能。

功能

1641818404.12908

1641818404.1976929

1642313462.4174132

仰望大佬

1641818404.445751

打拳

1641818404.78143

1641818405.057256

1641818405.070693

摸头

1641818405.300173

摸鱼

1641818405.589279

1641818405.6541681

1641818405.9694002

1641818406.2234979

1641818406.229162

1641818406.523747

旋转

1641818406.925292

1641818407.28931

1642485824.8275259

1641818407.776714

1641818408.141077

快逃

1641818408.343437

色色

1641818408.6079512

1641818408.8851242

1641818409.1798348

1641818409.381533

1641818409.831573

1641818410.256871

捂脸

1642313467.541203

1642394725.157651

脆弱

1651169640.8554251

1658594434.612134

好玩

1659363477.034035

贴贴

1662133252.766366

1662788996.88271

致电

1669462756.662787

需要

1669396460.440392

1672900564.408156

看到

1674147404.964382

There will be more...

使用

依赖

  • requests
  • pillow

代码

testQQNum = 10000

# 格式应为:丢[@QQ号] 或者 丢QQ号
# 其中的 "丢" 表示要画 "丢" 这张图,可以换成其他指令
# 之所以支持 "[@QQ号]" 的格式是因为在大多数 qqbot 框架中,消息中的艾特是这种格式

testCommand = [
    "丢{}".format(testQQNum),
    "仰望大佬{}".format(testQQNum),
    "打拳{}".format(testQQNum),
    "打{}".format(testQQNum),
    "摸头{}".format(testQQNum),
    "摸鱼{}".format(testQQNum),
    "摸{}".format(testQQNum),
    "敲{}".format(testQQNum),
    "赞{}".format(testQQNum),
    "旋转{}".format(testQQNum),
    "吃{}".format(testQQNum),
    "吞{}".format(testQQNum),
    "咬[@{}]".format(testQQNum),
    "快逃[@{}]".format(testQQNum),
    "色色[@{}]".format(testQQNum),
    "舔[@{}]".format(testQQNum),
    "拍[@{}]".format(testQQNum),
    "爬[@{}]".format(testQQNum),
    "推[@{}]".format(testQQNum),
    "踢[@{}]".format(testQQNum),
    "捂脸[@{}]".format(testQQNum),
    "踩[@{}]".format(testQQNum),
    "脆弱{}".format(testQQNum),
    "吸{}".format(testQQNum),
    "好玩{}".format(testQQNum),
    "贴贴{}".format(testQQNum),
    "弹{}".format(testQQNum),
    "致电{}".format(testQQNum),
    "需要{}".format(testQQNum),
    "扭{}".format(testQQNum),
    "看到{}".format(testQQNum),
]

tool = DrawTool()
for command in testCommand:
    result = tool.wantDraw(command)
    if result != None:
        # 如果成功的话,将拿到一个数组,里面是每个结果图片的本地绝对路径,有的命令会生成多张图
        print(result)

感谢

pawaluodi 怕瓦落地

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.