2017-07-13 bitlbee-discord on OSX

Brad Murray mentioned a Discord RPG server invitation on G+ and I remembered hanging out on the OSR Discord server. I clicked the link and indeed, there was a different “server” with a different channels, including a separate ​#osr channel. OK, why not.

invitation

on G+

But I don’t want to use the app, I don’t want to use the website, I want to use IRC. Specifically, I want to use the Bitlbee server I usually run. And there apparently is a Discord plugin for Bitlbee! Now I just need to get it up and running…

Bitlbee

Discord plugin

alex@Megabombus:~$ brew search bitlbee
bitlbee ✔
alex@Megabombus:~$ cd src
alex@Megabombus:~/src$ git clone https://github.com/sm00th/bitlbee-discord.git
Cloning into 'bitlbee-discord'...
...
alex@Megabombus:~/src$ cd bitlbee-discord/
alex@Megabombus:~/src/bitlbee-discord (master=)$ ./autogen.sh
...
alex@Megabombus:~/src/bitlbee-discord (master=)$ ./configure
...
alex@Megabombus:~/src/bitlbee-discord (master=)$ make
...
alex@Megabombus:~/src/bitlbee-discord (master=)$ mkdir /usr/local/lib/bitlbee
alex@Megabombus:~/src/bitlbee-discord (master=)$ make install
...
alex@Megabombus:~/src/bitlbee-discord (master=)$ bitlbee -n -D -v -d ~/.bitlbee -c ~/.bitlbee/bitlbee.conf

Without creating this directory myself, it wouldn’t work. I also ignored the message telling me to `remember to run 'libtool --finish /usr/local/lib/bitlbee/'`. It just didn’t work and so I ignored it.

The last line is how I start the server from Emacs... 😄

My IRC client connected to the bitlbee server and in `&bitlbee`:

<kensanata> plugins
<root> Plugin                          Version
<root> bitlbee-discord                 0.3.1
<root>
<root> Enabled Protocols: discord, hipchat, identica, jabber, msn,
    oscar, twitter

There it is!

<kensanata> account add discord kensanata@gmail.com *secret*
<root> Account successfully added with tag discord
<kensanata> account discord on
<root> discord - Logging in: Starting MFA authentication

And indeed, a new nick was talking to me!

<discord_mfa> Two-factor auth is enabled. Please respond to this
    message with your token.
<kensanata> *token*

And it worked!

<kensanata> chat list discord
<root> Index  Title                                Topic
[...]
<root>    18  RPG.traveller                        RPG Talk/traveller
[...]
<root>    22  RPG.osr                              RPG Talk/osr
[...]
<root>    39  RPG.game_design                      This is where we
    talk about RPG system design.
[...]
<root>    50  RPG.indie_games                      RPG
    Talk/indie_games
[...]
<root>    81  RPG.game_masters                     RPG
    Talk/game_masters
..
<root>    92  RPG.announcements                    Important community
    announcements. Moderator-only posting.
[...]
<root>    95  RPG.general                          Support RPG Talk at
    https://www.patreon.com/rpg_talk - Help us provide prizes at
    <#320366704020684821>. Type `“/roll 1d20”` to roll.
[...]
<root>   105  OSR.general                          Unloved Monsters.
    Which ones lie on the scrap heap, yet to be reclaimed by some OSR
    blogger? Can we fix them?
<kensanata> chat add discord !18 #rpg-traveller
<root> Chatroom successfully added.
<kensanata> chan #rpg-traveller set auto_join true
<root> auto_join = `true'
<kensanata> chat add discord !22 #rpg-osr
<root> Chatroom successfully added.
<kensanata> chan #rpg-osr set auto_join true
<root> auto_join = `true'
<kensanata> chat add discord !39 #rpg-game-design
<root> Chatroom successfully added.
<kensanata> chan #rpg-game-design set auto_join true
<root> auto_join = `true'
<kensanata> chat add discord !50 #rpg-indie-games
<root> Chatroom successfully added.
<kensanata> chan #rpg-indie-games set auto_join true
<root> auto_join = `true'
<kensanata> chat add discord !81 #rpg-game-masters
<root> Chatroom successfully added.
<kensanata> chan #rpg-game-masters set auto_join true
<root> auto_join = `true'
<kensanata> chat add discord !92 #rpg-announcements
<root> Chatroom successfully added.
<kensanata> chan #rpg-announcements set auto_join true
<root> auto_join = `true'
<kensanata> chat add discord !95 #rpg-general
<root> Chatroom successfully added.
<kensanata> chan #rpg-general set auto_join true
<root> auto_join = `true'
<kensanata> chat add discord !105 #osr-general
<root> Chatroom successfully added.
<kensanata> chan #osr-general set auto_join true
<root> auto_join = `true'

OK, this was tedious! And we’re not done, yet. All of that was just to get the mapping from Discord servers and rooms to IRC channels.

<kensanata> /join #rpg-traveller
<kensanata> /join #rpg-osr
<kensanata> /join #rpg-game-design
<kensanata> /join #rpg-indie-games
<kensanata> /join #rpg-game-masters
<kensanata> /join #rpg-announcements
<kensanata> /join #rpg-general
<kensanata> /join #osr-general

And then there is one more thing: you need to add them to the auto-join list of your IRC client. Gaaaaaah! That took longer than expected.

We’ll see how it goes.

​#OSX ​#IRC ​#Bitlbee ​#Discord

Comments

(Please contact me if you want to remove your comment.)

Oh wow. I read the Howto Facebook MQTT page and installed the plugin. And it works! The only thing I had to do was `brew install json-glib`.

Howto Facebook MQTT

– Alex 2017-08-11 09:20 UTC

---

As for Windows:

– Alex Schroeder 2020-01-27 09:38 UTC