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
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
alstroemeria-silentlove
windbot
Commits
8ffe9863
Commit
8ffe9863
authored
Sep 02, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c07e578e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
Program.cs
Program.cs
+4
-9
WindBotInfo.cs
WindBotInfo.cs
+1
-1
No files found.
Program.cs
View file @
8ffe9863
...
...
@@ -55,9 +55,9 @@ namespace WindBot
// YGOPRO_HOST
// YGOPRO_PORT
// YGOPRO_NAME
// YGOPRO_DECK
//
// List of variables optional:
// YGOPRO_DECK
// YGOPRO_VERSION
// YGOPRO_DIALOG
// YGOPRO_PASSWORD
...
...
@@ -126,9 +126,10 @@ namespace WindBot
using
(
HttpListener
MainServer
=
new
HttpListener
())
{
MainServer
.
AuthenticationSchemes
=
AuthenticationSchemes
.
Anonymous
;
MainServer
.
Prefixes
.
Add
(
"http://127.0.0.1:
2399
/"
);
MainServer
.
Prefixes
.
Add
(
"http://127.0.0.1:
"
+
ServerPort
+
"
/"
);
MainServer
.
Start
();
Logger
.
WriteLine
(
"Windbot Server Start Successed."
);
Logger
.
WriteLine
(
"HTTP GET http://127.0.0.1:"
+
ServerPort
+
"/?name=Windbot&host=127.0.0.1&port=7911 to call the bot."
);
while
(
true
)
{
try
...
...
@@ -153,7 +154,7 @@ namespace WindBot
if
(
password
!=
null
)
Info
.
HostInfo
=
password
;
if
(
Info
.
Name
==
null
||
Info
.
Deck
==
null
||
Info
.
Host
==
null
||
port
==
null
)
if
(
Info
.
Name
==
null
||
Info
.
Host
==
null
||
port
==
null
)
{
ctx
.
Response
.
StatusCode
=
400
;
ctx
.
Response
.
Close
();
...
...
@@ -211,13 +212,7 @@ namespace WindBot
}
}
Logger
.
DebugWriteLine
(
client
.
Username
+
" end."
);
//System.Threading.Thread.CurrentThread.Abort();
}
//catch (ThreadAbortException)
//{
//if (DebugMode)
// throw ex;
//}
catch
(
Exception
ex
)
{
if
(!
DebugMode
)
...
...
WindBotInfo.cs
View file @
8ffe9863
...
...
@@ -15,7 +15,7 @@ namespace WindBot
public
WindBotInfo
()
{
Name
=
"WindBot"
;
Deck
=
"Blue-Eyes"
;
Deck
=
null
;
Dialog
=
"default"
;
Host
=
"127.0.0.1"
;
Port
=
7911
;
...
...
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