Update RunNoticeRecorder

This commit is contained in:
Him188 2022-06-14 10:41:43 +01:00
parent f97feb32c4
commit 9df7c4bda4
No known key found for this signature in database
GPG Key ID: BA439CDDCF652375
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
<module name="mirai.mirai-core.jvmTest"/>
<shortenClasspath name="NONE"/>
<option name="VM_PARAMETERS"
value="-Dmirai.debug.network.state.observer.logging=true -Dmirai.debug.network.show.all.components=true -Dkotlinx.coroutines.debug=on -Dmirai.debug.network.show.packet.details=true"/>
value="-Dmirai.debug.network.show.all.components=true -Dkotlinx.coroutines.debug=on -Dmirai.debug.network.show.packet.details=true -Dmirai.network.notice.unconsumed.logging=true -Dmirai.network.packet.logger=true"/>
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/test/run"/>
<method v="2">
<option name="Make" enabled="true"/>

View File

@ -41,7 +41,7 @@ suspend fun main() {
val bot = BotFactory.newBot(account.id, account.password) {
enableContactCache()
fileBasedDeviceInfo("local.device.json")
protocol = BotConfiguration.MiraiProtocol.ANDROID_PHONE
protocol = BotConfiguration.MiraiProtocol.ANDROID_PAD
}.asQQAndroidBot()
bot.components[NoticeProcessorPipeline].registerProcessor(RecordingNoticeProcessor())