Commit Graph

19 Commits

Author SHA1 Message Date
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
a51b1074ba Add support for custom emoji in reactions.
This seems to be working correctly, but element-desktop isn't rendering them,
not sure if that's expected or not.

Closes #4
2022-02-19 10:14:43 -06:00
Gary Kramlich
7f99dc4a9e Implement attachments for Discord -> Matrix 2022-02-19 06:20:07 -06:00
Gary Kramlich
6a688f01b7 Quote the user table table for postgres
Fixes #11
2022-02-14 16:46:42 -06:00
Gary Kramlich
c2e1c35dca Add support for edited messages from discord 2022-02-11 02:43:54 -06:00
Gary Kramlich
3e9f927ed4 Add support for deleting messages from discord 2022-02-08 05:18:25 -06:00
Gary Kramlich
8380c4b1b0 Finish up reaction removals from both sides
Also implement redactions on the matrix side
2022-02-08 03:51:29 -06:00
Gary Kramlich
9d13905a77 Add the db for reactions and removals from discord 2022-02-07 16:42:58 -06:00
Gary Kramlich
312018173f Store the message map 2022-02-06 19:08:30 -06:00
Gary Kramlich
6607e773a6 More state management for portals 2022-01-31 05:36:08 -06:00
Gary Kramlich
c1bb55d3cf Tons of works on dm's.
They mostly work including display names and avatars. However that's about all
they do right now.
2022-01-31 04:53:21 -06:00
Gary Kramlich
82208f7b8d Add database/sqlstatestore.go that I forgot to add 2022-01-27 12:24:12 -06:00
Gary Kramlich
680f7bdbea A ton of work getting towards dms.
This commit also points to my fork of discordgo which makes it look like the
official client which is the only way to get the actually contents of a dm
when not authorized as a bot.
2022-01-25 23:22:20 -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
456a15ba56 Initial bot functionality
* The bot now properly joins the management room
* The management room is persisted in the database
* Welcome/help messages are sent in the management room
2021-12-30 09:33:06 -06:00
Gary Kramlich
78ab3d3804 Initial database setup including migrations 2021-12-09 05:37:41 -06:00