New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koishi-plugin-dicey-dungeons

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koishi-plugin-dicey-dungeons - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

7

lib/index.js

@@ -85,7 +85,8 @@ "use strict";

ctx.middleware(async (session, next) => {
const a = /^[0-9]$/?.test(session.content.split(' ')[0]);
const b = /^[0-9]$/?.test(session.content.split(' ')[1]);
const a = /^[1-9]$/?.test(session.content.split(' ')[0]);
const b = /^[1-9]$/?.test(session.content.split(' ')[1]);
const { userId, guildId, username, platform, content } = session;
const read = await ctx.database.get('dice_group', { guildId });
if (a == true && b == true && read?.[0]?.Play_1_userId == userId || read?.[0]?.Play_2_userId == userId) {
const play = read?.[0]?.Play_1_userId === userId ? true : read?.[0]?.Play_2_userId === userId ? true : false; //|| read?.[0]?.Play_2_userId === userId;
if (a == true && b == true && read?.[0]?.game_status == 2 && play == true) {
session.execute(`点数 ${content.split('-')[0]} ${session.content.split('-')[1]}`);

@@ -92,0 +93,0 @@ }

{
"name": "koishi-plugin-dicey-dungeons",
"description": "中文名:骰子地下城 双人回合对战",
"version": "1.1.7",
"version": "1.1.8",
"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