Comments (5)
@plutobell 如下
[config] key=14***5655:AAG****ti9T_c7***kvnxxHc*****X3lnPA pool_size=40 //the thread pool size, default 40, range(1, 101) webhook=False cert_pub=your public certificate dir //Optional while webhook is False server_ip=your server ip address //Optional while webhook is False server_port=your server port //Optional while webhook is False local_address=webhook local address //Optional while webhook is False local_port=webhook local port //Optional while webhook is False root=1319085567 debug=False timeout=60 plugin_dir=your plugin dir //[Optional]
在Windows环境下,默认配置文件路径为用户目录下的 .teelebot 文件夹,请检查该路径下是否具有正确的配置文件。
若需要手动指定配置文件,请使用命令行参数 -c/--config
from teelebot.
* Python 版本:Python 3.9.0 * requests 已安装,.config.cfg 已配置
PS C:\Users\Scvoet\Desktop\dev\Python\teelebot> python -m teelebot Traceback (most recent call last): File "D:\Scoop\apps\python\current\lib\runpy.py", line 188, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "D:\Scoop\apps\python\current\lib\runpy.py", line 147, in _get_module_details return _get_module_details(pkg_main_name, error) File "D:\Scoop\apps\python\current\lib\runpy.py", line 111, in _get_module_details __import__(pkg_name) File "C:\Users\Scvoet\Desktop\dev\Python\teelebot\teelebot\__init__.py", line 13, in <module> bot = Bot() File "C:\Users\Scvoet\Desktop\dev\Python\teelebot\teelebot\teelebot.py", line 39, in __init__ self.config = config() File "C:\Users\Scvoet\Desktop\dev\Python\teelebot\teelebot\handler.py", line 51, in config options = conf.options("config") File "D:\Scoop\apps\python\current\lib\configparser.py", line 675, in options raise NoSectionError(section) from None configparser.NoSectionError: No section: 'config' Exception ignored in: <function Bot.__del__ at 0x000002B338B79040> Traceback (most recent call last): File "C:\Users\Scvoet\Desktop\dev\Python\teelebot\teelebot\teelebot.py", line 70, in __del__ self.__thread_pool.shutdown(wait=True) AttributeError: 'Bot' object has no attribute '_Bot__thread_pool'
请脱敏后贴上配置文件内容
from teelebot.
@plutobell 如下
[config]
key=14***5655:AAG****ti9T_c7***kvnxxHc*****X3lnPA
pool_size=40 //the thread pool size, default 40, range(1, 101)
webhook=False
cert_pub=your public certificate dir //Optional while webhook is False
server_ip=your server ip address //Optional while webhook is False
server_port=your server port //Optional while webhook is False
local_address=webhook local address //Optional while webhook is False
local_port=webhook local port //Optional while webhook is False
root=1319085567
debug=False
timeout=60
plugin_dir=your plugin dir //[Optional]
from teelebot.
文件夹命名缺少了一个 e
,感谢
from teelebot.
文件夹命名缺少了一个
e
,感谢
from teelebot.
Related Issues (4)
- config.cfg内的your key还有your user id分别指的是什么 HOT 1
- 您好,想咨询一个问题 HOT 1
- 来自 tg ”树莓派“的问候! HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teelebot.