-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
# 好耶酱 Bot | ||
# haoYeBot | ||
|
||
由 @eatradish 所做的 Telegram Bot,基于 python-telegram-bot 框架而做,支持群标题修改,卖萌等。 | ||
a Telegram bot, base on python-telegram-bot. | ||
|
||
## VPS 上的 Systemctl 配置文件 | ||
|
||
这里我借助了 Systemd 使 Bot 作为守护进程运行 | ||
|
||
|
||
``` | ||
# mkdir /var/python | ||
# cp $LOCAL/bot.py /var/python | ||
$ cat /usr/lib/system/bot.service | ||
[Service] | ||
WorkingDirectory=/var/python | ||
ExecStart=/usr/bin/python3 bot.py | ||
User=eatradish | ||
restart=always | ||
# systemctl enable bot | ||
# systemctl start bot | ||
``` | ||
## support | ||
- change Group title | ||
- qpbd -> pqdb | ||
- BMI Calculation | ||
- ... | ||
|
||
Telegram @eatradishhaotebot |