Skip to content

Commit

Permalink
feat:suno 作曲
Browse files Browse the repository at this point in the history
  • Loading branch information
fanxuankai committed Jun 3, 2024
1 parent 4cb2a64 commit 42a10d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/suno/suno.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def on_handle_context(self, e_context: EventContext):
return
content = e_context["context"].content
plugin_prefix = self.config.get("prefix")
if content.startswith(plugin_prefix):
enabled = self.config.get("enabled")
if content.startswith(plugin_prefix) and enabled:
content = content.replace(plugin_prefix, "", 1)
ids = self.request_suno(content)
reply = Reply()
Expand Down

0 comments on commit 42a10d5

Please sign in to comment.