Giter VIP home page Giter VIP logo

tgsetubot's Introduction

我只是修改了一点点内容让它更符合我的设置,这个仓库的目的只是为了备份我的设置

自建机器人

  1. 克隆代码
  2. 在token.txt文件中填入你的机器人token,格式为:
123456:abcdefgh
  1. 自行获取pixiv的REFRESH_TOKEN,并写入pixiv_token.txt文件中,获取方法参见https://gist.github.com/upbit/6edda27cb1644e94183291109b8a5fde
  2. 安装requirements.txt中的库
  3. 运行start.py

Bot指令

  • /setu -抽取一张随机涩图~。
  • /setu_r18 -不够涩!抽取一张r18涩图。
  • /pixiv_ranking -获取p站排行榜前5名的作品;私聊中可添加参数num=?自定义数量:例:/pixiv_ranking num=3。
  • /pixiv_ranking_r18 -获取p站r18排行榜前5名的作品;私聊中可添加参数num=?自定义数量:例:/pixiv_ranking_r18 num=3。

为避免刷屏,以下命令私聊可用(注意空格):

  • /pixiv_id 插画ID -获取指定pid的全部插画。
  • /pixiv_search 关键词 -进行关键词搜索,默认获取前5个结果,可添加参数num=?自定义数量:例:/pixiv_search 猫娘 num=3。

问题

已知在非中文操作系统上运行会出现Unicode Decode错误,疑为PyTelgramBotAPI的问题,不准备修了。

鸣谢

  1. Telegram
  2. PyTelegramBotAPI
  3. cloudscraper
  4. pycharm
  5. 色图api
  6. pixiv
  7. pixivpy

打赏

如果你喜欢这个项目,请赏原作者一杯咖啡!

tgsetubot's People

Contributors

kammysuma avatar

Watchers

 avatar

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.