Gary Kramlich
e6208cafe7
Add a README.md
2022-02-11 04:35:30 -06:00
Gary Kramlich
210fdda2fc
Fix a crash when discord doesn't send an author
2022-02-11 03:56:52 -06:00
Gary Kramlich
c2e1c35dca
Add support for edited messages from discord
2022-02-11 02:43:54 -06:00
Gary Kramlich
11bd655027
Implement message editing from the matrix side
2022-02-10 16:09:54 -06:00
Gary Kramlich
b6ee5bccc6
Update to the lastest rev of our discordgo fork
...
This was necessary so we can get the content type and description of attachments
2022-02-10 05:37:59 -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
33c3cc998e
implement reactions from the discord side
2022-02-07 05:00:40 -06:00
Gary Kramlich
3efe242d70
Implement reactions from the matrix side
2022-02-06 22:20:13 -06:00
Gary Kramlich
312018173f
Store the message map
2022-02-06 19:08:30 -06:00
Gary Kramlich
d32b6662fb
Fix the version in the replace for discordgo
2022-01-31 14:33:48 -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
f20d204dd7
Remove some unnecessary logging messages
2022-01-27 12:29:11 -06:00
Gary Kramlich
82208f7b8d
Add database/sqlstatestore.go that I forgot to add
2022-01-27 12:24:12 -06:00
Gary Kramlich
a863c3ff15
Update to the latest revision of the discordgo fork
2022-01-27 12:23:52 -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
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
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
Gary Kramlich
be3982e585
Start of the bot and it's matrix connection
2021-12-07 19:08:58 -06:00
Gary Kramlich
4be28617e0
Start of the run command and the bridge type
2021-11-20 04:59:52 -06:00
Gary Kramlich
8086ad1708
Add logging config and add some helper functions
2021-11-20 04:58:59 -06:00
Gary Kramlich
e27846c25b
update maulogger
2021-11-20 04:57:21 -06:00
Gary Kramlich
f97da27731
Add a force option to the generate-config command
2021-11-20 03:33:19 -06:00
Gary Kramlich
79713cf0ef
Fix some defaults in the appservice config
2021-11-20 03:33:06 -06:00
Gary Kramlich
4e074afc64
Add a generate-config command
2021-11-20 03:27:46 -06:00
Gary Kramlich
34afda42a1
Add a -f option to generate registration
...
Because changes to the registration file require a restart of the matrix server
changes to it should be minimized. Therefore, if generate-registration is ran
while the file exists, we error out unless the --force/-f option is specified.
2021-11-19 17:15:52 -06:00
Gary Kramlich
6a87e389b6
Fix a bug where the config wasn't loaded properly
2021-11-19 17:09:02 -06:00
Gary Kramlich
2b63ddc6b8
Rename the config structs setDefaults to validate
...
This allows us to check for some required values and give an easy to respond
to error at startup rather than a lot of validation during run time.
2021-11-19 16:53:43 -06:00
Gary Kramlich
8553f49ac6
Add the LICENSE file.
...
This work is based mostly on mautrix-whatsapp so we're using that license as
we're required to.
2021-11-19 16:32:06 -06:00
Gary Kramlich
5a11f49dbe
Make sure we always load our default config values
2021-11-19 16:31:19 -06:00
Gary Kramlich
09911a11e3
Add a generate-registration command
2021-11-18 02:44:21 -06:00
Gary Kramlich
5b3811ce96
Start of the config
2021-11-18 02:03:42 -06:00
Gary Kramlich
3305345ce8
add a .gitignore
2021-11-18 01:31:16 -06:00
Gary Kramlich
f6493e0d87
Initial scaffolding
2021-11-18 01:30:50 -06:00