Skip to content

Commit 959ef04

Browse files
kamil-certatsebix
andauthored
Apply suggestions from code review
Co-authored-by: Sebastian <[email protected]>
1 parent 548d15a commit 959ef04

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ CHANGELOG
1515
### Core
1616
- `intelmq.lib.message`: For invalid message keys, add a hint on the failure to the exception: not allowed by configuration or not matching regular expression (PR#2398 by Sebastian Wagner).
1717
- `intelmq.lib.exceptions.InvalidKey`: Add optional parameter `additional_text` (PR#2398 by Sebastian Wagner).
18-
- Change the way we discover bots to allow easy extending based on the entry point name. (PR by Kamil Mankowski)
18+
- Change the way we discover bots to allow easy extending based on the entry point name. (PR#2413 by Kamil Mankowski)
1919

2020
### Development
2121

@@ -32,7 +32,7 @@ CHANGELOG
3232

3333
### Documentation
3434
- Add a readthedocs configuration file to fix the build fail (PR#2403 by Sebastian Wagner).
35-
- Add a guide of developing extensions packages (PR by Kamil Mankowski)
35+
- Add a guide of developing extensions packages (PR#2413 by Kamil Mankowski)
3636

3737
### Packaging
3838

contrib/example-extension-package/mybots/bots/collectors/custom/collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class ExampleAdditionalCollectorBot(CollectorBot):
1010
"""
11-
This is an example bot provided by extension package
11+
This is an example bot provided by an extension package
1212
"""
1313

1414
def process(self):

contrib/example-extension-package/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# Instead of the bot-autodiscovery below, you can also just manually declare entrypoints
1212
# (regardless of packaging solution, even in pyproject.toml etc.), e.g.:
1313
#
14-
# intelmq.bots.collectors.custom.collector = mybots.bots.collectors.custom.collector:BOT.run
14+
# 'intelmq.bots.collectors.custom.collector = mybots.bots.collectors.custom.collector:BOT.run'
1515
#
1616
# Important is:
1717
# - entry point has to start with `intelmq.bots.{type}` (type: collectors, experts, parsers, outputs)

docs/dev/guide.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -896,14 +896,14 @@ Creating extensions packages
896896
****************************
897897

898898
IntelMQ supports adding additional bots using your own independent packages. You can use this to
899-
add a new integration that is special to you, or cannot be integrated for some reason
900-
into the main IntelMQ repository.
899+
add a new integration that is special to you, or cannot be integrated
900+
into the main IntelMQ repository for some reason.
901901

902902
Building an extension package
903903
=============================
904904

905-
A simple example of the package can be found in ``contrib/example-extension-package``. In order to
906-
bots to work with IntelMQ, you need to ensure that
905+
A simple example of the package can be found in ``contrib/example-extension-package``. To make your custom
906+
bots work with IntelMQ, you need to ensure that
907907

908908
- your bot's module exposes a ``BOT`` object of the class inherited from ``intelmq.lib.bot.Bot``
909909
or its subclasses,
@@ -912,7 +912,7 @@ bots to work with IntelMQ, you need to ensure that
912912
the name of the group (collectors, experts, outputs, parsers), and then your original name.
913913
The entry point must point to the ``BOT.run`` method,
914914
- the module in which the bot resides must be importable by IntelMQ (e.g. installed in the same
915-
virtualv).
915+
virtualenv, if you use them).
916916

917917
Apart from these requirements, your package can use any of the usual package features. We strongly
918918
recommend following the same principles and main guidelines as the official bots. This will ensure
@@ -948,7 +948,7 @@ file would then have the following section:
948948
[project.scripts]
949949
intelmq.bots.collectors.awesome.special = "awesome_bots.special:BOT.run"
950950
951-
Once you installed your package, you can run ``intelmqctl list bots`` to check if your bot was
951+
Once you have installed your package, you can run ``intelmqctl list bots`` to check if your bot was
952952
properly registered.
953953

954954
*************

0 commit comments

Comments
 (0)