<p>这是我第一次在网上找不到解决问题的方法。
我一直在尝试恢复我的一个旧的Discord Bot,它是用Python编写的,经过大量的故障排除,这是我无法解决的最后一个错误:</p>
<pre><code>Traceback (most recent call last):
File "Bot.py", line 72, in <module>
bot = bot()
File "Bot.py", line 54, in __init__
self.token = config.get('BotValues', 'token')
File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\configparser.py", line 781, in get
d = self._unify_values(section, vars)
File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\configparser.py", line 1149, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'BotValues'
</code></pre>
<p>据我所知,在安装过程中似乎丢失了一个文件,所以我第二次尝试将所有内容更新,但这并没有改变问题</p>