Иконка ресурса

amxx Needbot for AutoMix 0.1

Нет прав для скачивания
Установка
Unzip the files.

You will have two folders, scripting and needbot_nodejs

needbot.sma:

1º Compile the plugin provided in folder scripting/needbot.sma
2º Drop it into your server folder addons/amxmodx/plugins folder.
3º Don't forget to add it on plugins.ini
4º It will autocreate config at your first time running at addons/amxmodx/config/plugins/needbot.cfg


needbot_nodejs
folder.
1ºMove it to the server where you have installed nodejs.
2ºRun npm install this will install all dependencies.
3ºThen edit .env file and run the script.
4ºYou need provide to needbot.cfg all endpoints and api key to keep it properly working.
Настройки
needbot.cfg settings:
Код:
// Maximum players allowed for /need
// -
// Default: "10"
needbot_maxplayers "10"

// API key for Need Bot (AutoMix)
// -
// Default: "YOUR_API_KEY_HERE"
needbot_api_key "YOUR_API_KEY_HERE"

// Endpoint URL for Need Bot
// -
// Default: "http://localhost:4000/api"
needbot_endpoint "http://localhost:4000/api"

// Tag prefix for /need chat messages
// -
// Default: "[NEEDBOT]"
needbot_tag "[NEEDBOT]"

// Chat URL for success message
// -
// Default: "https://chat-url.com"
needbot_chat_url "https://chat-url.com"

// Cooldown (seconds) between /need uses
// -
// Default: "60.0"
needbot_cooldown "60.0"

.env settings:
I'm using steam account without steam guard.
Also you need to get your steamgroup ip and chatid to get it properly working.
Код:
ACCOUNT=your_steam_account_name_here
ACCPASSWORD=your_steam_password_here
USERNAME1=your_usernick_for_steam_bot_here

GROUPID=steam_group_id_here
CHATID=steam_chat_id_here

APPPORT=4000
API_TOKEN=your_api_key_same_as_in_needbot.cfg
Сверху Снизу