Skip to content

Conversation

@tomteipl
Copy link
Contributor

@tomteipl tomteipl commented Mar 1, 2025

Script info

  • Script name:  auto_commands
  • Version: 0.3
  • Script tags: py2 py3 config

Description

Create and add your own commands to be send on client start.
You can specify after what time the commands will be send, for example: after 10 sec.
Check list of added commands by you and remove them by index or text.

Checklist (new script)

  • Single commit, single file added
  • Commit message: New script name.py: short description…
  • No similar script already exists
  • Name: max 32 chars, only lower case letters, digits and underscores
  • Unique name, does not already exist in repository
  • No shebang on the first line
  • Comment in script with name/pseudo, e-mail and license
  • Only English in code/comments
  • Pure WeeChat API used, no extra API
  • Function hook_process is used for any blocking call
  • For Python script: works with Python 3 (Python 2 support is optional)
  • Score 100 / 100 displayed by weechat-script-lint

@tomteipl tomteipl changed the title auto_commands.py: Auto sends commands on client start New auto_commands.py: Auto sends commands on client start Mar 1, 2025
@tomteipl tomteipl changed the title New auto_commands.py: Auto sends commands on client start New script auto_commands.py: Auto sends commands on client start Mar 1, 2025
@weechatter
Copy link
Contributor

Have a look at weechat.startup.command_after_plugins and weechat.startup.command_before_plugins
Especially weechat.startup.command_before_plugins do not need any plugin (eg python).
Sorry to say, but your script seems obsolete for me.

@tomteipl
Copy link
Contributor Author

tomteipl commented Mar 1, 2025

Have a look at weechat.startup.command_after_plugins and weechat.startup.command_before_plugins Especially weechat.startup.command_before_plugins do not need any plugin (eg python). Sorry to say, but your script seems obsolete for me.

You are right. I should gather more information about weechat as im fairly new with it.
Also im learning and practicing so every advise and review is helpful.

@weechatter
Copy link
Contributor

If you have an idea, simply ask in libera.#weechat if there is alrady an solution ;-)

@flashcode
Copy link
Member

I agree with @weechatter, the default options weechat.startup.command_before_plugins and weechat.startup.command_before_plugins are made to run commands on startup.

So I think your script is not needed, or maybe I missed something?

@flashcode flashcode self-assigned this Mar 9, 2025
@flashcode flashcode added waiting info Waiting for info from author of issue new script New script labels Mar 9, 2025
@tomteipl
Copy link
Contributor Author

tomteipl commented Mar 9, 2025

@flashcode
Yup its not necessary. I didnt know there were options like these for Weechat.

Although its easier at least for me to have simple separate list of commands i added.
It also has potential for more features like suspending commands from the list or other things i have in mind.

I will keep it in my public repo and continue developing.

I appreciate the answer, PR can be closed sir.

@flashcode flashcode added won't fix This will not be implemented/fixed and removed waiting info Waiting for info from author of issue labels Mar 9, 2025
@flashcode flashcode closed this Mar 9, 2025
@tomteipl tomteipl deleted the auto_commands.py branch March 9, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new script New script won't fix This will not be implemented/fixed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants