Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-plugin-ygotournament
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
3rdeye
koishi-plugin-ygotournament
Commits
703cf48e
Commit
703cf48e
authored
Dec 26, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thirdeye and plugin Selection thing
parent
7c990456
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
25 deletions
+2
-25
src/config.ts
src/config.ts
+1
-2
src/def/selection.ts
src/def/selection.ts
+0
-20
src/plugin.ts
src/plugin.ts
+1
-3
No files found.
src/config.ts
View file @
703cf48e
import
'
source-map-support/register
'
;
import
{
Context
,
Schema
}
from
'
koishi
'
;
import
{
Context
,
Schema
,
Selection
}
from
'
koishi
'
;
import
{
GetObjectCommand
,
ListObjectsCommand
,
...
...
@@ -7,7 +7,6 @@ import {
S3ClientConfig
,
}
from
'
@aws-sdk/client-s3
'
;
import
{
SRVProRoomInfo
}
from
'
./def/srvpro
'
;
import
{
Selection
}
from
'
./def/selection
'
;
import
{
DefineSchema
,
RegisterSchema
}
from
'
schemastery-gen
'
;
const
credentialsSchema
=
Schema
.
object
({
...
...
src/def/selection.ts
deleted
100644 → 0
View file @
7c990456
import
{
MaybeArray
}
from
'
koishi
'
;
const
selectors
=
[
'
user
'
,
'
guild
'
,
'
channel
'
,
'
self
'
,
'
private
'
,
'
platform
'
,
]
as
const
;
type
SelectorType
=
typeof
selectors
[
number
];
type
SelectorValue
=
boolean
|
MaybeArray
<
string
|
number
>
;
type
BaseSelection
=
{
[
K
in
SelectorType
as
`$
${
K
}
`
]?:
SelectorValue
};
export
interface
Selection
extends
BaseSelection
{
$and
?:
Selection
[];
$or
?:
Selection
[];
$not
?:
Selection
;
}
src/plugin.ts
View file @
703cf48e
import
'
source-map-support/register
'
;
import
{
Context
,
Schema
,
Quester
}
from
'
koishi
'
;
import
{
Context
}
from
'
koishi
'
;
import
{
YGOTournamentPluginConfig
,
YGOTournamentPluginConfigLike
,
}
from
'
./config
'
;
import
{
classToPlain
,
plainToClass
}
from
'
class-transformer
'
;
import
{
MatchWrapper
,
TournamentWrapper
}
from
'
./def/challonge
'
;
...
...
@@ -10,7 +9,6 @@ import { S3Client } from '@aws-sdk/client-s3';
import
{
getSignedUrl
}
from
'
./presign
'
;
import
{
SRVProRoomInfo
}
from
'
./def/srvpro
'
;
import
moment
from
'
moment
'
;
import
ProxyAgent
from
'
proxy-agent
'
;
export
interface
FromAndToTimeUnix
{
fromTime
:
number
;
...
...
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