Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
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
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
MyCard
windbot
Commits
ac16e474
Commit
ac16e474
authored
Nov 22, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
mg
parents
91539bab
d0bf8485
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
60 additions
and
85 deletions
+60
-85
BotWrapper/BotWrapper.csproj
BotWrapper/BotWrapper.csproj
+2
-2
BotWrapper/bot.conf
BotWrapper/bot.conf
+35
-30
Logger.cs
Logger.cs
+3
-0
Program.cs
Program.cs
+8
-2
WindBot.csproj
WindBot.csproj
+2
-19
WindBot.sln
WindBot.sln
+4
-14
YGOSharp.OCGWrapper.dll
YGOSharp.OCGWrapper.dll
+0
-0
appveyor.yml
appveyor.yml
+6
-18
sqlite3.dll
sqlite3.dll
+0
-0
No files found.
BotWrapper/BotWrapper.csproj
View file @
ac16e474
...
...
@@ -13,7 +13,7 @@
<FileAlignment>
512
</FileAlignment>
<TargetFrameworkProfile
/>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|
AnyCPU'
"
>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|
x86'
"
>
<PlatformTarget>
x86
</PlatformTarget>
<DebugSymbols>
true
</DebugSymbols>
<DebugType>
full
</DebugType>
...
...
@@ -23,7 +23,7 @@
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|
AnyCPU'
"
>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|
x86'
"
>
<PlatformTarget>
x86
</PlatformTarget>
<DebugType>
pdbonly
</DebugType>
<Optimize>
true
</Optimize>
...
...
BotWrapper/bot.conf
View file @
ac16e474
#bots list
!
Name
=谜之剑士
LV4
Deck
=
Dragunity
Dialog
=
swordsman
.
zh
-
CN
谜之剑士
LV4
-龙骑星爆
# !name
# command
# description
# flag ( 0x1=SUPPORT_MASTER_RULE_3 , 0x2=SUPPORT_NEW_MASTER_RULE )
!谜之剑士
LV4
-龙骑星爆
Name
=谜之剑士
LV4
Deck
=
Dragunity
Dialog
=
swordsman
.
zh
-
CN
龙骑轴星尘龙爆裂体卡组。
3
!
Name
=谜之剑士
LV4
Deck
=
'Rank V'
Dialog
=
swordsman
.
zh
-
CN
谜之剑士
LV4
-
R5
!
谜之剑士
LV4
-
R5
Name
=谜之剑士
LV4
Deck
=
'Rank V'
Dialog
=
swordsman
.
zh
-
CN
5
阶超量卡组。
3
!
Name
=谜之剑士
LV4
Deck
=
'Zexal Weapons'
Dialog
=
swordsman
.
zh
-
CN
谜之剑士
LV4
-异热同心武器
!
谜之剑士
LV4
-异热同心武器
Name
=谜之剑士
LV4
Deck
=
'Zexal Weapons'
Dialog
=
swordsman
.
zh
-
CN
神装电光皇卡组。
3
!
Name
=琪露诺
Deck
=
Rainbow
Dialog
=
cirno
.
zh
-
CN
琪露诺-彩虹
!
琪露诺-彩虹
Name
=琪露诺
Deck
=
Rainbow
Dialog
=
cirno
.
zh
-
CN
全属性凡骨卡组。
3
!
Name
=琪露诺
Deck
=
'Toadally Awesome'
Dialog
=
cirno
.
zh
-
CN
琪露诺-饼蛙
!
琪露诺-饼蛙
Name
=琪露诺
Deck
=
'Toadally Awesome'
Dialog
=
cirno
.
zh
-
CN
大师规则三的全盛饼蛙卡组。
1
!
Name
=复制植物
Deck
=
Blue
-
Eyes
Dialog
=
copy
.
zh
-
CN
复制植物-青眼
!
复制植物-青眼
Name
=复制植物
Deck
=
Blue
-
Eyes
Dialog
=
copy
.
zh
-
CN
青眼卡组。
3
!
Name
=复制植物
Deck
=
Zoodiac
Dialog
=
copy
.
zh
-
CN
复制植物-十二兽
!
复制植物-十二兽
Name
=复制植物
Deck
=
Zoodiac
Dialog
=
copy
.
zh
-
CN
大师规则三的十四兽卡组。
1
!
Name
=尼亚
Deck
=
Yosenju
Dialog
=
near
.
zh
-
CN
尼亚-妖仙兽
!
尼亚-妖仙兽
Name
=尼亚
Deck
=
Yosenju
Dialog
=
near
.
zh
-
CN
妖仙兽卡组。
3
!
Name
=尼亚
Deck
=
Qliphort
Dialog
=
near
.
zh
-
CN
尼亚-机壳
!
尼亚-机壳
Name
=尼亚
Deck
=
Qliphort
Dialog
=
near
.
zh
-
CN
机壳卡组。
3
!
Name
=永远之魂
Deck
=
Burn
Dialog
=
soul
.
zh
-
CN
永远之魂-削血
!
永远之魂-削血
Name
=永远之魂
Deck
=
Burn
Dialog
=
soul
.
zh
-
CN
老式削血卡组。
3
!
Name
=永远之魂
Deck
=
Frog
Dialog
=
soul
.
zh
-
CN
永远之魂-青蛙
!
永远之魂-青蛙
Name
=永远之魂
Deck
=
Frog
Dialog
=
soul
.
zh
-
CN
老式青蛙卡组。
3
!
Name
=永远之魂
Deck
=
Horus
Dialog
=
soul
.
zh
-
CN
永远之魂-荷鲁斯
!
永远之魂-荷鲁斯
Name
=永远之魂
Deck
=
Horus
Dialog
=
soul
.
zh
-
CN
老式龙族卡组。
3
!
Name
=悠悠
Deck
=
MokeyMokey
Dialog
=
mokey
.
zh
-
CN
悠悠
!
悠悠
Name
=悠悠
Deck
=
MokeyMokey
Dialog
=
mokey
.
zh
-
CN
沙包。
3
!
Name
=悠悠王
Deck
=
MokeyMokeyKing
Dialog
=
mokey
.
zh
-
CN
悠悠王
!
悠悠王
Name
=悠悠王
Deck
=
MokeyMokeyKing
Dialog
=
mokey
.
zh
-
CN
大沙包。
3
!
Name
=试作型机器人
1732
Deck
=
ST1732
Dialog
=
zh
-
CN
试作型机器人
1732
!
试作型机器人
1732
Name
=试作型机器人
1732
Deck
=
ST1732
Dialog
=
zh
-
CN
由三盒
ST17
和三盒
SD32
组成的卡组。
2
Logger.cs
View file @
ac16e474
...
...
@@ -16,7 +16,10 @@ namespace WindBot
}
public
static
void
WriteErrorLine
(
string
message
)
{
Console
.
BackgroundColor
=
ConsoleColor
.
Red
;
Console
.
ForegroundColor
=
ConsoleColor
.
White
;
Console
.
Error
.
WriteLine
(
"["
+
DateTime
.
Now
.
ToString
(
"yy-MM-dd HH:mm:ss"
)
+
"] "
+
message
);
Console
.
ResetColor
();
}
}
}
\ No newline at end of file
Program.cs
View file @
ac16e474
...
...
@@ -36,7 +36,7 @@ namespace WindBot
// Join the host specified on the command line.
if
(
args
.
Length
==
0
)
{
Logger
.
WriteLine
(
"=== WARN ==="
);
Logger
.
Write
Error
Line
(
"=== WARN ==="
);
Logger
.
WriteLine
(
"No input found, tring to connect to localhost YGOPro host."
);
Logger
.
WriteLine
(
"If it fail, the program will quit sliently."
);
}
...
...
@@ -53,7 +53,13 @@ namespace WindBot
// In case windbot is placed in a folder under ygopro folder
absolutePath
=
Path
.
GetFullPath
(
"../"
+
databasePath
);
if
(!
File
.
Exists
(
absolutePath
))
Logger
.
WriteErrorLine
(
"Can't find cards database file. Please place cards.cdb next to WindBot.exe ."
);
{
Logger
.
WriteErrorLine
(
"Can't find cards database file."
);
Logger
.
WriteErrorLine
(
"Please place cards.cdb next to WindBot.exe or Bot.exe ."
);
Logger
.
WriteLine
(
"Press any key to quit..."
);
Console
.
ReadKey
();
System
.
Environment
.
Exit
(
1
);
}
NamedCardsManager
.
Init
(
absolutePath
);
}
...
...
WindBot.csproj
View file @
ac16e474
...
...
@@ -15,7 +15,7 @@
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|x86'"
>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\
x86\
Debug\
</OutputPath>
<OutputPath>
bin\Debug\
</OutputPath>
<DefineConstants>
DEBUG;TRACE
</DefineConstants>
<DebugType>
full
</DebugType>
<PlatformTarget>
x86
</PlatformTarget>
...
...
@@ -23,7 +23,7 @@
<CodeAnalysisRuleSet>
MinimumRecommendedRules.ruleset
</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|x86'"
>
<OutputPath>
bin\
x86\
Release\
</OutputPath>
<OutputPath>
bin\Release\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<Optimize>
true
</Optimize>
<DebugType>
none
</DebugType>
...
...
@@ -37,23 +37,6 @@
<PropertyGroup>
<ApplicationIcon>
WindBot.ico
</ApplicationIcon>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"
>
<DebugSymbols>
true
</DebugSymbols>
<OutputPath>
bin\Debug\
</OutputPath>
<DefineConstants>
DEBUG;TRACE
</DefineConstants>
<DebugType>
full
</DebugType>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<ErrorReport>
prompt
</ErrorReport>
<CodeAnalysisRuleSet>
MinimumRecommendedRules.ruleset
</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)' == 'Release|AnyCPU'"
>
<OutputPath>
bin\Release\
</OutputPath>
<DefineConstants>
TRACE
</DefineConstants>
<Optimize>
true
</Optimize>
<PlatformTarget>
AnyCPU
</PlatformTarget>
<ErrorReport>
prompt
</ErrorReport>
<CodeAnalysisRuleSet>
MinimumRecommendedRules.ruleset
</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference
Include=
"Mono.Data.Sqlite"
>
<HintPath>
.\Mono.Data.Sqlite.dll
</HintPath>
...
...
WindBot.sln
View file @
ac16e474
...
...
@@ -9,28 +9,18 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BotWrapper", "BotWrapper\Bo
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Debug|x86.ActiveCfg = Debug|x86
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Debug|x86.Build.0 = Debug|x86
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Release|Any CPU.Build.0 = Release|Any CPU
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Release|x86.ActiveCfg = Release|x86
{3E7FAF67-A27D-4A61-B161-93AD4414183E}.Release|x86.Build.0 = Release|x86
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Debug|x86.ActiveCfg = Debug|Any CPU
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Debug|x86.Build.0 = Debug|Any CPU
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Release|Any CPU.Build.0 = Release|Any CPU
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Release|x86.ActiveCfg = Release|Any CPU
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Release|x86.Build.0 = Release|Any CPU
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Debug|x86.ActiveCfg = Debug|x86
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Debug|x86.Build.0 = Debug|x86
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Release|x86.ActiveCfg = Release|x86
{0665CA3B-C14F-40EC-ABFB-AD46A695F5A3}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
...
...
YGOSharp.OCGWrapper.dll
View file @
ac16e474
No preview for this file type
appveyor.yml
View file @
ac16e474
version
:
'
{build}'
install
:
-
mkdir Windbot
platform
:
x86
configuration
:
Release
build_script
:
-
msbuild /property:Configuration=Release /property:OutDir=./Windbot
after_build
:
-
git config --global user.name "Smile-DK"
-
git config --global user.email "2236141431@qq.com"
-
mv bin\Release WindBot
-
rm WindBot\WindBot.exe.config
-
mv BotWrapper\bin\Release\Bot.exe .
-
mv BotWrapper\bin\Release\bot.conf .
-
git clone https://github.com/moecube/ygopro-database
-
cp -rf ygopro-database/locales/zh-CN/cards.cdb WindBot
-
git clone https://github.com/Smile-DK/ygopro-svrelease
-
cd ygopro-svrelease
-
rm -rf WindBot Windbot
-
cp -rf ../Windbot .
-
git add . -A
-
git commit -m "Windbot pushed by Appveyor"
-
git push %Smile%Smile-DK/ygopro-svrelease master
-
cd ..
-
7z a -mx9 Windbot.7z WindBot
test
:
off
artifacts
:
-
path
:
Windbot.7z
name
:
Windbot
branches
:
only
:
-
master
sqlite3.dll
View file @
ac16e474
No preview for this file type
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