Connection & Defaults System
The Connection system is a powerful JID (group ID) store that saves you from retyping long group IDs. Create short aliases for your groups and activate them as "defaults" to supercharge your commands.
Core Concepts
- Admin-Shared: Any connection created by one admin in the master group can be used by all other admins in that same group.
- Two-Step Activation: First, you save a JID with an alias using `connection`. Then, you must activate it using `setdefault` before other commands can use it.
The Workflow
Command Guide
`connection`
Saves one or more group JIDs under easy-to-remember aliases. This command has two styles:
Style 1: Bulk Add (Multi-line)
To add multiple connections at once, use `connection .` (with the dot) followed by each alias and JID on a new line.
connection .
groupA [email protected]
groupB [email protected]
Style 2: Single Add
To add just one connection, use the command with the alias and JID on the same line.
connection mygroup [email protected]
`setdefault`
Activates one or more saved connections, making them the "default" targets for other commands (like `antilink`, `wlc`, etc.). This is the most crucial step.
setdefault groupA
setdefault groupA,groupB
You can set a single default or multiple, comma-separated defaults.
`listconnection`
Displays a list of all connection aliases you have saved.
listconnection
`getdefault`
Shows you which connection aliases are currently active as the default targets.
getdefault
`delconnection`
Removes one or more saved connections from your JID store.
delconnection groupA
delconnection groupA,groupB
Remember: Saving a `connection` does not automatically use it. You MUST run `setdefault` to activate it for other bot commands.