Commit Graph

14 Commits

Author SHA1 Message Date
Gary Kramlich
d788565d2b Fix replies from the management room
This was accidentally broken when implementing e2be.
2022-04-27 13:16:11 -05:00
Gary Kramlich
c5f58afe71 End to bridge encryption implementation
So far this is passing my basic tests, but could use some testing from people
that are much more familiar with how this is supposed to work.

Refs #27
2022-04-27 12:43:12 -05:00
Gary Kramlich
7ec86340c3 Add commands for managing guild bridging
guilds status will list the guild names, their ids, and whether or not the
guild is bridged.

guilds bridge <guildID> will bridge the guild with the given ID. If you add the
--entire flag, it will create a portal for each channel on the guild.

guilds unbridge <guildID> will stop bridging the guild with the given ID and
remove all portals for that guild.

Refs #8
2022-04-14 12:44:33 -05:00
Gary Kramlich
8dda382ac3 Redact the qrcode when done.
The QRCode is only good for 2 minutes, so when we're done, it's done.

Fixes #24
2022-04-07 14:03:05 -05:00
Gary Kramlich
4364804a9a Hide the guilds commands as they're not fully functional
Refs #25
2022-04-07 13:21:22 -05:00
Gary Kramlich
928a49b42d Keep track of guild states.
We don't currently bridge anything, but this just keeps everything in sync
with the discord server.
2022-03-29 07:10:16 -05:00
Gary Kramlich
dc3bdc2cec Double puppet support 2022-02-27 22:46:11 -06:00
Gary Kramlich
4b87ea1cc7 Add (dis|re)connect commands and provision api
Also fixed a number of data races.
2022-02-22 07:56:15 -06:00
Gary Kramlich
d883befee5 Basic provisioning api
Includes: login, logout, and ping.
2022-02-22 02:51:22 -06:00
Gary Kramlich
167fdede1f Make sure to set the discord id on login 2022-01-10 14:49:05 -06:00
Gary Kramlich
de1f524e25 Load users from the database during startup 2022-01-05 14:59:35 -06:00
Gary Kramlich
aa7059b1e3 Basic login test making sure we logged in properly
This just adds a message handler and spits out the message in the log to verify
that the websocket did connect successfully.
2022-01-05 11:47:03 -06:00
Gary Kramlich
94104102d2 Initial discord remote auth support.
It works, but nothing is persisted yet as the user object needs some tweaking
especially the database side.
2022-01-04 20:20:45 -06:00
Gary Kramlich
2279916d9c Implement the command parser
Right now this just supports help and version, but will be getting new commands
shortly.
2021-12-30 15:08:41 -06:00