Him188
447e7349fc
Move MiraiProtocol from BotConfigurationBase to BotConfiguration
2020-07-02 01:20:49 +08:00
Him188
680dc0f0cf
Fix memory leak on failure on image uploading ( Fix #385 , fix #387 )
2020-07-01 23:24:14 +08:00
Him188
dfddfae876
Add PlatformLogger.printLog, .Color, .timeFormat, .color ( Fix #407 )
2020-07-01 22:27:42 +08:00
Him188
4cb5d654b2
Delegate json serialization strategy to BotConfiguration
2020-06-17 14:19:59 +08:00
Him188
245d52149e
Add default dir
and file
for redirectBotLogToDirectory
and redirectBotLogToFile
2020-06-16 15:11:57 +08:00
Him188
c4541c8fdc
Fix directory detecting
2020-06-16 15:10:03 +08:00
Him188
f175d07c0a
Introduce multi-platform BotConfiguration structure; Add redirectNetworkLogToDirectory
functions, fix #371
2020-06-16 15:09:32 +08:00
Him188
3178aeb619
Fix doc
2020-06-15 16:03:54 +08:00
Him188
e52c341155
Arise deprecation level
2020-06-15 15:02:53 +08:00
Karlatemp
f5165f7d77
Add Manifest; Disabling SwingSolver with vm property mirai.no-desktop
( #362 )
...
* Disabling SwingSolver with vm property 'mirai.no-desktop'
// for ssh
// java -Dmirai.no-desktop ....
* Add Manifest
* Removed Per-Entry Attributes
Co-authored-by: Him188 <Him188@mamoe.net>
2020-06-15 11:13:15 +08:00
Him188
f74ee547f2
Fix #369
2020-06-14 23:47:56 +08:00
Him188
35f2335a5f
Fix build
2020-06-14 19:20:00 +08:00
Him188
2d1bc6578e
Fix reference in KDoc
2020-06-14 18:48:58 +08:00
Him188
4cb870cb85
Fix build
2020-06-13 22:40:38 +08:00
Him188
4961b60494
Merge branch 'master' into dev
2020-06-12 14:43:12 +08:00
Him188
2dcd8ffea0
Fix log time
2020-06-01 18:11:55 +08:00
Him188
0153ed9fa5
Fix build
2020-05-28 14:10:18 +08:00
Him188
a084eac8be
Rearrange internal implementations
2020-05-28 14:10:18 +08:00
Him188
1d971badd9
Add docs
2020-05-28 14:08:39 +08:00
Him188
9631a2de1f
Fix loggers
2020-05-24 14:10:43 +08:00
Him188
3c1ee33ee0
Fix Java function resolving
2020-05-22 13:20:59 +08:00
Him188
5871f727dc
Fix exception logging
2020-05-21 21:27:02 +08:00
Him188
ae8d6e0cd2
Fix doc and DefaultLogger usage
2020-05-21 20:35:18 +08:00
Him188
f848473289
Improve loggers:
...
Make SimpleLogger open;
Simplify PlatformLogger;
PlatformLogger on JVM now has `isColored` param and prints exception canonically;
Unify log format;
2020-05-21 20:32:49 +08:00
Him188
3f4dd1ec12
Improve PlatformLogger.jvm, prints stacktrace to a specified output
2020-05-21 17:52:36 +08:00
Him188
6aaba6c5ae
Use non-strict JSON serialization for deviceInfo
2020-05-21 17:27:52 +08:00
Him188
e4e526ca80
Support object implementations of Event
2020-05-16 15:32:09 +08:00
Him188
23273718fe
Improve docs
2020-05-16 15:17:04 +08:00
Him188
3d06219c67
Introduce SimpleListenerHost for a better Java API
2020-05-16 15:11:03 +08:00
Him188
ae32536ed5
Move BotImpl
and BotNetworkHandler
to mirai-core-qqandroid.
2020-05-16 14:29:03 +08:00
Him188
46598d686c
Cleanup;
...
Use interface for JavaFriendly APIs;
Deprecate event responder in Bot in the favor of their member functions;
Deprecate `Bot.queryUrl(image: Image)`` in the favor of the extension `Image.queryUrl`
2020-05-16 14:14:21 +08:00
Him188
f5db6e0201
Improve docs
2020-05-14 19:12:32 +08:00
Him188
29012d74c1
Add docs
2020-05-11 15:50:18 +08:00
Him188
45f00b4651
Fix VerifyError
2020-05-11 11:34:08 +08:00
Him188
90c0c5c549
Optimize experimental API usages
2020-05-10 02:22:16 +08:00
Him188
54794a6e49
Fix references
2020-05-10 00:59:12 +08:00
Him188
7525dc7c33
Add JvmMethodListeners.kt
2020-05-10 00:41:18 +08:00
Him188
28f48e5c78
Make random device info more random
2020-05-09 16:20:57 +08:00
Him188
1c1a37a103
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/MessageSource.kt
2020-05-09 15:38:20 +08:00
Him188
238e94dae7
Cleanup
2020-05-09 15:09:01 +08:00
Him188
9733490266
Add docs
2020-05-09 13:45:29 +08:00
mzdluo123
ff4739f57e
fix: BufferedImage not found on Android
2020-05-06 14:09:53 +08:00
Him188
5cd027dfa9
Remove param format
from FileCacheStrategy.newImageCache
2020-05-06 13:17:08 +08:00
Him188
aadea751ac
Add precondition checks
2020-05-06 11:52:44 +08:00
Him188
2d9db234d7
Introduce FileCacheStrategy
;
...
Rework `ExternalImage`, introduce `ReusableInput` for multiple attempts when uploading images;
Add `BotConfiguration.fileCacheStrategy`, defaults use cache system from host OS;
Introduce `DeferredReusableInput` for `*.toExternalImage` on JVM.
Deprecate `*.suspendToExternalImage` as no longer need to be suspend.
Open input only when required, close input after uploading files, fix #302
2020-05-05 16:09:32 +08:00
Him188
84cfe2626f
Remove all @SinceMirai("0.x.x")
2020-05-05 13:56:17 +08:00
Him188
4ee27f2069
Fix ambiguous message event names. Fix #299 .
...
Binary compatibility until 1.2.0.
Migrations:
- `MessagePacket` deprecated in favor of `MessageEvent`
- `MessagePacketBase` deprecated in favor of `MessageEvent`
- `ContactMessage` -> `MessageEvent`
- `FriendMessage` -> `FriendMessageEvent`
- `GroupMessage` -> `GroupMessageEvent`
- `TempMessage` -> `TempMessageEvent`
2020-05-05 13:55:01 +08:00
Him188
45d96a8855
Merge pull request #296 from Karlatemp/patch-4
...
Fix the error that directly closing the verification code window will block the coroutine.
2020-05-05 12:20:11 +08:00
Him188
53ba8aba00
Improve docs
2020-05-03 22:32:42 +08:00
Him188
c2fa014c78
Add docs
2020-05-03 22:25:35 +08:00
Him188
35e39a7fba
Add docs
2020-05-03 20:43:18 +08:00
Karlatemp
edb80ec0ca
Fix the error that directly closing the verification code window will block the coroutine.
2020-05-02 19:12:38 +08:00
Him188
fbf4dd6bb2
Adjust filenames
2020-05-02 18:12:40 +08:00
Him188
6b5cbc3dd7
Implement new ExternalImage and image chunk strategy
2020-05-02 17:58:22 +08:00
Him188
2be325d781
Remove all deprecated APIs
2020-05-02 16:56:18 +08:00
Him188
a7e0f63dc6
FileCacheStrategy
, ReusableInput
fundamental
2020-05-02 16:16:33 +08:00
Him188
1a4c3ba602
Simplify Image structure: deprecate online and offline classification.
2020-05-01 21:51:09 +08:00
Karlatemp
c17e8a3263
支持监听优先级, 事件传递拦截 ( #279 )
...
* 支持监听优先级, 事件传递拦截
* Fix test
* 并发
* 优先级&并发
* Test
* Fix unused
* To GlobalEventListeners
* Add tests
* intercept with subscribeAlways
* test listener.complete()
* Add functions
* Fix test and add new test
* Test concurrent listening
* Test concurrent listening
* update broadcast
* Fix Boom
Co-authored-by: Him188 <Him188@mamoe.net>
2020-05-01 21:05:04 +08:00
Him188
644f0f175b
Deprecate ExternalImage
constructors
2020-04-29 19:39:41 +08:00
Him188
a08bf241ed
Improve event handler coroutine management
2020-04-29 18:21:01 +08:00
ryoii
1a557984f4
Fix BufferedImage compressed
2020-04-29 01:48:11 +08:00
Him188
c3de96dde0
Mark LockFreeLinkedList with MiraiInternalAPI, planning to make it internal in 1.0.0
2020-04-27 22:07:27 +08:00
Him188
781dd721d1
Fix LoginSolver
choosing, add NoStandardInputForCaptchaException
2020-04-25 15:28:26 +08:00
Him188
97dda77f04
Requests input in IO dispatcher
2020-04-25 12:47:24 +08:00
Him188
9c5bfb3bf5
Fix #270
2020-04-25 12:24:31 +08:00
Karlatemp
7271ff375d
#257 的追加修正 ( #267 )
...
* Rename
* Fix resource missing
* Fix typo
2020-04-24 21:32:56 +08:00
Him188
077885465b
Add docs, rearrange implementations
2020-04-24 15:12:50 +08:00
Karlatemp
d57ce6eb09
#257 additional display repair ( #260 )
...
* LoginSolver, gui support
* make `internal`,`object`, and rename.
* Edit message
* Edit message
2020-04-24 10:19:15 +08:00
Karlatemp
0ede49896e
LoginSolver swing ( #257 )
...
* LoginSolver, gui support
* make `internal`,`object`, and rename.
2020-04-24 10:03:27 +08:00
Him188
5b2ae6e9ad
Simplify Image structure, close #244
2020-04-23 17:10:21 +08:00
Him188
72fb82c01f
Remove MPP EventCancelledException
2020-04-22 18:42:26 +08:00
Him188
a63af80668
Deprecate QQ
...
Introduce `Friend` extending `User`
Introduce `User` acting as the superclass of `Friend` and `Member`
Add extensions `Member.asFriend`, etc.
Remove specialized `Contact.hashCode` and `Contact.equals`, inherit from `kotlin.Any`
Specify `toString` behavior in abstract `Contact` classes, instead of in implementation classes.
Add virtual member `Contact.sendMessage(String)`
Migrate the project from using `QQ` to `Friend`
Remove multiplatform Contact class structure, keep them common.
Remove extension `Long.at` in `GroupMessage`, `QQ.at` in `ContactMessage`.
Add `At.asMember()` in `GroupMessage`.
Make `calculateGroupUinByGroupCode`, `calculateGroupCodeByGroupUin` static on JVM.
2020-04-22 16:08:04 +08:00
Him188
1542b73fa9
Improve KDoc
2020-04-20 16:55:44 +08:00
Him188
90ee9b441a
Rework reconnection, fixes #228
2020-04-15 16:46:39 +08:00
Him188
f5a8420231
Speed up image uploading
2020-04-13 11:13:27 +08:00
Him188
0ef844f79b
Fix doc
2020-04-12 20:18:46 +08:00
Him188
b9a3675dad
Support Group.quit
, add BotLeaveEvent.Active
2020-04-11 20:15:23 +08:00
Him188
418fb43992
Returns botAsMember when Group.get(bot.id)
2020-04-10 19:40:34 +08:00
Him188
882c623823
Add @JvmOverloads
for BufferedImage.toExternalImage
2020-04-10 13:42:16 +08:00
Him188
7357169560
Fix build
2020-04-10 13:42:04 +08:00
Him188
c27ee12bdb
Simplify MessageReceipt
2020-04-10 11:35:14 +08:00
Him188
ae1156b434
Simplify Contact structure
2020-04-10 11:35:05 +08:00
Him188
ec35eeba1c
Simplify Bot structure
2020-04-09 16:14:48 +08:00
ryoii
2053ab198c
Support TempMessage
2020-04-08 22:12:18 +08:00
Him188
6480e78b24
Handle ContactList syncing on new friend or member event.
2020-04-08 14:33:13 +08:00
Him188
d9756c212c
Add common runBlocking
for convenience
2020-04-08 10:49:04 +08:00
ryoii
eec820c1a7
Support for approving requests of adding friend and joining group, close #91
2020-04-07 21:14:34 +08:00
Him188
039b3d7517
Cleanup
2020-04-04 22:17:35 +08:00
Him188
2b49a7586f
Reconstruct MessageSource, fix #197 , #133
2020-04-04 22:08:53 +08:00
Him188
3cc5cbfcfd
Introduce BotIsBeingMutedException
to replace IllegalStateException
2020-04-04 14:17:32 +08:00
ryoii
eac23171ec
Support Bot.nick
, closed #93
2020-04-04 09:47:34 +08:00
Him188
cd41166fc8
Fix init error
2020-04-02 20:43:04 +08:00
Him188
32553fad2b
Introduce ContactMessage
to replace MessagePacket<*, *>
2020-04-02 20:27:16 +08:00
Him188
3773548983
Replace use of Bot.uin
with Bot.id
2020-04-02 19:27:40 +08:00
Him188
d5868ed7c1
Add MessageTooLargeException
to differentiate with mute exception
2020-04-02 18:28:19 +08:00
Him188
997261fa3b
Make all event implementations internal
2020-04-02 13:20:16 +08:00
Him188
1605a5b68a
Fix kick message passing
2020-04-02 12:02:47 +08:00
Him188
9b534aba2c
Execute event listeners in IO pool for Java
2020-04-02 09:44:57 +08:00
Him188
97522bdf2a
Rearrange internal APIs
2020-04-02 09:43:50 +08:00
Him188
fa1cf3ae1d
Fix doc
2020-03-31 13:37:54 +08:00