Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
d59ecc6a
Commit
d59ecc6a
authored
14 years ago
by
mcmlxxix
Browse files
Options
Downloads
Patches
Plain Diff
fixed variable scope
parent
a4901a3c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
exec/ircbots/dice/dicebot.js
+1
-1
1 addition, 1 deletion
exec/ircbots/dice/dicebot.js
exec/ircbots/poker/pokerbot.js
+6
-6
6 additions, 6 deletions
exec/ircbots/poker/pokerbot.js
with
7 additions
and
7 deletions
exec/ircbots/dice/dicebot.js
+
1
−
1
View file @
d59ecc6a
...
...
@@ -6,7 +6,7 @@
if there are duplicate command names, they will be superseded in the order
in which they are loaded (in the order they are listed in ircbot.ini).
*/
working_dir
=
this
.
dir
;
var
working_dir
=
this
.
dir
;
/* This method is executed by the IRCBot during its "save_everything()" cycle */
function
save
()
...
...
This diff is collapsed.
Click to expand it.
exec/ircbots/poker/pokerbot.js
+
6
−
6
View file @
d59ecc6a
poker_dir
=
this
.
dir
;
poker_scores
=
[];
notice_interval
=
10
;
//seconds
activity_timeout
=
120
;
poker_games
=
[];
var
poker_dir
=
this
.
dir
;
var
poker_scores
=
[];
var
notice_interval
=
10
;
//seconds
var
activity_timeout
=
120
;
var
poker_games
=
[];
// Game functions
function
save
()
...
...
@@ -61,7 +61,7 @@ function Poker_Game()
function
Poker_Player
()
{
this
.
cards
=
[];
this
.
money
=
100
;
this
.
money
=
100
0
;
this
.
bet
=
0
;
this
.
has_bet
=
false
;
this
.
active
=
true
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment