Commit Graph

1431 Commits

Author SHA1 Message Date
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
ChomeNS
5f569246af fix: null 2025-05-16 17:40:58 +07:00
ChomeNS
a3e0482604 refactor: move discord and irc channels configuration to each bot's option for easy server adding and also makes the config less messy 2025-05-16 17:34:42 +07:00
ChomeNS
c7a578f1d0 refactor: improve RandomTeleportCommand 2025-05-16 16:51:05 +07:00
ChomeNS
8ab8ecd2f7 fix: make findalts use the ip from the current player list first but if not found then use the one from the database 2025-05-15 19:57:15 +07:00
ChomeNS
8dad298c50 refactor: improve FindAltsCommand a bit 2025-05-15 18:21:39 +07:00
ChomeNS
b699cb2f7a fix: *music testsong throwing NPE because i didn't set the context 2025-05-15 17:48:19 +07:00
ChomeNS
c5da3a8689 feat: actually make the strings like abc123.among.us__69 not require quotes in SNBTUtilities 2025-05-14 20:35:26 +07:00
ChomeNS
76e75f3601 fix: prefix self care not working for the Something went wrong while saving the prefix 2025-05-14 16:44:10 +07:00
ChomeNS
879c1acf1d fix: netmsg translations not working (lmao) 2025-05-14 16:43:47 +07:00
ChomeNS
2b1a4067ab fix: i thought i can trust IDEA (*echo spaces not working) 2025-05-11 07:52:42 +07:00
ChomeNS
092f83ade4 fix: chat not working 2025-05-10 18:51:24 +07:00
ChomeNS
e9cc4f1499 refactor: send music loading messages to the context instead of tellraw 2025-05-10 16:48:55 +07:00
ChomeNS
f497651043 fix: removed too much 2025-05-10 16:33:24 +07:00
ChomeNS
839b202d11 refactor: let each music converter calculate the block position instead of having one in MusicPlayerPlugin 2025-05-10 16:31:20 +07:00
ChomeNS
3f7625895f fix: hopefully fix the music player racing contest 2025
refactor: change the ordering of variables and things
2025-05-10 16:10:42 +07:00
ChomeNS
c392db1903 fix: hopefully fix some errors spam when the bot is stopping sometimes
you don't really notice it unless you host the bot on github actions which changes instance every 6 hours
2025-05-10 15:57:38 +07:00
ChomeNS
7660ac57bc feat: make console prompt [server:1234] > so we can finally see the console server !!! 2025-05-10 13:21:53 +07:00
ChomeNS
56c7aa5493 refactor: don't trim the string again since we already did it 2025-05-09 09:42:07 +07:00