Operating System: Ubuntu 20.04.5 LTS
Kernel: Linux 5.4.0-124-generic
Architecture: x86-64
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
Python 3.8.10
MySQL is OK, Bot created a tables in DB
Discord bot is OK. I was using python configure.py to configure my bot, after configure I launched the bot and it doesn't react to any commands
OS: Windows 10 64-bit
pip version 22.3.1
Python 3.10
discord.py version 2.2.2
MySQL seems to be configured properly as I get "mysql: Connection is working" when I run configure.py and new tables were created after I ran discord-shop.py.
The bot is connected properly to discord but I can't run the setup command or any command in general.
I granted the bot admin, permission to run application commands, and bot permissions in dev portal so I'm not too sure what the issue is that is preventing me from running commands for the bot.
any comments would be very appreciated.
I've attached the output from running discord-shop.py.
Running option 2 after save and re-running the program
Reason:
Currently program opens "defualt-config.json" at the beginning and withdraws all information from it. This is required as option 1 requires the user to fill in the installation details.
When running option 2, the program uses "defualt-config.json" values rather than the vlaues in "config.json", which was created whilst running option 1. This of course results in an error as the programme is unable to test the connection with false values.
An unused argument can lead to confusions. It should be removed. If this variable is necessary, name the variable _ or start the name with unused or _unused.
Occurrences
There is 1 occurrence of this issue in the repository.
When using the plain text version of passing arguments, signals from the OS are not correctly passed to the executables, which is in the majority of the cases what you would expect. These points shall always be taken care of:
Occurrences
There is 1 occurrence of this issue in the repository.
Nested if statements can be collapsed into a single if statement by separating their condition using and operator. Merging collapsible if statements increases the code's readability.
Occurrences
There is 1 occurrence of this issue in the repository.