Skip to content

Instantly share code, notes, and snippets.

@Zert
Created March 30, 2012 08:18
Show Gist options
  • Save Zert/2249417 to your computer and use it in GitHub Desktop.
Save Zert/2249417 to your computer and use it in GitHub Desktop.
%% -*- mode: Erlang; -*-
[
%% SASL config
{sasl,
[
%%{sasl_error_logger, {file, "log/sasl-error.log"}},
{sasl_error_logger, tty},
{errlog_type, all},
{error_logger_mf_dir, "log/sasl"}, % Log directory
{error_logger_mf_maxbytes, 10485760}, % 10 MB max file size
{error_logger_mf_maxfiles, 5} % 5 files max
]},
{ebot,
[
{restart, temporary}, % restart behaviour of bot: 'transient' — restart on abnormal termination, or 'temporary' — do not restart bot
{max_restarts, 100}, % max restart count during max_seconds_between_restarts, all bots stopped if exceed
{max_seconds_between_restarts, 1}, % max timeout in seconds between bots restart
{enable_echo, false}, % do not play, just send echo message to pair player number
{timeout, 200}, % (ms) timeout between bots startups
{prefix, "player"}, % prefix of bot username to compose JID
{range, {20001, 20005}}, % range of bot ids to compose JID
{password, "kqwjefg7234fbwleffjbw"}, % password for username
{server, "game.tophitpoker.com"}, % XMPP server
{port, 5222}, % XMPP port
{manager, "manager3"}, % username of manager
{enable_actions_dump, true}, % turning on/off actions log storing and dumping
{max_actions_size, 150}, % max size of actions queue
{actions_dump_dir, "log"}, % directory to dump actions log
{default_behaviour,
[
{fold_chance, 10},
{enable_offline, false}, % enable bots go offline from time to time
{offline_by_drop, false}, % bot can go offline by dropping connection
{offline_by_stop, false}, % bot can go offline by stopping session
{offline_by_leave, false}, % bot can go offline by sending # leave
{receive_timeout, 100}, % if message not received during this timeout, dump actions log
{min_play_time, 60}, % (seconds) each bot must play at least 1 minute (60 seconds)
{delta_time, 300}, % (seconds) within delta_time bot will go offline. so, it player min_play_time, and then randomly within next 5 min will go offline.
{whereplay_delay_min, 1}, % (seconds) min delay before 'whereplay'
{whereplay_delay_delta, 5}, % (seconds) delay delta before 'whereplay'
{answer_delay, 0}, % here is a delay before bot replies on act
{thinking_enable, true}, % enable varying thinking time, answer_delay is disabled
{thinking_min, 1}, % min varying thinking time
{thinking_max, 15} % max varying thinking time
]
},
%% default_behaviour merged with one (random) behaviour from this list
{behaviours,
[
{normal, []}
%% {drop_connect,
%% [
%% {enable_offline, true},
%% {offline_by_drop, true},
%% {delta_time, 100}
%% ]
%% },
%% {stop_connect,
%% [
%% {enable_offline, true},
%% {offline_by_stop, true},
%% {delta_time, 30}
%% ]
%% },
%% {leave_game,
%% [
%% {enable_offline, true},
%% {offline_by_leave, true},
%% {min_play_time, 10},
%% {delta_time, 3}
%% ]
%% }
]
}
]
}
].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment