Skip to content

How to connect to an invite channel? #596

Open

Description

@SuatNguyen

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!

Activity

  1. snick512 commented on Dec 13, 2023

    @snick512

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions