-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
226 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"querytool.descr.github": "Query Github repository info", | ||
"querytool.msg.github": "URL: %name%\nDescription: %description%\nLanguage: %language%\nOwner: %author%\nCreated: %create%\nLast updated: %update%\nLast push: %push%\nOpen source license: %license%", | ||
"querytool.msg.github.image": "%image%", | ||
"querytool.msg.github.fail": "Repository not found: %input%" | ||
"github.descr.github": "Query Github repository info", | ||
"github.msg.github": "URL: %name%\nDescription: %description%\nLanguage: %language%\nOwner: %author%\nCreated: %create%\nLast updated: %update%\nLast push: %push%\nOpen source license: %license%", | ||
"github.msg.github.image": "%image%", | ||
"github.msg.github.fail": "Repository not found: %input%" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"querytool.descr.github": "Githubリポジトリ情報を検索", | ||
"querytool.msg.github": "アドレス:%name%\n説明:%description%\n言語:%language%\n所有者:%author%\n作成日時:%create%\n最終更新日時:%update%\n最終プッシュ日時:%push%\nオープンソースライセンス:%license%", | ||
"querytool.msg.github.image": "%image%", | ||
"querytool.msg.github.fail": "リポジトリが見つかりません:%input%" | ||
"github.descr.github": "Githubリポジトリ情報を検索", | ||
"github.msg.github": "アドレス:%name%\n説明:%description%\n言語:%language%\n所有者:%author%\n作成日時:%create%\n最終更新日時:%update%\n最終プッシュ日時:%push%\nオープンソースライセンス:%license%", | ||
"github.msg.github.image": "%image%", | ||
"github.msg.github.fail": "リポジトリが見つかりません:%input%" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"querytool.descr.github": "查询Github仓库信息", | ||
"querytool.msg.github": "地址:%name%\n描述:%description%\n语言:%language%\n所有者:%author%\n创建时间:\n %create%\n最后更新时间:%update%\n最后推送时间:%push%\n开源协议:%license%", | ||
"querytool.msg.github.image": "%image%", | ||
"querytool.msg.github.fail": "未找到仓库:%input%" | ||
"github.descr.github": "查询Github仓库信息", | ||
"github.msg.github": "地址:%name%\n描述:%description%\n语言:%language%\n所有者:%author%\n创建时间:\n %create%\n最后更新时间:%update%\n最后推送时间:%push%\n开源协议:%license%", | ||
"github.msg.github.image": "%image%", | ||
"github.msg.github.fail": "未找到仓库:%input%" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"querytool.descr.github": "查詢Github倉庫信息", | ||
"querytool.msg.github": "地址:%name%\n描述:%description%\n語言:%language%\n所有者:%author%\n創建時間:\n %create%\n最後更新時間:%update%\n最後推送時間:%push%\n開源協議:%license%", | ||
"querytool.msg.github.image": "%image%", | ||
"querytool.msg.github.fail": "未找到倉庫:%input%" | ||
"github.descr.github": "查詢Github倉庫信息", | ||
"github.msg.github": "地址:%name%\n描述:%description%\n語言:%language%\n所有者:%author%\n創建時間:\n %create%\n最後更新時間:%update%\n最後推送時間:%push%\n開源協議:%license%", | ||
"github.msg.github.image": "%image%", | ||
"github.msg.github.fail": "未找到倉庫:%input%" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* @Blog: https://hotaru.icu | ||
* @Date: 2023-07-30 11:33:15 | ||
* @LastEditors: Hotaru [email protected] | ||
* @LastEditTime: 2024-02-10 11:38:20 | ||
* @LastEditTime: 2024-02-10 20:25:58 | ||
*/ | ||
import { Context, Tsu } from 'kotori-bot'; | ||
|
||
|
@@ -74,7 +74,7 @@ export function main(ctx: Context, config: Config) { | |
if (!person || person.length <= 0) return ['newnew.msg.my_length.fail', [session.el.at(session.userId)]]; | ||
return [ | ||
'newnew.msg.my_length', | ||
[session.el.at(session.userId), person[1], person[0], person[3], person[3] / person[2], person[2]] | ||
[session.el.at(session.userId), person[1], person[0], person[2], person[3], person[3] / person[2]] | ||
]; | ||
}); | ||
|
||
|
@@ -97,9 +97,9 @@ export function main(ctx: Context, config: Config) { | |
if (nums < config.avgMinNum) return; | ||
list += session.format('newnew.msg.avg_ranking.list', [ | ||
num, | ||
entry[0], | ||
nums, | ||
entry[0].slice(session.api.adapter.platform.length), | ||
entry[1][3], | ||
nums, | ||
statOrigin[entry[0]][3] | ||
]); | ||
num += 1; | ||
|
@@ -111,14 +111,18 @@ export function main(ctx: Context, config: Config) { | |
const today = loadTodayData(); | ||
if (today.length <= 0) return 'newnew.msg.today_ranking.fail'; | ||
|
||
const newEntries = Object.entries(today); | ||
newEntries.sort((a, b) => b[1] - a[1]); | ||
const entries = Object.entries(today).filter((val) => val[0].startsWith(session.api.adapter.platform)); | ||
entries.sort((a, b) => b[1] - a[1]); | ||
|
||
let list = ''; | ||
let num = 1; | ||
newEntries.forEach((entry) => { | ||
entries.forEach((entry) => { | ||
if (num > 20) return; | ||
list += session.format('newnew.msg.today_ranking.list', [num, entry[0], entry[1]]); | ||
list += session.format('newnew.msg.today_ranking.list', [ | ||
num, | ||
entry[0].slice(session.api.adapter.platform.length), | ||
entry[1] | ||
]); | ||
num += 1; | ||
}); | ||
return ['newnew.msg.today_ranking', [list]]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"querytool.descr.sed": "Social engineering info query", | ||
"querytool.msg.sed": "Query content: {0}\nTime consumed: {1} secs\nRecords found: {2}{3}", | ||
"querytool.msg.sed.list": "\n{0}: {1}", | ||
"querytool.msg.sed.key.qq": "QQ number", | ||
"querytool.msg.sed.key.phone": "Phone number", | ||
"querytool.msg.sed.key.location": "Carrier", | ||
"querytool.msg.sed.key.id": "LOL ID", | ||
"querytool.msg.sed.key.area": "LOL area", | ||
"querytool.msg.sed.fail": "No relevant records found: {0}" | ||
"sed.descr.sed": "Social engineering info query", | ||
"sed.msg.sed": "Query content: {0}\nTime consumed: {1} secs\nRecords found: {2}{3}", | ||
"sed.msg.sed.list": "\n{0}: {1}", | ||
"sed.msg.sed.key.qq": "QQ number", | ||
"sed.msg.sed.key.phone": "Phone number", | ||
"sed.msg.sed.key.location": "Carrier", | ||
"sed.msg.sed.key.id": "LOL ID", | ||
"sed.msg.sed.key.area": "LOL area", | ||
"sed.msg.sed.fail": "No relevant records found: {0}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"querytool.descr.sed": "ソーシャルエンジニアリング情報検索", | ||
"querytool.msg.sed": "検索内容:{0}\n処理時間:{1} 秒\nレコード数:{2}{3}", | ||
"querytool.msg.sed.list": "\n{0}:{1}", | ||
"querytool.msg.sed.key.qq": "QQ番号", | ||
"querytool.msg.sed.key.phone": "電話番号", | ||
"querytool.msg.sed.key.location": "キャリア", | ||
"querytool.msg.sed.key.id": "LOL ID", | ||
"querytool.msg.sed.key.area": "LOLエリア", | ||
"querytool.msg.sed.fail": "関連レコードが見つかりませんでした:{0}" | ||
"sed.descr.sed": "ソーシャルエンジニアリング情報検索", | ||
"sed.msg.sed": "検索内容:{0}\n処理時間:{1} 秒\nレコード数:{2}{3}", | ||
"sed.msg.sed.list": "\n{0}:{1}", | ||
"sed.msg.sed.key.qq": "QQ番号", | ||
"sed.msg.sed.key.phone": "電話番号", | ||
"sed.msg.sed.key.location": "キャリア", | ||
"sed.msg.sed.key.id": "LOL ID", | ||
"sed.msg.sed.key.area": "LOLエリア", | ||
"sed.msg.sed.fail": "関連レコードが見つかりませんでした:{0}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"querytool.descr.sed": "社工信息查询", | ||
"querytool.msg.sed": "查询内容:{0}\n消耗时间:{1} 秒\n记录数量:{2}{3}", | ||
"querytool.msg.sed.list": "\n{0}:{1}", | ||
"querytool.msg.sed.key.qq": "QQ", | ||
"querytool.msg.sed.key.phone": "手机号", | ||
"querytool.msg.sed.key.location": "运营商", | ||
"querytool.msg.sed.key.id": "LOLID", | ||
"querytool.msg.sed.key.area": "LOL区域", | ||
"querytool.msg.sed.fail": "未查询到相关记录:{0}" | ||
"sed.descr.sed": "社工信息查询", | ||
"sed.msg.sed": "查询内容:{0}\n记录数量:{1}{2}", | ||
"sed.msg.sed.list": "\n{0}:{1}", | ||
"sed.msg.sed.key.qq": "QQ", | ||
"sed.msg.sed.key.phone": "手机号", | ||
"sed.msg.sed.key.location": "运营商", | ||
"sed.msg.sed.key.id": "LOLID", | ||
"sed.msg.sed.key.area": "LOL区域", | ||
"sed.msg.sed.fail": "未查询到相关记录:{0}" | ||
} |
Oops, something went wrong.