Commit Graph

1449 Commits

Author SHA1 Message Date
ChomeNS
0ae4f32c3a fix: chadgpt broke the command handler again ahh 2025-06-10 20:25:51 +07:00
ChomeNS
32f93f247e fix: delay 5 seconds before thinking that the server is vanilla (this is confirmed to still work on actual vanilla servers and on kaboom too)
5 seconds because the server sends out the commands packet a bit later after login, but it seems like the player left packet (which is used to detect vanish) is sent before that
2025-06-08 11:51:48 +07:00
ChomeNS
ef3298e3f8 refactor: put the disconnect reasons that needs 5 seconds delay into a static list 2025-06-08 09:20:24 +07:00
ChomeNS
7440dccc9b refactor: don't ignore if the bot isn't logged in when sending a message in console
although the selector shows nothing when the message gets flushed when we login since it uses the old bot uuid
2025-06-08 09:19:51 +07:00
ChomeNS
313c4389a1 fix: EndCommand while cloop running deadlocks the executor causing the bot to not reconnect and bricks (absolute cinema) 2025-06-08 09:08:53 +07:00
ChomeNS
3d6f1193e6 refactor: merge cloop task into CommandLoop 2025-06-08 09:07:57 +07:00
ChomeNS
233b386af9 fix: queue query when the bot doesn't have enough permissions 2025-06-07 17:53:36 +07:00
ChomeNS
12b8359c6b fix: bot runs out of memory when someone deop or gamemode it while the core is active (music playing, cloop running) 2025-06-07 17:23:30 +07:00
ChomeNS
9a81921baa fix: add goofy code to fix the color after a cspy message when the username has section signs being reset 2025-06-03 19:07:23 +07:00
ChomeNS
bcaf59c19d refactor: don't use .color(TextColor) when we can Component.text(something, color) or Component.translatable(something, color, ...args) 2025-06-03 16:15:54 +07:00
ChomeNS
78f84f1c71 refactor: use selector for trusted broadcast instead of username and some code cleanup 2025-06-03 15:58:56 +07:00
ChomeNS
ba53a265c5 refactor: small change in TestCommand 2025-06-03 15:54:13 +07:00
ChomeNS
3960bf1fab refactor: improve how the persistent data in PlayerEntry are stored which fixes the authenticated trust level being wiped when unvanish 2025-06-01 07:47:23 +07:00
ChomeNS
21100ee7b1 refactor: use Executor.execute instead of submit
refactor: use mcprotocollib's packet handler executor to send the brand and the client information (even though it's for handling packets)
2025-05-31 17:30:23 +07:00
ChomeNS
12d01932c1 fix: cannot trust ChadGPT generated code 2025-05-31 14:31:02 +07:00
ChomeNS
f542bb6fc1 refactor: improve getting TrustLevel from discord roles and improve CommandHandlerPlugin (finally) 2025-05-31 08:34:43 +07:00
ChomeNS
23b7c3351a feat: god self care (can't believe i don't have one) 2025-05-30 16:45:50 +07:00
ChomeNS
271c1e797a refactor: clarify the mail command's description to be more clear that it can only send mail to players, not real e-mails 2025-05-29 20:16:22 +07:00
ChomeNS
5cd9fb3959 fix: be careful with querying when the bot doesn't have enough permissions 2025-05-29 20:11:29 +07:00
ChomeNS
7e5d3c8fc8 fix: race condition in ChatPlugin event dispatching 2025-05-29 20:10:49 +07:00
ChomeNS
ee8d68c4e3 fix: filter already exists translation 2025-05-27 20:05:07 +07:00
ChomeNS
67774125c9 fix: nullable doesn't exist? weird 2025-05-27 20:03:26 +07:00
ChomeNS
b21104c306 chore: bump dependencies 2025-05-27 19:01:59 +07:00
ChomeNS
76e874e077 refactor: make the discord channel in config based on channel id instead of channel name so we can rename the channels from tonyboom to jorkboom for example, without having to modify the config 2025-05-27 18:21:08 +07:00
ChomeNS
48ffc7c01c refactor: make eval use only 1 connection to hopefully reduce threads amount + some misc refactors
fix: in GetBotInfoFunction, i misspelled `username` as `usernane`, it has been fixed
refactor: remove GetLatestChatMessageFunction, since the functions are now global and not bot-specific (yes, i know i can still implement it somewhere like in EvalPlugin or even call a function in GetLatestChatMessageFunction itself passing the bot, but no one really use this function anyway except the last time when ploat made some telnet ahh eval thing which used this function)
2025-05-27 17:48:17 +07:00
ChomeNS
f68ce719f9 feat: store keys per-user using discord instead of having a global key
refactor: use language on DirectMessageEventHandler
refactor: some misc refactors (i forgot what i did lol)
2025-05-26 19:46:38 +07:00
ChomeNS
9afbdc26b3 refactor: catch Throwable on some things
mainly the ListenerManagerPlugin because it also handles packets so we don't want the bot to disconnect even on fatal error
2025-05-25 13:12:26 +07:00
ChomeNS
a368cc6f13 refactor: reuse the packet handler executor 2025-05-25 13:09:10 +07:00
ChomeNS
393715f9da refactor: use switch-case in MidiConverter + new panning method that should be correct + misc refactors 2025-05-25 12:40:55 +07:00
ChomeNS
263ea7458c fix: stack overflow kick exploit by section sign + characters that aren't in the codes like v 2025-05-25 09:21:54 +07:00
ChomeNS
95a1f58fe1 feat: very ass discord slash commands 2025-05-25 09:21:05 +07:00
ChomeNS
040be16246 refactor: use the deserializer from LegacyComponentSerializer instead of our own which fixes the wikipedia page for Among Us 2025-05-25 08:04:28 +07:00
ChomeNS
c68e300047 feat: add more stuff to AuthCommand but restrict setting other player's level to TrustLevel.MAX only 2025-05-25 07:53:52 +07:00
ChomeNS
0105ee95a2 refactor: improve comma adding in SNBTUtilities 2025-05-24 18:14:30 +07:00
ChomeNS
007e4b5b59 refactor: improve servereval output string getting + add shell on servereval 2025-05-24 17:42:22 +07:00
ChomeNS
edbd96366b feat: ignore case prefixes so stuff like CBOT:TEST will work 2025-05-24 15:57:30 +07:00
ChomeNS
53a3d95032 feat: also deserialize ANSIs in discord embed (for command output)
pretty small change but still
2025-05-23 18:25:29 +07:00
ChomeNS
8c8a058f38 fix: limit AuthCommand a bit... it seem dumb idea :( 2025-05-22 20:35:51 +07:00
ChomeNS
ad5e203417 feat: *auth so you don't have to type hash every time (this can be abused idk) 2025-05-22 18:50:28 +07:00
ChomeNS
8fd2f2ebb3 refactor: just make getBlock return 0 when it fails 2025-05-22 17:24:04 +07:00
ChomeNS
f3d3355bd2 fix: bots -> bot's (i think intellij is wrong? but with apostrophe it's less confusing with the plural "bots") 2025-05-22 17:15:03 +07:00
ChomeNS
37e69779ae refactor: move the time formatting thing into TimeUtilities 2025-05-22 17:10:18 +07:00
ChomeNS
cdaa82bdfa fix: OOB on core exist and complete (happen when bot switch to dimensions like nether and/or the end) 2025-05-21 18:15:42 +07:00
ChomeNS
8ab00505e4 fix: emergency 9 being replaced with 3 for discord 2025-05-21 16:18:39 +07:00
ChomeNS
3f0ae861e6 feat: set commandBlockOutput to false on login 2025-05-20 16:26:47 +07:00
ChomeNS
0f28e8c900 fix: make the events work with new adventure and improve SNBTUtilities a bit 2025-05-19 18:39:18 +07:00
ChomeNS
b4f0958202 feat: finally use adventure component serializers for component parsing (ComponentUtilities)
there is an issue with the legacy code parsing where it doesn't reset the styles when there's a color code, but that is since the old parser, it's not that important but just something to note
similar thing goes to discord message deserialization, the style goes first then the color, but for the style to be displayed in minecraft, the color has to go first then the style. an example will be like: `§l§c[§cOP§c] §r§c§r§cchayapak§r: abc`, the `l` and `c` should be swapped
hex colors also didn't get rounded correctly for some reason. my custom chat format is completely white in discord, although minimessage rainbow and gradients works perfectly fine, which is very weird, maybe it thinks my custom chat format looks white
2025-05-18 19:52:43 +07:00
ChomeNS
d1d7b9fb29 fix: auth timeout seconds 2025-05-18 09:22:49 +07:00
ChomeNS
5b56f411a1 refactor: check player left and ip query without queue for faster trusted broadcast and filtering 2025-05-17 17:26:16 +07:00
ChomeNS
a60baad6f3 feat: .console discord <message> 2025-05-16 17:50:56 +07:00