Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deepred5/yande-telegram-bot
🔞 yande.re telegram bot
https://github.com/deepred5/yande-telegram-bot
telegram-bot yande
Last synced: about 2 months ago
JSON representation
🔞 yande.re telegram bot
- Host: GitHub
- URL: https://github.com/deepred5/yande-telegram-bot
- Owner: deepred5
- Created: 2019-03-30T08:10:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T17:43:25.000Z (about 2 years ago)
- Last Synced: 2024-04-16T15:43:33.053Z (8 months ago)
- Topics: telegram-bot, yande
- Language: JavaScript
- Homepage: https://t.me/yande5_bot
- Size: 146 KB
- Stars: 23
- Watchers: 4
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yande-telegram-bot
### [yande5_bot](https://t.me/yande5_bot)
Telegram搜索`@yande5_bot`或点击这里[yande5_bot](https://t.me/yande5_bot)
使用方法:
* /latest 3 获取最新3张图片
* /popular 1d(1d/1w/1m/1y) 获取1天(天/周/月/年)的popular图片
* /random 3 获取随机3张图片
* /tag bra 3 获取标签为bra的3张图片
* /help 帮助信息
* /about 关于
* /start 开始使用### [dailyYande](https://t.me/dailyYande)
Telegram搜索`@dailyYande`或者点击这里[dailyYande](https://t.me/dailyYande)
使用`@yande5_bot`机器人管理`@dailyYande` channel
每晚20:00准时发送当日popular图片,每周日21:00准时发送本周popular图片
### 部署
参考[从零开始写一个Telegram Bot](http://anata.me/2019/03/30/%E4%BB%8E%E9%9B%B6%E5%BC%80%E5%A7%8B%E5%86%99%E4%B8%80%E4%B8%AATelegram-Bot/#%E7%BA%BF%E4%B8%8A%E9%83%A8%E7%BD%B2)`config.js`
```javascript
module.exports = {
token: '你的token',
socksPassword: '本地开发时的ss梯子密码',
url: 'webhook模式下的转发地址',
port: 'webhook模式下express监听端口',
myId: '用户Id',
dailyYandeChannelId: '频道Id' // 需要bot为该频道的管理员
}
````nginx配置`
```conf
# 代理yande bot
location /bot${你的token} {
proxy_pass http://127.0.0.1:9000; # 对应config.js里面的port端口
proxy_http_version 1.1;
proxy_set_header X_FORWARDED_PROTO https;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
}
````pm2启动`
```bash
pm2 start start.json
```