-
-
Notifications
You must be signed in to change notification settings - Fork 79
Common Errors
This page contains common errors and ways to fix them.
-
Startup errors
- Missing required enviroment variable
- Unknown SteamID input format
- Access denied
- Ratelimit exceeded
- Could not get account limitations
- TypeError: input.match is not a function
- Other errors
When updating your environmental variables, almost make sure you restart the bot with the --update-env
option if you are using PM2. As explained here
You need to make sure your file is NOT called ecosystem.template.json
. It needs to be ecosystem.json
.
Before trying to fix this error, you should enable viewing file extensions.
MAKE SURE THE FILE IS NOT CALLED config.env
OR bot.env
OR ANYTHING. JUST .env
.
If your computer does not allow you to name it .env
, simply call it .env.
(with the extra .
).
In your .env
or ecosystem.json
, the ADMINS
and KEEP
options need to have valid SteamID64's in them. For example: 76561198144346135
is a valid SteamID64.
You can find this on SteamRep or on your Backpack.tf profile
Your Steam account(s) needs to be unlimited. To make your Steam account(s) unlimited you need to add $5 or more to the Steam account(s) here (remember to be logged into the bot(s)' account). If you're using another currency than USD, you might need to add more than $5 due to conversion rates.
You have logged in too many times (possibly due to it crashing and restarting too often). Stop the bot for an hour and then start it again.
As it says in the console with the message about the error, set SKIP_ACCOUNT_LIMITATIONS
to true
in your .env
or ecosystem.json
.
The error looks like this:
This is caused, by not adding " "
between the SteamID64 you added in your ITEM_STATS_WHITELIST
variable inside your environment file (on Windows: .env
- on Linux: ecosystem.json
).
The array should look like this: ["SteamID64"]
There are multiple cases where this may happen. If your error looks somewhat like this:
Then something went wrong with your polldata.json
file. This is located in the tf2autobot/files/{your steamid}/
folder. Simply deleting it will fix the issue.
If this issue is not solved by deleting your polldata.json
file, check your pricelist.json
file for corruption. Making a regular backup of your pricelist.json
file is always recommended.
If the error is bigger, and starts with
SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse (<anonymous>)
at new Bot (C:\Users\Name\Desktop\Edited\dist\classes\Bot.js:74:72)
Or something similar, then you did not set your ALERTS
properly in your .env
or ecosystem.json
.
It is supposed to look like ["trade"]
or ["none"]
. This error usually happens if you forget the []
brackets.
The bot may produce this error when a user attempts to trade using the !buy or !sell commands.
This issue occurs when SDA is left open. Please close SDA.
- Getting a VPS
- Downloading the bot
- Configuring the bot
- Running the bot (node and PM2)
- Introduction to pricelist
- Parameters
- Manage pricelist
- Other commands