Closed ineptvirus closed 6 years ago
Fixed the issue by resetting owner ID and channel settings in \discord_client\config.py to the following;
from configparser import SafeConfigParser
import common
config = SafeConfigParser()
bot_token = "REDACTED"
discord_playing = "playing with AI"
owner_ids = []
command_alias = "#"
discord_channels = []
discord_markov_channels = []
chat_to_console = None
#TODO: config.has_section, sanity checks
Works fine now.
config.py
isn't meant to be altered, it's just code. More complex to configure properly (as you discovered) and can get overwritten if the file is updated later so all the configuration is done through .cfg files.
Settings should go in config.cfg
and be placed in the config
directory. You can rename config.cfg.example
and modify that or build one on your own. Any settings you don't specify will be taken from defaults.cfg
when the script runs.
Edit: It's .cfg files, not .ini
Hi
Running the client I am presented with the following lines on startup:
The arrow is pointing to the s on the end of alias btw.
I thought okay lets have a look at the \discord_client\config.py file it looks like it is trying to load, I have it setup as follows with the bot info taken out:
The error occuring on command alias, I changed the previous line to; owner_ids = ["Ineptvirus#1337"]
I think this fixes it because it passes that line but then it gets stuck on line 9 next time I run it with the following error:
Not sure where to go from here.
Edit: I changed owner ID to = 0 Just like in defaults. And when run again I get the second error (line 9, general is not defined)