qaisjp / go-discord-irc

The Discord and IRC bridge with puppets! An IRC user is created for each Discord user, messages from IRC seamlessly appear on Discord, and Discord mentions are automagically converted to and from IRC.
MIT License
113 stars 32 forks source link

Infinite loop: connected/disconnected #126

Closed jx11r closed 2 years ago

jx11r commented 2 years ago

I just can't connect to IRC.

Log:

🛎 Updating Dependencies
INFO[0000] Loading configuration...                      ConfigName=config ConfigPath=. ConfigType=yml
WARN[0000] webirc_pass is empty
INFO[0000] Cooldown duration for IRC puppets is 168h0m0s
DEBU[0000] Refreshing guild webhooks
DEBU[0000] Refreshing guild webhooks using global permission
2022/04/02 23:15:44 Connected to irc.oftc.net:6667 ([2001:5a0:3604:1:64:86:243:183]:6667)
2022/04/02 23:15:44 Connected to irc.oftc.net:6667 ([2001:5a0:3604:1:64:86:243:183]:6667)
INFO[0001] Go-Discord-IRC is now running. Press Ctrl-C to exit.
2022/04/02 23:15:44 Error, disconnected: EOF
2022/04/02 23:15:44 Connected to irc.oftc.net:6667 ([2605:bc80:3010:101:0:2:0:6667]:6667)
2022/04/02 23:15:44 Connected to irc.oftc.net:6667 ([2605:bc80:3010:101:0:2:0:6667]:6667)
2022/04/02 23:15:44 Error, disconnected: EOF
2022/04/02 23:15:44 Connected to irc.oftc.net:6667 ([2001:5a0:3604:1:64:86:243:183]:6667)
2022/04/02 23:15:44 Error, disconnected: EOF
2022/04/02 23:15:44 Connected to irc.oftc.net:6667 ([2605:bc80:3010:101:0:2:0:6667]:6667)
2022/04/02 23:15:44 Error, disconnected: EOF
2022/04/02 23:15:44 Connected to irc.oftc.net:6667 ([2001:5a0:3604:1:64:86:243:183]:6667)
2022/04/02 23:15:44 Error, disconnected: EOF
2022/04/02 23:15:44 Connected to irc.oftc.net:6667 ([2605:bc80:3010:101:0:2:0:6667]:6667)
2022/04/02 23:15:45 Error, disconnected: EOF
2022/04/02 23:15:45 Connected to irc.oftc.net:6667 ([2001:5a0:3604:1:64:86:243:183]:6667)
2022/04/02 23:15:45 Error, disconnected: EOF
2022/04/02 23:15:45 Connected to irc.oftc.net:6667 ([2605:bc80:3010:101:0:2:0:6667]:6667)
2022/04/02 23:15:45 Error, disconnected: EOF
2022/04/02 23:15:45 Connected to irc.oftc.net:6667 ([2001:5a0:3604:1:64:86:243:183]:6667)
2022/04/02 23:15:45 Error, disconnected: EOF
^CINFO[0003] Shutting down Go-Discord-IRC...

Config:

discord_token: # discord token
guild_id: # discord server id
irc_server_name: oftc
irc_server: irc.oftc.net:6667

channel_mappings:
  "#irc_channel": # discord_chanel id

suffix: "[d]"
separator: "_"
irc_listener_name: "[d]"

cooldown_duration: 604800
show_joinquit: false
max_nick_length: 30

insecure: true
no_tls: true
debug: false
simple: false

irc_puppet_prejoin_commands:
  - "MODE ${NICK} +D"
jx11r commented 2 years ago

I changed 6669 to 6697 and now it works, I don't know why