git-bruh
53e2ef8e99
demo
2022-01-09 17:29:04 +05:30
MarkusRost
865c1eb9f4
Make Discord id length variable and fix webhook hash ( #16 )
...
* prevent duplicate user for interactions
* fix for older discord accounts
* check channel mentions against full channel list
* Fix compatibility for Python 3.7
Replace dict with Dict object from typing module
* remove scary hashing
* always expect guild_id
* change hash to djb2
* Revert "always expect guild_id"
This reverts commit dbcb3d1b9c97f6ceda0cf982b4bd7228926112c3.
* guild_id warning, don't group bot created webhooks
* fmt
Co-authored-by: Friskygote <7283122+Friskygote@users.noreply.github.com>
Co-authored-by: Wolf Gupta <e817509a-8ee9-4332-b0ad-3a6bdf9ab63f@aleeas.com>
2022-01-01 18:40:37 +05:30
MarkusRost
bae2716aef
prevent duplicate user for interactions ( #15 )
2021-12-29 20:28:11 +05:30
git-bruh
84afc8c503
update readmes
2021-12-09 13:43:13 +05:30
git-bruh
c2f3e97611
remove useless search in users query
2021-12-09 13:37:58 +05:30
git-bruh
cef8cb0bbf
pass decoded username to db query when looking for mentions
2021-12-01 11:58:38 +05:30
git-bruh
819e1cdbc1
fix mentions, closes #12
2021-12-01 11:37:54 +05:30
Charlie
7a166da1bb
Update README.md ( #9 )
2021-09-26 06:44:26 +00:00
git-bruh
8607a402fa
send auth token in headers
2021-08-04 17:32:08 +05:30
git-bruh
17ad06c503
todo
2021-07-25 12:56:52 +05:30
git-bruh
fe1486bcec
readme
2021-07-25 12:54:34 +05:30
git-bruh
f83638aef0
Fix formatted body for replies
2021-07-19 21:27:37 +05:30
git-bruh
416bfbe261
don't send empty formatted body of parent event in replies
2021-07-19 20:03:04 +05:30
git-bruh
0ac5faf357
oops
2021-07-19 17:39:43 +05:30
git-bruh
597c82cd88
don't send formatted body needlessly
2021-07-19 17:20:20 +05:30
git-bruh
3b47e5af3f
add (some) sticker support
2021-07-04 15:08:32 +05:30
git-bruh
4db1b48c71
fix reply fallback stripping regex
2021-07-04 12:39:05 +05:30
git-bruh
d864b0cc44
use a proper markdown parser
2021-06-28 15:18:59 +05:30
git-bruh
30688bf5b0
strip reply fallbacks, fixes nested replies rendering
2021-06-27 19:24:22 +05:30
git-bruh
3a526f8767
try fix for webhook edits edge case
2021-06-06 15:26:05 +05:30
git-bruh
fac23476e4
Clear up README
2021-06-06 13:30:37 +05:30
git-bruh
67db7b1be0
fix synapse again
2021-06-05 20:14:44 +05:30
git-bruh
31b7c0dba8
fix synapse
2021-06-05 18:18:31 +05:30
git-bruh
f1ef46d37c
try fixing nested replies
2021-05-18 15:00:48 +05:30
git-bruh
eef7721153
try reconnecting, remove useless stuff
2021-05-18 13:34:42 +05:30
git-bruh
a3ee85d955
fix messages > 2000 chars, fix fetching channel names in messages, fix newlines
2021-05-17 21:08:35 +05:30
git-bruh
4713a00016
cleanup
...
* Use websocket events to sync usernames/avatars instead of periodic syncing.
* Use caches for fetched room_ids, room state (for usernames and avatars). Also switch to using a single cache with locks.
* Don't store full message objects in cache, just store the relation of matrix event IDs to discord message IDs and vice-versa. Content can be fetched from the server instead.
* Don't rely on websocket events for mentioning Discord users, mentions are now done by mentioning the dummy matrix user. The ID to be mentioned is extracted from the MXID instead.
* General clean-ups.
2021-05-13 15:51:58 +05:30
git-bruh
b21c82ccd0
fix code injection in queries
2021-05-05 10:30:10 +05:30
git-bruh
b9e5409300
fix blank message detection
2021-05-03 18:12:41 +05:30
git-bruh
6b20650503
appservice: fix attachments (message content can be empty)
2021-04-25 10:36:35 +05:30
git-bruh
a481efeee3
appservice: send links for matrix attachment
2021-04-20 18:37:43 +05:30
git-bruh
a14efadfd6
appservice: update README.md
2021-04-18 18:15:44 +05:30
git-bruh
78d85a2374
appservice: support messages from other webhooks
2021-04-18 18:14:18 +05:30
git-bruh
7e454a14a5
minor refactors, embeds
2021-04-18 07:53:21 +00:00
git-bruh
2958b1b90e
Update README.md
2021-04-17 10:16:17 +05:30
git-bruh
d6740b4bd3
Appservice ( #4 )
2021-04-17 10:15:51 +05:30
git-bruh
4b876734bb
Update README.md
2021-03-26 18:19:46 +05:30
git-bruh
8062ba36c6
refactor ( #5 )
...
* separate dir
* lint
* config
* log unhandled exceptions
* refactor
* refactor webhook check
* cogs cannnot be loaded from another dir
* fix
* fix
* use logger.exception
* Update README.md
* Update README.md
* fix
* Update README.md
* Create README.md
* rm basedir
* cogs
* Update README.md
* bold
2021-03-25 10:48:04 +05:30
git-bruh
96ef420f28
dont escape <,>
2021-02-08 14:51:05 +05:30
git-bruh
9936b5cec8
use set for webhook ids
2021-02-06 20:03:10 +05:30
git-bruh
abef3a122d
dont ignore other webhooks
2021-02-06 12:50:03 +05:30
git-bruh
d81fe7199d
log
2021-02-06 12:26:36 +05:30
git-bruh
cd7967a225
add script to migrate emotes
2021-02-01 11:52:56 +05:30
git-bruh
d4cbcb7f61
wait for better screenshots
2021-02-01 11:46:45 +05:30
git-bruh
eb3d5dc273
update README.md
2021-02-01 11:44:17 +05:30
git-bruh
6aa1d541df
Better exception handling and stuff
2021-02-01 11:33:27 +05:30
git-bruh
c742a0bd55
update
2021-01-27 17:48:09 +05:30
git-bruh
4eb73aa87f
fmt
2021-01-24 13:46:50 +05:30
git-bruh
333e670e0e
update
2021-01-24 13:44:41 +05:30
git-bruh
2e65c7acae
readme
2021-01-24 12:05:45 +05:30