Install packages: npm install
Before you try to start the bot, you need to fill the config.json file.
{
"token": "",
"prefix": "",
"genChannel": "",
"genCooldown": "",
"color": {
"green": "0x43B581",
"yellow": "0xFAA61A",
"red": "0xF04747",
"default": "0x7289DA"
}
}token: Your bot's tokenprefix: Your prefix for executing commands (max 10 characters)genChannel: Target channel forgencommandgenCooldown: Time between twogencommand (use millisec)
You can change the green, yellow, red and default colors.
The default stock location:
const filePath = `${__dirname}/../stock/${args[0]}.txt`;
^^ ^^
commands folder serviceIf you want to change the stock location, for example
`${__dirname}/../files/stock/${args[0]}.txt`You need to keep the ${__dirname}/../ commands folder location.
Add an account or data with add command. The space character in the data parameter make the write wrong.
- Example:
add example_service abcdWrong example:add example_service abcd<-- the last 2 arguments are not stored.efg hijk
You can add account to the bot using gen command.
-
Example:
gen example_service -
Server:
- DM:
Create a service with create command.
- Example:
create example_service
Check a definied service's account size.
- Example:
check test
- ✔️
stockcheck- Check how many items in a service file (how many lines in) restock- Restock all services




