Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
Amos Chua edited this page Nov 10, 2020 · 6 revisions

Frequently Asked Questions

Why am I getting Discord errors?

If you're getting either:

discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized

or:

discord.errors.LoginFailure: Improper token has been passed.

Please make sure you have configured your bot prior to use!

Why is role-assignment not working?

As of discord.py v1.5 you need to have Privileged Gateway Intents enabled for this.
Refer to the official documentation for more information.

Do I need Python installed?

Yes.
As of the time of writing, this project is not distributed as frozen standalone/portable programs.
You will need to have Python 3.6 installed for this program to work.

Installation using Chocolatey

If you have Chocolatey, you may install Python 3.6.8 using the following command: choco install python --version=3.6.8.20200110

Installation from official source

You may choose to download and install Python 3.6.8 from the official website.

Installation from unofficial source

You may choose to download and install Python 3.6.12 from the SpiritSuite Tool Archive at your own risk.
Note that this is an unofficial installer.

Why does it give me an error when I try to use Python?

Do you see the following error when you try to use Python in the command line after installing?

PowerShell:

python: The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Command Prompt:

'python' is not recognized as an internal or external command, operable program or batch file.

If so, you need to add Python to your environment variables:

Windows 10:

  1. Hit Start, and start typing the following: Edit the system environment variables
    • A search result should come up as you type: hit Enter or click Open
  2. Click on the Advanced tab, and click on Environment Variables... at the bottom
  3. Look for a variable named Path
    • Click New... to create one, if it does not already exist
    • Otherwise, hit Edit...
  4. Click New
  5. Fill in the location where Python is installed
    • In my case, this was C:\Users\Admin\AppData\Local\Programs\Python\Python36\
  6. Hit OK for all windows when you're done, and close/re-open the terminal you're using
  7. Use the command Python --version
    • It should now tell you the Python version correctly

Can you add so-and-so features?

Maybe.
You are welcome to PR your own custom features, if you would like to contribute to the project!
Else, you may open an issue to request for certain features. (Reviewed on a case-by-case basis)

How do I add new commands?

Please refer to the Technical Details page to understand more about how commands work.

Can this be run on Linux?

Probably.
While it has yet to been tested specifically, the bot has been designed to be cross-platform and should work on Linux.
You may report any problems you encounter.

What's the YAML-config branch for?

It was an experimental branch to test out the use of YAML for config files.
It has since been abandoned as it does not provide improvement to workflow.
The branch remains for reference purposes, in case YAML support is needed for future TEAM SPIRIT projects.