Commit Graph

337 Commits

Author SHA1 Message Date
Him188
25b3b2b2be Japt 2020-02-15 15:03:52 +08:00
Him188
98de5893d7 Add @JvmStatic and @JvmOverloads 2020-02-15 14:13:07 +08:00
Him188
f989cd9391 Multiplatform Exceptions to deal with kotlin bug 2020-02-15 12:12:30 +08:00
Him188
8eda95659c Fix multiplatform BotConfiguration 2020-02-14 22:15:29 +08:00
Him188
8a4750badb Fix platform implementations 2020-02-14 22:05:59 +08:00
Him188
2ae7c75a16 Add default values 2020-02-14 21:55:28 +08:00
Him188
ace1174678 Fix configuration 2020-02-14 21:54:03 +08:00
Him188
32e854db29 Improve DeviceInfo 2020-02-14 21:09:36 +08:00
Him188
617b231865 japt Events 2020-02-14 20:21:05 +08:00
Him188
843643a78d Add internal functions for japt 2020-02-14 20:20:28 +08:00
Him188
5b4e99c52d Override close explicitly 2020-02-14 20:13:40 +08:00
Him188
7cd65f92af Fix build 2020-02-13 00:27:07 +08:00
jiahua.liu
55e70bd3c3 smart config 2020-02-13 00:10:59 +08:00
Him188
fec3702ba9 Improve performance 2020-02-12 23:09:34 +08:00
Him188
905d4ede9a Fix build 2020-02-12 13:52:07 +08:00
Him188
7891ffc136 Make interface Event the base type of a event, remove interface Subscribable 2020-02-11 11:56:42 +08:00
Him188
e116224180 Move DeviceInfo 2020-02-09 23:20:29 +08:00
Him188
cf7e325259 Add copyright 2020-02-09 01:01:36 +08:00
Him188
4b162c546c Small fixes 2020-02-07 16:57:00 +08:00
Him188
a7857f147d Remove inline modifier 2020-02-07 12:30:26 +08:00
Him188
22096a9f44 Fix bugs 2020-02-06 15:32:33 +08:00
Him188
388e1a5b7f Cleanup 2020-02-06 13:58:57 +08:00
Him188
37745b839e Add docs 2020-02-05 10:40:10 +08:00
Him188
f793a67ab3 close streams after copying 2020-02-04 08:53:57 +08:00
Him188
4e57eea779 Use kotlin rather that JDK9 2020-02-04 08:49:32 +08:00
Him188
af08f52236 Fix toExternalImage 2020-02-04 08:27:45 +08:00
Him188
9f0169c622 Fix md5 2020-02-04 08:27:32 +08:00
Him188
35dca403bf Image upload 2020-02-03 21:38:37 +08:00
Him188
36ef9c2890 Fix fucking length 2020-02-02 21:01:30 +08:00
Him188
5c68fc53e8 Fix channel 2020-02-02 17:57:27 +08:00
Him188
df56c86fca Fix build 2020-02-01 00:58:23 +08:00
Him188
f1a5bc05ea Add docs 2020-01-31 22:00:38 +08:00
Him188
f9cf47a19a Bot factory 2020-01-31 21:49:48 +08:00
Him188
8bdfad961f Fix build 2020-01-30 20:35:20 +08:00
Him188
f2c682dba5 Cleanup 2020-01-30 20:31:17 +08:00
Him188
d6d1f2c74d Add send(ByteArray) 2020-01-30 20:02:28 +08:00
jiahua.liu
92b7b10f0e network handler update 2020-01-30 13:23:58 +08:00
Him188
905823b94b Slider captcha solver 2020-01-29 23:53:18 +08:00
Him188
5ae4296bd5 Fix PlatformSocket on Android 2020-01-29 20:12:47 +08:00
Him188
6a8e6b93a0 zip support 2020-01-29 19:54:09 +08:00
Him188
b3c6787e0a Introduce MultiPacket 2020-01-29 19:18:52 +08:00
Him188
2f2a8666b9 Add docs 2020-01-29 15:46:05 +08:00
Him188
55e6c93419 JceStruct serialization 2020-01-28 01:01:40 +08:00
jiahua.liu
d8cd6625e5 Android SMS login - Incomplete 2020-01-27 13:05:15 +08:00
Him188
6c2b435779 Android GroupMessage support 2020-01-25 21:20:13 +08:00
Him188
77ddb6f78d QQA Debugging update 2020-01-22 16:42:22 +08:00
Him188
db3a1fb2d1 Fix contentToString 2020-01-20 00:17:45 +08:00
Him188
1a4ad94d20 Simplify logger structure 2020-01-18 12:32:14 +08:00
Him188
37e4ee5bc6 Fix build 2020-01-12 00:40:06 +08:00
Him188
186fa5d88d Fix build 2020-01-12 00:24:17 +08:00
Him188
d7f67e5159 Fix packet parsing 2020-01-11 15:30:19 +08:00
Him188
78ee01ded1 Fix bugs 2020-01-07 19:26:49 +08:00
Him188
48850d7389 Pass compilation 2020-01-06 21:29:57 +08:00
Him188
e43120742c Fix duplicated generated class name 2020-01-06 20:58:36 +08:00
Him188
d3c97fb6d4 Add ECDH 2020-01-06 20:49:26 +08:00
Him188
9bc3d933f7 Rewrite PlatformDatagramChannel, easier to use 2020-01-06 18:29:52 +08:00
Him188
7da89fb42d Remove redundant @Suppress 2020-01-03 19:17:31 +08:00
Him188
1c316a7ee3 Add more shortcuts 2020-01-01 20:30:35 +08:00
Him188
db2bcb4e02 Enhance performance: no redundant lambda creation when constructing Bot 2019-12-30 22:37:48 +08:00
Him188
a47ea07feb Use BotConfiguration 2019-12-24 14:48:07 +08:00
Him188
a496a93433 Auto loader for BotFactory 2019-12-20 10:19:36 +08:00
Him188
2f67f8363b Rewrite 2019-12-19 17:25:49 +08:00
Him188
eb9a64e5a0 Add WeakRef 2019-12-18 12:49:51 +08:00
Him188
0c6e09361d Rename protocol.tim to protocol.timpc 2019-12-17 11:04:04 +08:00
Him188
1e5dcb0e24 Replace all transferTo to Kotlinx transfer, downgrade JDK requirement 2019-12-15 17:28:17 +08:00
Him188
f771077572 Cleanup 2019-12-15 15:27:56 +08:00
Him188
f13d1e063d Remove unexpected main function 2019-12-15 15:23:08 +08:00
Him188
f3e28fa664 Suppress false positive warning 2019-12-08 21:14:08 +08:00
Him188
9469afa680 Make tips clear 2019-12-08 21:05:42 +08:00
Him188
39204730eb Fix StackOverflowError 2019-12-08 21:00:04 +08:00
Him188
03ca3b5fd1 Add Time utils; Remove klock 2019-12-07 13:17:40 +08:00
Him188
1ea8478584 Make all packets and network stuff internal 2019-12-06 23:46:20 +08:00
Him188
ff96ee7ebf Add extra generic type for sender 2019-12-04 18:00:41 +08:00
Him188
05ca6424db Redesign event subscription, using inherited coroutineContext 2019-11-29 01:16:35 +08:00
Him188
57685d39e7 Simplify message handler 2019-11-28 12:44:47 +08:00
Him188
2bf0a96375 Update libraries and reduce redundant code 2019-11-28 11:22:07 +08:00
Him188
59e15a30e1 Add ConnectionOccupiedEvent support 2019-11-26 12:34:58 +08:00
Him188
0ea95c33e6 Add @JvmStatic 2019-11-22 19:09:23 +08:00
Him188
2b1725b7f4 Add e.printStackTrace() 2019-11-20 19:39:15 +08:00
Him188
1419116a7f Fix captcha resolver 2019-11-19 12:27:03 +08:00
Him188
ae86e67f9e Rename InternalAPI as MiraiInternalAPI 2019-11-16 18:46:34 +08:00
Him188
558ece3ae2 Add comments 2019-11-16 13:05:56 +08:00
Him188
0978d2846d Cleanup 2019-11-16 02:33:10 +08:00
Him188
49c80c8eaf Fix bugs 2019-11-16 01:30:30 +08:00
Him188
83e68a3e1c Specify return type 2019-11-16 00:59:42 +08:00
Him188
108bd48b46 Platform specific APIs 2019-11-16 00:58:48 +08:00
Him188
c839253e18 Platform specific APIs 2019-11-16 00:48:18 +08:00
Him188
f26b274fef Platform specific extensions for BotSession 2019-11-16 00:44:25 +08:00
Him188
8b3d710ede Add docs 2019-11-15 22:56:47 +08:00
Him188
046d8968a4 Cleanup 2019-11-15 12:14:15 +08:00
Him188
2b477b3be7 Redesign events 2019-11-08 19:21:29 +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
bd9cf3bfd1 Redesign packets 2019-11-06 19:49:37 +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
3f56faae75 Fixed image 2019-10-27 21:49:50 +08:00
Him188
c973fbd0d1 Fixed image 2019-10-27 21:26:20 +08:00
Him188
c63f54bc8c Fix bugs 2019-10-27 18:28:36 +08:00
Him188
82707d5ec6 Update docs 2019-10-27 13:10:38 +08:00
Him188
ff160c20c8 Graceful ImageUploading 2019-10-27 03:37:00 +08:00
Him188
0a471e9b31 Add extensions for images 2019-10-26 18:43:53 +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
3dfaa4ee00 Powerful MessageChains 2019-10-25 00:51:55 +08:00
Him188
d5bf51a357 Adjust class names 2019-10-24 22:55:33 +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
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
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
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
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
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
2f65e0f5ed Use CompletableJob instead of CompletableDeffered<Unit> 2019-10-15 19:15:54 +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
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
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
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