Skip to content

Commit 9e3f94e

Browse files
committed
refactore: name and descriptions for plugin functions
1 parent a8da9ea commit 9e3f94e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

plugins/dpsn/dpsn_plugin_gamesdk/dpsn_plugin.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ def __init__(self,
6868

6969
self._functions = {
7070
"subscribe": Function(
71-
fn_name="subscribe",
72-
fn_description="Subscribe to a DPSN topic",
71+
fn_name="subscribe_to_topic",
72+
fn_description="Subscribe to a DPSN topic to receive messages",
7373
args=[
7474
Argument(
7575
name="topic",
76-
description="The topic string to subscribe to",
76+
description="The DPSN topic to subscribe to",
7777
type="string",
7878
required=True
7979
)
@@ -82,12 +82,12 @@ def __init__(self,
8282
executable=self.subscribe # Keep executable pointing to the public method
8383
),
8484
"unsubscribe": Function(
85-
fn_name="unsubscribe",
86-
fn_description="Unsubscribe from a DPSN topic",
85+
fn_name="unsubscribe_to_topic",
86+
fn_description="unsubscribe to a DPSN topic to stop receiving messages",
8787
args=[
8888
Argument(
8989
name="topic",
90-
description="The topic string to unsubscribe from",
90+
description="The DPSN topic to unsubscribe to",
9191
type="string",
9292
required=True
9393
)

0 commit comments

Comments
 (0)