How to configure your Faction¶
Run the following command: /config faction to access your factions configuration.
There is currently one shortcut available:
- Register Faction
Info
You must either be the Guild Owner or have the Faction Configuration permission to access this command.
Torn API Key¶
The Torn API Key in the faction config is essential for allowing your bot to access your factions data.
To submit your key to the faction config, you must have Faction API Access, Leader and Co-leader already have this permission by default.
The API Key submitted must be at least a Limited Access, otherwise it will be rejected.
How to Configure¶
For factions already registered in the bot
- Obtain your API Key from the Torn Settings Page.
- On the main page of
/config faction, click Edit Setting and select API Key from the dropdown menu. - Paste your API Key into the pop-up box and click Submit.
For factions not registered in the bot
- Obtain your API Key from the Torn Settings Page.
- Run the command
/config factionwith shortcutRegister Faction. Alternatively, open/config factionand use theRegister Factionbutton. - Paste your API Key into the pop-up box and click Submit.
Torn Stats API Key¶
A Torn Stats API Key is required in both the Guild and Faction configurations.
It is currently used to retrieve:
- Battle Stats data for the Membership module
- Spy Reports for modules such as Retaliations, Ranked Warring, and Assists
Note
If you do not use these modules, you can leave the Torn Stats API Key blank.
How to Configure¶
- Generate or copy your Torn Stats API Key from your TornStats Account Settings page.
- Repeat steps 2 and 3 from the API Key configuration section above.