Tristan Gosselin-Hane
dc8461e1d1
Add more logging to re-authenticaiton logic
6 years ago
Tristan Gosselin-Hane
81c94944ba
Renew the mojang auth token if it expires
6 years ago
Tristan Gosselin-Hane
968c4b0dd3
Only force disconnect if we are connected
7 years ago
Tristan Gosselin-Hane
34b5ea94e6
Fixed minecraft uuid lookup method wrongly placing the short UUID into
...
the cache instead of the long uuid.
Closes #25
7 years ago
Tristan Gosselin-Hane
cdeb7f777d
Better logging of incoming and outgoing messages
7 years ago
Tristan Gosselin-Hane
319c0e911a
Actually useful debug output for minecraft exceptions
7 years ago
Tristan Gosselin-Hane
104dfbc94c
Refactored loggers to use proper names to aid debugging
7 years ago
Tristan Gosselin-Hane
0da2038b5b
Catch more discord forbidden exceptions
7 years ago
Tristan Gosselin-Hane
1b41821bde
Clear the list at the beginning of the reconnection
7 years ago
Tristan Gosselin-Hane
a7ce5bdb40
Clear the list of webhooks when the bot reconnects to discord
7 years ago
Tristan Gosselin-Hane
dd3452015a
Fixed a bug causing all connection events to be logged to ES on login
7 years ago
Tristan Gosselin-Hane
2c151541cb
Consistent naming for elasticsearch logging methods
7 years ago
Tristan Gosselin-Hane
099d970302
Don't accept join events until the bot's join even on 1st login
7 years ago
Tristan Gosselin-Hane
5b81b32687
Fixed a few bugs relating to elasticsearch player count
...
* Log the bot's connection
* Ignore duplicate bot connection packets
* Simulate decrementing player count for missed disconnect events
7 years ago
Tristan Gosselin-Hane
b8b54f007f
Greatly improved bot reconnection handling
...
* No more time-based hacks
* End of tab-list back-fill is detected by getting the bot's own
tab-list add packet
* Users that have disconnected since the bot's disconnected now get
their disconnection event logged to elasticsearch once the bot is able
to reconnect to the server
7 years ago
Tristan Gosselin-Hane
8049701c43
Only alter tab list content when formatting a message to send
7 years ago
Tristan Gosselin-Hane
ab7e09e045
Escape some markdown characters in messages sent from the discord side
7 years ago
Tristan Gosselin-Hane
debf2d9ff9
Strip out bold italics and escape char in discord messages
7 years ago
Tristan Gosselin-Hane
51cad28ab3
Add tablist header and footer to mc!tab command
...
* Waiting for upstream support from pyCraft so this uses my fork
7 years ago
Tristan Gosselin-Hane
d31913134a
Properly masquerade chat messages sent via the bridge to elasticsearch
...
Conserve the original nested message in the unformatted chat field
7 years ago
Tristan Gosselin-Hane
f24d730294
Add optional analytics logging to elasticsearch
7 years ago
Tristan Gosselin-Hane
05baa28a8c
Don't spam the discord side with join messages while the tab list is
...
being backfilled
Fix player list bug
7 years ago
Tristan Gosselin-Hane
31c36b4d71
Added half-done tab list implementation
7 years ago
Tristan Gosselin-Hane
d8b152576c
Fixed mojang uuid lookup array index
7 years ago
Tristan Gosselin-Hane
21e2420eaf
Add basic rate-limiting to combat spam
7 years ago
Tristan Gosselin-Hane
452e9c89bb
Clean up database sessions properly
7 years ago
Tristan Gosselin-Hane
e90ae8c45f
Better handling of email usernames
7 years ago
Tristan Gosselin-Hane
2ca84c7fe8
Automatically provision webhooks
...
Closes #5
7 years ago
Tristan Gosselin-Hane
102a2afa4f
Cleanup unused imports
7 years ago
Tristan Gosselin-Hane
894dd7885b
PEP-8 Again!
7 years ago
Tristan Gosselin-Hane
535cbfd215
Fixed the padding for chat message cutoff
7 years ago
Tristan Gosselin-Hane
11aa8757a6
Don't give up on reconnecting if the server is down at the very start
...
(in offline mode this time)
7 years ago
Tristan Gosselin-Hane
fb820cd17e
Full PEP-8 compliance (for real this time)
7 years ago
Tristan Gosselin-Hane
23977145c8
Handle discord permission errors when users have DMs disabled
7 years ago
Tristan Gosselin-Hane
937866234d
Don't give up on reconnecting if the server is down at the very start
7 years ago
Tristan Gosselin-Hane
cae3404ca9
Some PEP-8 styling improvements
7 years ago
Tristan Gosselin-Hane
e662228a4b
Increase reconnect timeout to work around spigot connection throttling
7 years ago
Tristan Gosselin-Hane
c2b32f1363
Get join/leave events from tablist and correct improper use of bidict
7 years ago
Tristan Gosselin-Hane
af98f87f53
Fix the join/leave regex unintentionally letting people fake join/leave
...
events with chat messages
7 years ago
Tristan Gosselin-Hane
26e4b8fa2b
Ignore some more unicode characters that are invisible in minecraft chat
7 years ago
Tristan Gosselin-Hane
43547ff050
Strip emoji from inbound minecraft messages
7 years ago
Tristan Gosselin-Hane
bf48692129
Added someone ugly way of "sanitizing" messages sent through minecraft
...
chat
7 years ago
Tristan Gosselin-Hane
ac940d02e5
Added lots of discord bot functionality
7 years ago
Tristan Gosselin-Hane
997d99e8ee
Remove some legacy cruft.
7 years ago
Tristan Gosselin-Hane
ff4d001d81
Basic bidirectional chat implementation complete!
7 years ago
Tristan Gosselin-Hane
cbf018c1dd
Added new uuid<->username cache using bidict
7 years ago
Tristan Gosselin-Hane
1bd2e399ae
Migrate to the "rewrite" branch of discord.py
...
This branch contains new additions we need such as webhook management
7 years ago
Tristan Gosselin-Hane
246ad5367d
Fix linting problem due to unused import
7 years ago
Tristan Gosselin-Hane
8dbeb7b4e4
Fixed method signature mismatch causing disconnect handler not to fire
7 years ago
Tristan Gosselin-Hane
46277944aa
Added embedded minecraft authentication server to map minecraft
...
accounts to discord accounts.
7 years ago