Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koishi-plugin-jrys-max

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koishi-plugin-jrys-max - npm Package Compare versions

Comparing version 0.3.0 to 0.3.2

1

lib/index.d.ts

@@ -7,3 +7,2 @@ import { Context, Schema } from 'koishi';

signpointmin: number;
textfont: string;
}

@@ -10,0 +9,0 @@ export declare const Config: Schema<Config>;

46

lib/index.js

@@ -821,4 +821,4 @@ var __create = Object.create;

signpointmin: import_koishi2.Schema.number().default(1).description("签到积分随机最小值"),
signpointmax: import_koishi2.Schema.number().default(100).description("签到积分随机最大值"),
textfont: import_koishi2.Schema.string().description("`请填写.ttf 字体文件的绝对路径`").default(import_path3.default.join(__dirname, "/font/pixel.ttf"))
signpointmax: import_koishi2.Schema.number().default(100).description("签到积分随机最大值")
// textfont: Schema.string().description("`请填写.ttf 字体文件的绝对路径`").default(path.join(__dirname, '/font/pixel.ttf')),
// lotteryOdds: Schema.percent().default(0.6)

@@ -857,3 +857,3 @@ // .description('抽奖指令中倍率的概率(默认0.6)'),

try {
const response = await fetch("https://v1.hitokoto.cn/?c=a&c=c&c=b&c=k");
const response = await fetch("https://v1.hitokoto.cn/?c=a&c&b&k");
const { hitokoto: hitokotoText, from: fromText, from_who: fromWhoText } = await response.json();

@@ -953,61 +953,61 @@ let hitokoto;

color = "#838383";
} else if (LevelLines === 2) {
} else if (level === 2) {
levelname = "群聊冒险家";
color = "#838383";
} else if (LevelLines === 3) {
} else if (level === 3) {
levelname = "开拓地冒险者";
color = "#838383";
} else if (LevelLines === 4) {
} else if (level === 4) {
levelname = "开拓地冒险家";
color = "#000000";
} else if (LevelLines === 5) {
} else if (level === 5) {
levelname = "火星开拓者";
color = "#000000";
} else if (LevelLines === 6) {
} else if (level === 6) {
levelname = "火星科技";
color = "#42bc05";
} else if (LevelLines === 7) {
} else if (level === 7) {
levelname = "言灵密语";
color = "#42bc05";
} else if (LevelLines === 8) {
} else if (level === 8) {
levelname = "低声呢喃";
color = "#42bc05";
} else if (LevelLines === 9) {
} else if (level === 9) {
levelname = "荒野的漫步者";
color = "#2003da";
} else if (LevelLines === 10) {
} else if (level === 10) {
levelname = "言灵探索者";
color = "#2003da";
} else if (LevelLines === 11) {
} else if (level === 11) {
levelname = "水系魔法师";
color = "#2003da";
} else if (LevelLines === 12) {
} else if (level === 12) {
levelname = "水系魔导士";
color = "#03a4da";
} else if (LevelLines === 13) {
} else if (level === 13) {
levelname = "绝望的呐喊";
color = "#03a4da";
} else if (LevelLines === 14) {
} else if (level === 14) {
levelname = "疯狂嘶吼";
color = "#9d03da";
} else if (LevelLines === 15) {
} else if (level === 15) {
levelname = "被缚的倒吊者";
color = "#9d03da";
} else if (LevelLines === 16) {
} else if (level === 16) {
levelname = "崩毁世界之人";
color = "#9d03da";
} else if (LevelLines === 17) {
} else if (level === 17) {
levelname = "命运眷顾者";
color = "#f10171";
} else if (LevelLines === 18) {
} else if (level === 18) {
levelname = "背弃之绝望";
color = "#f10171";
} else if (LevelLines === 19) {
} else if (level === 19) {
levelname = "誓约的守护者";
color = "#c9b86d";
} else if (LevelLines === 20) {
} else if (level === 20) {
levelname = "天选之人";
color = "#ffd000";
}
const textfont = config.textfont.replace(/\\/g, "/");
const textfont = import_path3.default.join(__dirname, "/font/pixel.ttf").replace(/\\/g, "/");
const allpoint = getSigninJson.allpoint;

@@ -1014,0 +1014,0 @@ const allpoint_LevelLines = `${allpoint}/${LevelLines}`.toString();

@@ -101,3 +101,3 @@ <!--

font-size: 20px;
font-weight: 500
font-weight: 500;
}

@@ -113,3 +113,3 @@ .status {

font-size: 20px;
font-weight: 500
font-weight: 500;
}

@@ -143,14 +143,24 @@ .level-bar {

display: inline;
text-align: center;
}
.parent {
text-align: center;
}
.special-font {
font-family: 'pixel';
margin-top: 0px;
font-size: 25px;
font-size: 30px;
font-weight: bold;
color: ##color##;
display: inline
}
.level-bar .pointlevel{
.pointlevel {
font-family: 'pixel';
color: #b4b1b1;
font-size: 30px;
margin-right: 24px;
margin-left: auto;
font-size: 24px;
font-weight: bold;
white-space: nowrap;
float: right;
}

@@ -210,14 +220,9 @@ .fortune {

</div>
<div class="level-info">Level
<span class="special-font">&#x2020;##level##&#x2020;</span>
</div>
<div class="level-info">Level <span class="special-font">&#x2020;##level##&#x2020;</span></div>
<div class="level-bar">
<div class="bar-container">
<div class="progress"></div>
</div>
<div class="pointlevel">##pointlevel##</div>
</div>
<div class="pointlevel">##pointlevel##</div>
<div class="fortune">运势值: ##jryslucky##<br><strong>##fortunate##</strong></div>

@@ -224,0 +229,0 @@ <div class="stars">

{
"name": "koishi-plugin-jrys-max",
"description": "",
"version": "0.3.0",
"version": "0.3.2",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "typings": "lib/index.d.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc