Skip to content

Commit

Permalink
fix: bot python reference
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdang committed Oct 10, 2024
1 parent 9360350 commit 2873c03
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
10 changes: 0 additions & 10 deletions docs/methoddocs/application.md

This file was deleted.

10 changes: 10 additions & 0 deletions docs/methoddocs/main.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# silverback.main

The `silverback.main` module contains the high-level implementation of the the user's
Silverback application, meant to be used to expose method handlers and other functionality.

```{eval-rst}
.. automodule:: silverback.main
:members:
:show-inheritance:
```
2 changes: 1 addition & 1 deletion docs/userguides/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ from silverback import SilverbackBot
bot = SilverbackBot()
```

The SilverbackBot class handles state and configuration.
The `SilverbackBot` class handles state and configuration.
Through this class, we can hook up event handlers to be executed each time we encounter a new block or each time a specific event is emitted.
Initializing the bot creates a network connection using the Ape configuration of your local project, making it easy to add a Silverback bot to your project in order to perform automation of necessary on-chain interactions required.

Expand Down
4 changes: 2 additions & 2 deletions docs/userguides/platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Then you can provide the name of these credentials when creating your bot with t
You are finally ready to deploy your bot on the Cluster and get it running!

To deploy your Bot, use the [`silverback cluster bots new`][silverback-cluster-bots-new] command and give your bot a name,
container image, network to run on, an account alias (if you want to sign transactions w/ `app.signer`),
container image, network to run on, an account alias (if you want to sign transactions w/ `bot.signer`),
and any environment Variable Group(s) the bot needs.
If everything validates successfully, the Cluster will begin orchestrating your deployment for you.

Expand Down Expand Up @@ -197,7 +197,7 @@ Once in the RUNNING state, your Bot will not stop running unless it experiences
Any task execution that experiences an error will abort execution (and therefore not produce any metrics) but the Bot **will not** shutdown.
All errors encountered during task exeuction are reported to the Cluster for later review by any users with appriopiate access.
Tasks do not retry (by default), but updates to `app.state` are maintained up until the point an error occurs.
Tasks do not retry (by default), but updates to `bot.state` are maintained up until the point an error occurs.
It is important to keep track of these errors and ensure that none of them are in fact critical to the operation of your Bot,
and to take corrective or preventative action if it is determined that it should be treated as a more critical failure condition.
Expand Down

0 comments on commit 2873c03

Please sign in to comment.