Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on connect #189

Merged
merged 2 commits into from
Aug 2, 2023
Merged

on connect #189

merged 2 commits into from
Aug 2, 2023

Conversation

casperstorm
Copy link
Member

@casperstorm casperstorm commented Aug 2, 2023

This adds the option to add commands which will be executed once connected.
I've kept it to use same format as our commands in Halloy to make it similar.

Eg;

servers:
  libera:
    nickname: casperstorm
    server: irc.libera.chat
    port: 6697
    use_tls: true
    on_connect:
      - "/msg tarkah hello halloy is pretty great"
      - "/msg NickServ IDENTIFY foo bar"

Fixes #67

Copy link
Member

@tarkah tarkah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just one small suggestion

data/src/client.rs Outdated Show resolved Hide resolved
@casperstorm casperstorm merged commit ea9fe66 into main Aug 2, 2023
1 check passed
@casperstorm casperstorm deleted the on-connect branch August 2, 2023 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to run a command on connect
2 participants