Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-plugin-hisoutensoku-jammer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
koishi-plugin-hisoutensoku-jammer
Commits
95625216
Commit
95625216
authored
Dec 28, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrate to rc1
parent
6cf65be7
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
258 additions
and
32 deletions
+258
-32
package-lock.json
package-lock.json
+253
-24
package.json
package.json
+3
-3
src/index.ts
src/index.ts
+2
-5
No files found.
package-lock.json
View file @
95625216
This diff is collapsed.
Click to expand it.
package.json
View file @
95625216
...
@@ -25,11 +25,11 @@
...
@@ -25,11 +25,11 @@
},
},
"homepage"
:
"
https://code.mycard.moe/nanahira/koishi-plugin-hisoutensoku-jammer
"
,
"homepage"
:
"
https://code.mycard.moe/nanahira/koishi-plugin-hisoutensoku-jammer
"
,
"peerDependencies"
:
{
"peerDependencies"
:
{
"
koishi
"
:
"
^4.0.0-rc.
0
"
"
koishi
"
:
"
^4.0.0-rc.
1
"
},
},
"dependencies"
:
{
"dependencies"
:
{
"
ip
"
:
"
^1.1.5
"
,
"
ip
"
:
"
^1.1.5
"
,
"
koishi-thirdeye
"
:
"
^
6
.0.2
"
,
"
koishi-thirdeye
"
:
"
^
7
.0.2
"
,
"
lodash
"
:
"
^4.17.21
"
,
"
lodash
"
:
"
^4.17.21
"
,
"
moment
"
:
"
^2.29.1
"
,
"
moment
"
:
"
^2.29.1
"
,
"
source-map-support
"
:
"
^0.5.21
"
,
"
source-map-support
"
:
"
^0.5.21
"
,
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
"
eslint
"
:
"
^7.32.0
"
,
"
eslint
"
:
"
^7.32.0
"
,
"
eslint-config-prettier
"
:
"
^8.3.0
"
,
"
eslint-config-prettier
"
:
"
^8.3.0
"
,
"
eslint-plugin-prettier
"
:
"
^3.4.1
"
,
"
eslint-plugin-prettier
"
:
"
^3.4.1
"
,
"
koishi
"
:
"
^4.0.0-rc.
0
"
,
"
koishi
"
:
"
^4.0.0-rc.
1
"
,
"
prettier
"
:
"
^2.4.1
"
,
"
prettier
"
:
"
^2.4.1
"
,
"
raw-loader
"
:
"
^4.0.2
"
,
"
raw-loader
"
:
"
^4.0.2
"
,
"
ts-loader
"
:
"
^9.2.6
"
,
"
ts-loader
"
:
"
^9.2.6
"
,
...
...
src/index.ts
View file @
95625216
import
'
source-map-support/register
'
;
import
'
source-map-support/register
'
;
import
{
Context
,
Logger
,
Next
Function
,
Session
,
Cache
,
segment
}
from
'
koishi
'
;
import
{
Context
,
Logger
,
Next
,
Session
,
Cache
,
segment
}
from
'
koishi
'
;
import
{
import
{
HisoutensokuJammerPluginConfig
,
HisoutensokuJammerPluginConfig
,
HisoutensokuJammerPluginConfigLike
,
HisoutensokuJammerPluginConfigLike
,
...
@@ -20,9 +20,6 @@ import { createWorker, Worker } from 'tesseract.js';
...
@@ -20,9 +20,6 @@ import { createWorker, Worker } from 'tesseract.js';
export
*
from
'
./config
'
;
export
*
from
'
./config
'
;
declare
module
'
koishi
'
{
declare
module
'
koishi
'
{
interface
Modules
{
'
hisoutensoku-jammer
'
:
typeof
import
(
'
.
'
);
}
namespace
Cache
{
namespace
Cache
{
interface
Tables
{
interface
Tables
{
lastMessages
:
string
;
lastMessages
:
string
;
...
@@ -66,7 +63,7 @@ export default class HisoutensokuJammerPlugin implements OnApply {
...
@@ -66,7 +63,7 @@ export default class HisoutensokuJammerPlugin implements OnApply {
}
}
@
UseMiddleware
()
@
UseMiddleware
()
async
onMessage
(
session
:
Session
,
next
:
Next
Function
)
{
async
onMessage
(
session
:
Session
,
next
:
Next
)
{
this
.
parseMessage
(
session
.
content
,
session
.
userId
).
then
();
this
.
parseMessage
(
session
.
content
,
session
.
userId
).
then
();
return
next
();
return
next
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment