You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Semisol 7c3c4e3e9b
add command blocking
1 month ago
.gitignore Add config example 2 months ago
LICENSE Add LICENSE file 2 months ago
README.md add command blocking 1 month ago
config.example.json add command blocking 1 month ago
irc-to-irc.js add command blocking 1 month ago
package-lock.json add prefix and install 'irc' npm module 2 months ago
package.json add prefix and install 'irc' npm module 2 months ago

README.md

IRC to IRC gateway

Configuration

irc-to-irc is configured using a config.json file in the current directory, the following keys are supported:

  • server: the IRC server to connect the gateway bot to (default: "localhost")
  • port: the port of the IRC server to connect the gateway bot to (default: 6667)
  • tls: if the gateway bot should connect with TLS (default: false)
  • nick: the nick of the IRC gateway bot (default: "irc-to-irc")
  • user: the username of the IRC gateway bot (default: "irc-to-irc")
  • realname: the realname of the IRC gateway bot (default: "IRC over IRC gateway")
  • owner: the nick of the owner of the bot (no default)
  • admins: the nick of people who should have admin privileges (bypass queue, bypass command blocks) (default: [])
  • connect-server: the destination server (default: "localhost")
  • connect-port: the destination port (default: 6667)
  • connect-tls: if the destination should be connected with TLS (default: false)
  • oper-uid: the username for OPER (default: "irc-to-irc")
  • oper-password: the password for OPER (no default)
  • user-modes: user-modes to set on connection after OPER (default: "+B")
  • channel: the channel to operate from (default: null)
  • prefix: the prefix to accept messages that start with it (default: ``)
  • flood-recv-delay: there is a cooldown of flood-delay ms between commands being processed. recommended only for public bots. (default: 0)
  • flood-recvq: the maximum amount of commands to be processed that can be in the queue before old messages are dequeued (default: 15)
  • flood-send-delay: the messages are sent with a delay of flood-send-delay ms. (default: 0)
  • flood-sendq: the maximum amount of messages to be sent that can be in the queue before old messages are dequeued (default: 15)
  • auto-pong: replies to PINGs with PONGs, recommended for IRC (default: false)
  • auto-command: Commands to run on connect (default: [])
  • ignore: Users to ignore, such as other IRC-to-IRC bots or other spammy bots (default: [])
  • blocked-cmds: Commands that will be blocked unless issued by an administrator, leave empty if used for non-IRC protocols. Must be uppercase. (default: [])
  • ctcp: an object of CTCP responses. adding responses to this overrides that response but not the entire object. default value:
{
    "VERSION": "IRC to IRC gateway",
    "SOURCE": "https://git.sr.ht/~semisol/irc-to-irc"
}

UnrealIRCd oper block/operclass example

operclass flood-exempt {
        permissions {
                channel { override { flood; } }
                immune;
        }
}

oper irc-to-irc {
        class opers;
        mask *@localhost;
        password "<put the password here>";
        operclass flood-exempt;
        swhois "is an IRC over IRC gateway";
        vhost irc.to.irc;
}