irc

package
v0.0.0-...-aafb61e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

irc-discord-bridgebot - a puppeteer bridge to connect IRC and Discord * Copyright (C) 2021 Arsen Arsenović <arsen@aarsen.me> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.

irc-discord-bridgebot - a puppeteer bridge to connect IRC and Discord * Copyright (C) 2021 Arsen Arsenović <arsen@aarsen.me> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.

irc-discord-bridgebot - a puppeteer bridge to connect IRC and Discord * Copyright (C) 2021 Arsen Arsenović <arsen@aarsen.me> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidNickChar

func IsValidNickChar(char rune, first bool) bool

this feels wrong

func New

func New(c *IRCSideConfig) sides.Side

func StripNick

func StripNick(nick string, limit int) string

Types

type IRCConnection

type IRCConnection struct {
	// contains filtered or unexported fields
}

type IRCEvent

type IRCEvent struct {
	// contains filtered or unexported fields
}

type IRCEventKind

type IRCEventKind int
const (
	MessageEvent IRCEventKind = iota
	NickEvent
	DisconnectEvent
)

type IRCSide

type IRCSide struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*IRCSide) AddEntity

func (is *IRCSide) AddEntity(e sides.Entity, c string)

func (*IRCSide) ChangeEntity

func (is *IRCSide) ChangeEntity(sender sides.Entity)

func (*IRCSide) RemoveEntity

func (is *IRCSide) RemoveEntity(sender sides.Entity, c string)

func (*IRCSide) SendMessage

func (is *IRCSide) SendMessage(sender sides.Entity, channel string, message string)

type IRCSideConfig

type IRCSideConfig struct {
	ChannelMap *discord.DiscordChannelMap

	Host string
	Port uint16
	SSL  bool

	Prefix []byte
	Suffix string
	OurID  string

	Receiver sides.Receiver
}

type IdentServer

type IdentServer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL