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 ¶
const MAX_IRC_MSG_LENGTH = 256
figure out a better limit? this should be fine for now, and there's no need to do this on the reverse, discords message limit is 4K rather than 512, and doesn't include the entire PRIVMSG command, unlike IRC.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiscordChannelMap ¶
this feels like a layering violation, but I'll allow it
type DiscordConfig ¶
type DiscordSide ¶
func (*DiscordSide) ChangeEntity ¶
func (ds *DiscordSide) ChangeEntity(sides.Entity)
func (*DiscordSide) GetOurId ¶
func (ds *DiscordSide) GetOurId() string
func (*DiscordSide) RemoveEntity ¶
func (ds *DiscordSide) RemoveEntity(sides.Entity, string)
func (*DiscordSide) SendMessage ¶
func (ds *DiscordSide) SendMessage(sender sides.Entity, channel string, message string)