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

How to connect to an invite channel? #596

Open
SuatNguyen opened this issue Jun 8, 2021 · 1 comment
Open

How to connect to an invite channel? #596

SuatNguyen opened this issue Jun 8, 2021 · 1 comment

Comments

@SuatNguyen
Copy link

SuatNguyen commented Jun 8, 2021

Hi guys, I have the bot working in public servers. That's great. Now, I would like to move in a private server.

discord-irc@2.9.0 start
node dist/index.js "--config" "test.json"

2021-06-08T13:17:00.972Z info: Connected to Discord
2021-06-08T13:17:07.337Z info: Connected to IRC
2021-06-08T13:17:07.821Z error: Received error event from IRC {
prefix: 'server.net',
server: 'server.net',
command: 'err_unknowncommand',
rawCommand: '421',
commandType: 'error',
args: [ 'xxx', 'yyy', 'Unknown command' ]
}
2021-06-08T13:17:08.825Z error: Received error event from IRC {
prefix: 'server.net',
server: 'server.net',
command: 'err_inviteonlychan',
rawCommand: '473',
commandType: 'error',
args: [ 'xxx', '#channel', 'Cannot join channel (+i)' ]
}

Config is as follow

[{
"nickname": "xxx",
"server": "server.net",
"discordToken": "AAA",
"autoSendCommands": [ // Commands that will be sent on connect
["/msg xxx !invite xxx key #channel"]
],
"channelMapping": {
"#discord": "#channel"
},
"format": {
"discord": "{$withMentions}"
},
"parallelPingFix": true,
"commandCharacters": ["!", "."],
"ircStatusNotices": false
}]

In mIRC, I often use the following command to join the channel.
/msg xxx !invite xxx key #channel

How do I use the above command the your code?

Thanks!

@snick512
Copy link

If it's an invite only channel, maybe try

    "channelMapping": { // Maps each Discord-channel to an IRC-channel, used to direct messages to the correct place
      "#discord": "#irc channel-password", // Add channel keys after the channel name
    },

Followed by setting a permanent invitation for the bot in the channel directly. Sometimes executed by +I user!ident@host. This should tell the channel to always let the bot join, and the configuration will provide the password.

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

No branches or pull requests

2 participants