diff --git a/.gitignore b/.gitignore index 0d6cd81af1cfc674acbb7bc3f24ba3d85c5ed9ce..8a62def9d07df3bf108929cc62dabeb9d6c74122 100644 --- a/.gitignore +++ b/.gitignore @@ -108,3 +108,6 @@ venv.bak/ .mypy_cache/ .dmypy.json dmypy.json + +#Pycharm +.idea \ No newline at end of file diff --git a/README.md b/README.md index 728a4eb21810f59adcdec0e5436d5abaf439a309..fa207eabd3be9c237eaf2f496435bc3ccdb67d10 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,19 @@ # Countdown-Bot #### 项目介绍 + QQ群倒计时bot. #### 软件架构 + 本程序为后端. 前端为Coolq. - #### 安装教程 前置需求: + - Coolq - Python3.5+ - cqhttp (使用pip安装) @@ -19,12 +21,21 @@ QQ群倒计时bot. #### 使用说明 - 运行方式:使用python运行main.py + - 可以在config.py修改配置 + - 在有该bot的群里输入/help查看帮助 #### 参与贡献 1. Fork 本项目 + 2. 新建 Feat_xxx 分支 + 3. 提交代码 + 4. 新建 Pull Request + +## LICENSE + +[GPL-3.0](LICENSE) \ No newline at end of file diff --git a/commands.py b/commands.py index 5599345bebb1b0a1f264b2bb0aaae1787a0ded11..2844ea907d9b9b14936b0b70c8b8f8e24c30a357 100644 --- a/commands.py +++ b/commands.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 +# -*- coding: UTF-8 -*- + from main import * diff --git a/config_default.py b/config_default.py index 373757cd421a89a02c693b3840d80bcc8648974f..eab166a7d77f77f7017eaae69bba6532759f06ab 100644 --- a/config_default.py +++ b/config_default.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 +# -*- coding: UTF-8 -*- # coolq HTTP API的监听地址 API_URL = "http://127.0.0.1:5001/" # 访问密钥 diff --git a/events.py b/events.py index ade471a414b4ac1c8d032ba2a0ac09e800c041a6..b380712480c06af11d56fa465b1beb5a1c166912 100644 --- a/events.py +++ b/events.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 +# -*- coding: UTF-8 -*- + from main import message_listener,config from cqhttp import CQHttp from util import print_log diff --git a/main.py b/main.py index e9052626df11c050f8970f6870566e7245cec29b..e9a6fa27c41041ce8fa675772bfcda4d3be2d103 100644 --- a/main.py +++ b/main.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 +# -*- coding: UTF-8 -*- + from cqhttp import CQHttp try: diff --git a/oierdb.py b/oierdb.py index 56fab2d12f7dfbcb596fa416fb80455fe7380aea..84b6f6fe164b8f7654407cadf380c4f038b16723 100644 --- a/oierdb.py +++ b/oierdb.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 +# -*- coding: UTF-8 -*- + from urllib.request import urlopen # from bs4 import BeautifulSoup import urllib diff --git a/python_runner.py b/python_runner.py index a840fd9209cd12c5b775509faa7db75c6249385c..e47233d0c562c0b4ad39a4774183025c64997eaa 100644 --- a/python_runner.py +++ b/python_runner.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 +# -*- coding: UTF-8 -*- + import docker import os import tempfile diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..4b56c9f86686404ddc8261e602c59e833b58a5e9 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +cqhttp +docker +urlopen +CQHttp \ No newline at end of file diff --git a/requires.txt b/requires.txt deleted file mode 100644 index 2d97d29b7390b3824a998978ea9332fff45377e7..0000000000000000000000000000000000000000 --- a/requires.txt +++ /dev/null @@ -1,2 +0,0 @@ -urllib2 -cqhttp \ No newline at end of file