Commit Graph

645 Commits

Author SHA1 Message Date
Him188
773718409e Fix HexComparator 2019-11-15 10:39:52 +08:00
Him188
bda54781e6 Adjust build.gradle 2019-11-15 10:39:00 +08:00
Him188
7adacdbc6a Add JvmSynthetic 2019-11-15 10:38:03 +08:00
Him188
d3ccb56658 Alter AnnotationTarget of CorrespondingEvent to SOURCE 2019-11-15 10:32:16 +08:00
Him188
ccfb4f085d Make AnnotatedId deprecated 2019-11-15 10:30:01 +08:00
Him188
2953188f20 Fix unrecognizable identity 2019-11-15 10:27:54 +08:00
Him188
1db6618e35 Add ImageLink 2019-11-15 10:04:14 +08:00
Him188
c655c0fe33 Make Profile data class 2019-11-13 20:28:48 +08:00
Him188
cc2343e220 Simplify logical process 2019-11-13 19:54:13 +08:00
Him188
c15651b9f7 Adjust property name and visibility 2019-11-13 19:49:21 +08:00
Him188
a42fbe47a4 Adjust function name 2019-11-12 14:51:01 +08:00
Him188
5684064385 AddContact preview 2019-11-11 22:26:47 +08:00
Him188
1415281569 Add more details for Profile 2019-11-11 21:17:03 +08:00
Him188
ba4f16a27a Add Profile.toString 2019-11-11 20:23:00 +08:00
Him188
6f9579d51b Update docs 2019-11-11 19:48:25 +08:00
Him188
e4353e47f9 Cleanup 2019-11-11 19:38:08 +08:00
Him188
368abbe130 Add unknown statuses 2019-11-11 19:37:33 +08:00
Him188
19ca01b427 BroadcastControllable 2019-11-09 22:03:07 +08:00
Him188
1eb31031de More extensions 2019-11-09 21:27:22 +08:00
Him188
d95a547347 Adjustments 2019-11-08 23:20:11 +08:00
Him188
1e4893c70f Rename to handlePacket 2019-11-08 22:03:01 +08:00
Him188
34627b67e6 Fix Heartbeat 2019-11-08 21:31:35 +08:00
Him188
16a487129a Fix debugger 2019-11-08 21:17:25 +08:00
Him188
f3278c8afe Update dependencies for mirai-debug 2019-11-08 20:51:40 +08:00
Him188
3eca212bf6 Public TEA 2019-11-08 20:50:56 +08:00
Him188
41b2948832 NoLog for object Response 2019-11-08 20:16:30 +08:00
Him188
a45470a0b9 Straightforward toString 2019-11-08 20:15:11 +08:00
Him188
553283ef7d Add NoLog to EventPacketFactory 2019-11-08 20:11:27 +08:00
Him188
a4ea0772e6 Migrate to data class 2019-11-08 20:10:45 +08:00
Him188
70ae02f83e Fix switch 2019-11-08 20:10:23 +08:00
Him188
552d596c11 Override toString 2019-11-08 20:01:56 +08:00
Him188
ad04b0ae48 Unmodifiable properties 2019-11-08 19:59:08 +08:00
Him188
c6eef97c98 Override toString 2019-11-08 19:55:57 +08:00
Him188
13e8443012 Rename isPrevious to previous 2019-11-08 19:55:34 +08:00
Him188
c1e0ba721f Inline val 2019-11-08 19:53:31 +08:00
Him188
2f416a5dc1 Rename MessageEventPacket to MessagePacket 2019-11-08 19:53:16 +08:00
Him188
7b8ddd2c27 data class SessionKeyResponse 2019-11-08 19:52:37 +08:00
Him188
7771856a4a Add MiraiLogger.withSwitch 2019-11-08 19:32:21 +08:00
Him188
2b477b3be7 Redesign events 2019-11-08 19:21:29 +08:00
Him188
745200f6e1 Fix group image 2019-11-07 22:02:58 +08:00
Him188
1f521e96df Platform adjustment 2019-11-07 15:08:19 +08:00
Him188
8bab12854b Platform adjustment 2019-11-07 15:06:38 +08:00
Him188
6dca4419a4 Add platform details 2019-11-06 21:40:18 +08:00
Him188
770b137a13 Remove useless functions 2019-11-06 21:23:41 +08:00
Him188
9ea86c13e2 Android support 2019-11-06 21:22:23 +08:00
Him188
bd9cf3bfd1 Redesign packets 2019-11-06 19:49:37 +08:00
Him188
6f498554b7 update README.md 2019-11-02 18:49:48 +08:00
Him188
61b10db854 Profile suppport 2019-11-02 18:31:01 +08:00
Him188
8c86b934e8 Clearer function name 2019-11-02 18:29:33 +08:00
Him188
f72d73b1ce Add SuspendLazy 2019-11-02 18:27:35 +08:00
Him188
7842ce31e3 Update image API 2019-11-02 12:42:20 +08:00
Him188
4ddfc0b509 Add corresponding events 2019-11-02 12:30:59 +08:00
Him188
8bc59820bc Ignore event 0x0079u 2019-11-02 01:42:25 +08:00
Him188
37ac7d8cbe Fix adjustImageId 2019-11-02 01:29:04 +08:00
Him188
83432a9e03 Docs update 2019-11-02 01:27:43 +08:00
Him188
a56862fa63 Docs update 2019-11-02 01:18:30 +08:00
Him188
e58665f93e Docs update 2019-11-02 01:17:48 +08:00
Him188
e2d04f7113 Add EmptyMessageChain and more extensions 2019-11-02 01:12:03 +08:00
Him188
a28a90ec3d Group member permission determination and change 2019-11-02 00:17:56 +08:00
Him188
e3c3c71290 Fix events 2019-11-01 22:17:24 +08:00
Him188
8178a8c81a Improve performance 2019-11-01 20:03:43 +08:00
Him188
efb3213371 Fix solveCaptcha on Jvm 2019-11-01 18:00:04 +08:00
Him188
f78c47348e Add suspend shortcuts for toExternalImage 2019-11-01 10:23:18 +08:00
Him188
34f10fe2cf adjust login result 2019-11-01 09:44:12 +08:00
Him188
e2171fd158 adjust logger colors 2019-10-31 23:11:55 +08:00
Him188
dd0501521c Restore ip resolver 2019-10-31 22:30:52 +08:00
Him188
048fe647f0 Reduce multiplatform functions 2019-10-31 22:19:26 +08:00
Him188
71d5dda297 ByteArrayPool 2019-10-30 23:00:29 +08:00
Him188
9854000492 add comments 2019-10-28 22:02:42 +08:00
Him188
28149dfed2 Combine image packets into the same file 2019-10-28 22:01:49 +08:00
Him188
8308e68467 rename UninitializedByteReadPacket as Uninitialized 2019-10-28 21:40:11 +08:00
Him188
d8e1c87515 add comments 2019-10-28 21:37:46 +08:00
Him188
f695c9f792 Fix a logical mistake 2019-10-28 21:32:33 +08:00
Him188
d4dd720e4e update demo 2019-10-28 21:24:35 +08:00
Him188
d3270bb36f Adjust running coroutineContext 2019-10-28 21:24:03 +08:00
Him188
ead17724b6 update docs 2019-10-28 20:12:39 +08:00
Him188
e7725bdcaa Update DOCs 2019-10-28 14:27:29 +08:00
Him188
c1351f48b6 Add more extensions for MessageChain 2019-10-28 14:03:39 +08:00
Him188
b6f54dbb7b Fixed image 2019-10-27 23:20:53 +08:00
Him188
3f56faae75 Fixed image 2019-10-27 21:49:50 +08:00
Him188
c973fbd0d1 Fixed image 2019-10-27 21:26:20 +08:00
Him188
eb02449431 More clear subject declaretion 2019-10-27 18:28:54 +08:00
Him188
c63f54bc8c Fix bugs 2019-10-27 18:28:36 +08:00
Him188
4e27ad3262 Improve concurrency 2019-10-27 17:27:57 +08:00
Him188
fa0f4e49df Adjust subject declaration 2019-10-27 14:11:40 +08:00
Him188
82707d5ec6 Update docs 2019-10-27 13:10:38 +08:00
Him188
5bf1ecb409 Remove useless functions 2019-10-27 03:50:41 +08:00
Him188
141b5a4e2f Adjust function visibility and enhance efficiency 2019-10-27 03:48:45 +08:00
Him188
ff160c20c8 Graceful ImageUploading 2019-10-27 03:37:00 +08:00
Him188
de86041d44 Powerful subscribers 2019-10-27 03:36:26 +08:00
Him188
0a471e9b31 Add extensions for images 2019-10-26 18:43:53 +08:00
Him188
47ece90d60 Update docs 2019-10-26 17:17:46 +08:00
Him188
490255bcd5 Update docs 2019-10-26 17:06:40 +08:00
Him188
28859056a1 Improve image uploading 2019-10-26 15:54:02 +08:00
Him188
a2f35f5d2d ExternalImage 2019-10-26 15:52:31 +08:00
Him188
d786f59f5c Fix 2019-10-25 21:21:38 +08:00
Him188
354321dedc cleanup 2019-10-25 00:55:29 +08:00
Him188
3dfaa4ee00 Powerful MessageChains 2019-10-25 00:51:55 +08:00
Him188
ffe8339c9c Ensure that ResponsePacket will be sent 2019-10-24 23:26:55 +08:00
Him188
d5bf51a357 Adjust class names 2019-10-24 22:55:33 +08:00
Him188
6c6f0a48c7 update docs 2019-10-24 22:25:12 +08:00
Him188
550b4e86de inline MessageChain 2019-10-24 22:22:57 +08:00
Him188
7892333c27 Cleanup 2019-10-24 20:51:37 +08:00
Him188
3ab540d5f2 Rename BufferedImage as ExternalImage 2019-10-24 15:03:42 +08:00
Him188
0334d33d7e Extensions of subscribers for Bot 2019-10-24 15:02:57 +08:00
Him188
cb320dd988 Inline messages, improved contacts 2019-10-24 15:01:56 +08:00
Him188
1f9b003c55 Inlined message classes 2019-10-24 14:33:08 +08:00
Him188
eed9c8f160 Let BotNetworkHandler implements CoroutineScope 2019-10-24 10:59:13 +08:00
Him188
b7628cd3d6 Adjust package names and file names 2019-10-22 20:08:08 +08:00
Him188
3f30bb4d54 Image uploading is now available 2019-10-22 15:28:48 +08:00
Him188
cfd5b2e845 Image uploading is now available 2019-10-21 01:41:33 +08:00
Him188
d6201a14ba Image uploading is now available 2019-10-21 01:21:24 +08:00
Him188
0e5f6d4787 Remove typing events 2019-10-20 22:06:29 +08:00
Him188
0494b374ba Image sending is now available 2019-10-20 22:01:50 +08:00
Him188
bc57001e36 Image uploading 2019-10-20 21:37:34 +08:00
Him188
28b47f9603 Image uploading 2019-10-20 21:27:59 +08:00
Him188
14722eb838 Image uploading 2019-10-20 20:27:35 +08:00
Him188
d06197d346 Image uploading 2019-10-20 19:30:17 +08:00
Him188
3474c87faa Image uploading 2019-10-20 16:50:24 +08:00
Him188
fdf50e4d1d Image uploading 2019-10-19 23:19:45 +08:00
Him188
4d346a2c3d Fix SendFriendMessage due to TIM update 2019-10-19 14:21:52 +08:00
Him188
05e590c93f Convert to expression fun 2019-10-19 13:51:16 +08:00
Him188
cf052614f5 Use Klock 2019-10-19 13:41:36 +08:00
Him188
244996ac28 Fail-fast decryption and encryption 2019-10-19 13:18:57 +08:00
Him188
8353a6ae8d Improve performance 2019-10-19 11:59:08 +08:00
Him188
735b0934b6 Name and permission analyzing is now available 2019-10-18 19:33:51 +08:00
Him188
d5587bb3d8 Name and permission analyzing is now available 2019-10-18 19:32:03 +08:00
Him188
7e90737c68 Merge remote-tracking branch 'origin/master' 2019-10-18 18:43:06 +08:00
Him188
fdb3be9453 Improve performance 2019-10-18 18:42:45 +08:00
PeratX
f54db4981f core: remove PluginManager 2019-10-18 09:37:28 +08:00
Him188
24404f9af4 Rename qqNumber as account 2019-10-17 10:01:20 +08:00
Him188
09046ae686 Rewrite packets 2019-10-16 22:33:02 +08:00
Him188
61895b5c8e Update message 2019-10-16 18:31:08 +08:00
Him188
4d870b2434 Rename Image.imageId to Image.id 2019-10-16 12:59:49 +08:00
Him188
2b6a8f1da8 MessageChain is now overriding MutableList<Message> 2019-10-16 12:39:21 +08:00
Him188
ac9a445abf Update doc 2019-10-16 12:38:37 +08:00
Him188
10aa950b63 Update README 2019-10-15 21:37:16 +08:00
Him188
2f65e0f5ed Use CompletableJob instead of CompletableDeffered<Unit> 2019-10-15 19:15:54 +08:00
Him188
fb8829a035 Add lock for TemporaryPacketHandlers 2019-10-15 19:04:29 +08:00
Him188
f9daee0379 Update docs 2019-10-15 19:02:57 +08:00
Him188
fdd9db65b9 Update docs 2019-10-14 20:40:30 +08:00
Him188
93607e4999 Platform specified Contact 2019-10-14 14:19:45 +08:00
Him188
ad43a92be4 Use PacketHandler.Key 2019-10-13 22:21:26 +08:00
Him188
d89f8acc43 Multiplatform 2019-10-13 20:19:54 +08:00
Him188
c09d44f45a Fix subscribeAll 2019-10-11 18:10:54 +08:00
Him188
8e323644ab
Add top-level fun for subscribeAll 2019-10-11 07:48:30 +08:00
Him188
a9b3ecf5ea Improve getRandomByteArray 2019-10-10 12:38:02 +08:00
Him188
ff6403cd87 Merge remote-tracking branch 'origin/master' 2019-10-10 11:30:28 +08:00
Him188
5292b22461 Small updates 2019-10-10 11:30:06 +08:00
Him188
f51790e79b Add EventScope 2019-10-10 11:29:22 +08:00
Him188
4d09010cf0 Cleanup 2019-10-10 11:28:25 +08:00
Him188
00d8e26850 Add atomicFU and kotlinx.IO 2019-10-10 11:27:30 +08:00
Him188
f7cdbbde2d
Blocking pass packets to handlers 2019-10-09 23:53:42 +08:00
Him188
a64123bdbf Cleanup 2019-10-09 20:32:24 +08:00
Him188
69954add48 cleanup 2019-10-09 20:24:14 +08:00
Him188
f9f7d4a7d1 Merge remote-tracking branch 'origin/master' 2019-10-09 20:23:23 +08:00
Him188
0b667ba355 Sealed messages 2019-10-09 20:22:53 +08:00
PeratX
79e211256e ECDH: remove 2019-10-09 18:44:53 +08:00
PeratX
712d8cac8b Merge remote-tracking branch 'origin/master' 2019-10-09 18:30:37 +08:00
PeratX
4b4f43cc27 InternalEventListeners: typo 2019-10-09 18:30:12 +08:00
Him188
47e3570702 Cleanup 2019-10-09 18:12:32 +08:00
Him188
d6125cd9d4 Move logging extensions for bot to BotHelper.kt 2019-10-09 18:05:34 +08:00
Him188
7131600643 Cleanup 2019-10-09 18:04:08 +08:00
Him188
db6f74a07d Remove meaningless @Synchronized 2019-10-09 17:48:47 +08:00
Him188
4cccd854cc Remove useless files 2019-10-09 17:47:20 +08:00
Him188
b9720385f0 Fixed event listening 2019-10-09 17:40:39 +08:00
Him188
c69f2ab31e Group events into mixed files 2019-10-09 16:42:37 +08:00
Him188
d239feeda4
Update build.gradle 2019-10-09 13:00:49 +08:00
Him188
97f47b5484 Working on uploading image 2019-10-08 16:35:30 +08:00
Him188
522ac8b839 Improved message parsing 2019-10-08 16:32:52 +08:00
Him188
c6373ec727 Rename .java to .kt 2019-10-08 16:32:48 +08:00
Him188
1728e80532 Add ByteArray.decryptBy 2019-10-07 18:13:52 +08:00
Him188
5f0220b905 Rename lazyEncode to dataEncode 2019-10-07 17:49:15 +08:00
Him188
8ca3e6578d Use MessageKey instead of MessageId 2019-10-07 13:50:36 +08:00
Him188
3dfe7f6e6f Make ClientEventResponsePacket inside ServerEventPacket 2019-10-07 13:18:04 +08:00
Him188
a8039e5e1f Make addHandler suspend 2019-10-07 13:11:28 +08:00
Him188
e05ad6cf6a Add comments 2019-10-07 13:04:54 +08:00
Him188
2fca15b0c1 Add Bot.qqNumber 2019-10-07 13:04:35 +08:00
Him188
2c35f9e416 Change id type to UByte 2019-10-07 13:01:55 +08:00
Him188
2b3deb24d3 Make sendPacket not synchronized 2019-10-07 12:54:13 +08:00
Him188
05c73017ff Login timeout 2019-10-07 12:52:28 +08:00
Him188
26b3ac07c2 Unmodifiable IP list 2019-10-07 12:49:39 +08:00
Him188
6d58cb1880 Debugging updates 2019-10-07 12:44:44 +08:00
Him188
8e97b47a8c Small updates 2019-10-05 13:42:00 +08:00
Him188
2d825992bb Small updates 2019-10-05 13:40:20 +08:00
Him188
624d471432 Small updates 2019-10-03 21:12:54 +08:00
Him188
ba7e50de31 Not use random device name 2019-10-03 19:37:02 +08:00
Him188
7dc35240e0 Rename Login to LoginHandler 2019-10-03 19:36:01 +08:00
Him188
a157a106e8 Rename Login to LoginHandler 2019-10-03 19:34:49 +08:00
Him188
71a1a40957 Rename tryLogin to login 2019-10-03 19:32:58 +08:00
Him188
db77227d35 Rewrite in kotlin 2019-10-03 19:26:33 +08:00
Him188
1e3db169b0 Rename .java to .kt 2019-10-03 19:26:30 +08:00
Him188
b38c262df0 Multiplatform with gradle building 2019-10-03 19:07:03 +08:00
Him188
58c6a40795 Modifiable MiraiLogger 2019-10-03 13:57:02 +08:00
Him188
cca32a037b Shortcut for bot.login 2019-10-03 13:56:01 +08:00
Him188
333178388a Renamed captcha packet 2019-10-03 13:42:57 +08:00
Him188
41ddd4c2be Small updates 2019-10-03 12:56:08 +08:00
Him188
7c5c01bb40 Remove unnecessary let 2019-10-03 12:33:35 +08:00
Him188
7bf8d3fb19 Fixed bug 2019-10-03 12:30:44 +08:00
Him188
965958bc24 Use encryptAndWrite 2019-10-03 12:30:21 +08:00