From e6251155dac2b6b0663a77985d75b64729374ecb Mon Sep 17 00:00:00 2001 From: qcminecraft Date: Wed, 3 Feb 2021 08:06:44 +0800 Subject: [PATCH] Python YES! --- .gitignore | 2 + .idea/.gitignore | 10 +++ .idea/dataSources.xml | 17 +++++ .../inspectionProfiles/profiles_settings.xml | 6 ++ .idea/misc.xml | 4 ++ .idea/modules.xml | 8 +++ .idea/vcs.xml | 6 ++ .idea/x61bot.iml | 10 +++ DB.sqlite3 | Bin 0 -> 188416 bytes config.example.json | 14 ++++ index.php | 5 -- lib.php | 61 ------------------ x61bot.py | 36 +++++++++++ 13 files changed, 113 insertions(+), 66 deletions(-) create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 .idea/dataSources.xml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/x61bot.iml create mode 100644 DB.sqlite3 create mode 100644 config.example.json delete mode 100644 index.php delete mode 100644 lib.php create mode 100644 x61bot.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ea0a62 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +config.json +.idea/ \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..863b2c1 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 数据源本地存储已忽略文件 +/../../../../:\Workspace\x61bot\.idea/dataSources/ +/dataSources.local.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ + +* \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..95e22c3 --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,17 @@ + + + + + sqlite.xerial + true + org.sqlite.JDBC + jdbc:sqlite:C:\Workspace\x61bot\DB.sqlite3 + $ProjectFileDir$ + + + file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.34.0/sqlite-jdbc-3.34.0.jar + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..d1e22ec --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..b514fb2 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/x61bot.iml b/.idea/x61bot.iml new file mode 100644 index 0000000..4d555da --- /dev/null +++ b/.idea/x61bot.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/DB.sqlite3 b/DB.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..da57a562feb9d417126fb8abaf0803f89063b4af GIT binary patch literal 188416 zcmeI(O>f(D9Kdm>*;dvz4KPM2kN<|Jj&?o35e^g-p^7fsN+!_*ippxHp!8v}`vRuD zHBKBkbK4sjXE^Y4)3lVQ!^9+%eJp(&$Cj=5)8ECB^VRLmewnB54u*R>W%?+4KC9KT zPgBaWtP!n67orcM%O~sca=g^WEC2G^$ksmor7`zoR-b*8&Hp_6sPS8@SO^dxK!5-N z0t5&Ucv=Dvb}vjXEG^X@UMY9J9puGfe>WfY1_$@f)-Ha&)n4zmQ+NHd&30;??P#Ut z#!O1B{%$L6bh_;?+FPk}vzt11HaF9)t&JP&TifZ&_I6so)4jRTiPPL@ce<;`#|)1K zd2fGbF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ZfB*pk1PBlyK!5-N0t5&U zAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C7 z2oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N z0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+ p009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5cnSp{0_Y~zfJ%E literal 0 HcmV?d00001 diff --git a/config.example.json b/config.example.json new file mode 100644 index 0000000..140b8af --- /dev/null +++ b/config.example.json @@ -0,0 +1,14 @@ +{ + "misskey.io": { + "name": "misskey.io", + "url" : "https://misskey.io", + "token": "9v1t2poJeEh5RI74VqBCzJLHk9N6Weds", + "channel": "8hrcz5rdvp" + }, + "misskey.dev": { + "name": "misskey.dev", + "url" : "https://misskey.dev", + "token": "qnZl1OmgnAlTRbRO", + "channel": false + } +} \ No newline at end of file diff --git a/index.php b/index.php deleted file mode 100644 index dd43623..0000000 --- a/index.php +++ /dev/null @@ -1,5 +0,0 @@ -