generated from ApeWorX/project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Overview
Would be cool if Silverback bots could be given access to their respective Clusters (if running on one)
Specification
- Add
CLUSTER_API_KEY
to.settings.Settings
model (Optional, defaulted to None) - Add
.cluster -> .cluster.client.ClusterClient | None
computed property to.main.SilverbackBot
- If
CLUSTER_API_KEY
is present, return properly-configured from.cluster
computed property - Add
cluster_access: bool
model parameter to.cluster.types.ClusterInfo
(defaults False)
Example:
@bot.on_(...)
async def deploy_bot(log):
if ...:
bot = bot.cluster.new_bot(...)
...
Dependencies
Support needs to be added to the Silverback Cluster code to inject the CLUSTER_API_KEY
if .cluster_access
is True
for a particular bot in the cluster
h/t @johnnyonline
johnnyonline
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request