A Discord wrapper for miniirc.
How to use
To use miniirc_discord, you already need to know how to use miniirc (GitHub,
GitLab). Instead of creating a
miniirc.IRC object, however, you need to
miniirc_discord.Discord. This is very similar, however has some
ipis now your Discord token (see this guide to get one).
realnameare currently ignored, however still need to be the expected type (
Channels will start in
# if they are public and are currently just a channel
Some formatting from IRC to Discord should be translated nicely, however more complex codes and formatting from Discord to IRC are currently not.
PRIVMSG operates like you'd expect and IRC formatting codes are converted to
markdown. You cannot, however, send messages to a channel before the bot has
received a message from the channel.
CTCP ACTION (
This works similarly to
PRIVMSG, except the CTCP ACTION is also converted to
Before miniirc_discord 0.5.0,
NOTICE is an alias for
NOTICE adds nice embeds into Discord, while remaining as compatible as
possible with IRC. You can set the IRCv3 client tag
set the embed title (note that this will not be displayed on IRC), and add an
IRC colour/color code
to the start of the line to set the embed colour/color. Only codes
are currently supported, and using leading zeroes (
05) will break.
AWAY will set the bot's "Playing" text. If you
want to change the prefix to something else, you can set the IRCv3 client tag
+discordapp.com/type to (
Listening to or
+discordapp.com/status tag can be set to
Installation and setting up
You can install
pip. On Linux-based systems, you would
sudo pip3 install miniirc_discord. Version numbers should follow SemVer
since 0.4.0 and are no longer in sync with
becomes more stable.
miniirc_discord manually, you can usually place it in the same
directory as your other
.py files or in a package directory.
You will need to install the following dependencies (normally with
Getting a bot token
To get a Discord bot token and invite link, see this guide.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size miniirc_discord-0.5.14-py3-none-any.whl (6.8 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size miniirc_discord-0.5.14.tar.gz (5.8 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for miniirc_discord-0.5.14-py3-none-any.whl