2014-12-29 17:08:13 +00:00
|
|
|
#!/bin/python
|
|
|
|
#
|
|
|
|
# Cryptonote tipbot - configuration
|
|
|
|
# Copyright 2014 moneromooo
|
|
|
|
# Inspired by "Simple Python IRC bot" by berend
|
|
|
|
#
|
|
|
|
# The Cryptonote tipbot is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as published
|
|
|
|
# by the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
|
|
|
|
tipbot_name = "monero-testnet-tipbot"
|
2014-12-31 09:49:20 +00:00
|
|
|
|
2014-12-29 17:08:13 +00:00
|
|
|
redis_host="127.0.0.1"
|
|
|
|
redis_port=7777
|
|
|
|
|
|
|
|
daemon_host = 'testfull.monero.cc' # '127.0.0.1'
|
|
|
|
daemon_port = 28081 # 6060
|
|
|
|
wallet_host = '127.0.0.1'
|
|
|
|
wallet_port = 6061
|
|
|
|
wallet_update_time = 30 # seconds
|
|
|
|
withdrawal_fee=None # None defaults to the network default fee
|
|
|
|
min_withdraw_amount = None # None defaults to the withdrawal fee
|
2015-01-11 16:28:20 +00:00
|
|
|
withdrawal_mixin=0
|
2014-12-29 17:08:13 +00:00
|
|
|
disable_withdraw_on_error = True
|
2015-01-25 18:36:17 +00:00
|
|
|
payment_confirmations = 6
|
2015-01-25 21:09:56 +00:00
|
|
|
tipbot_balance_cache_time = 35 # seconds
|
2015-01-30 18:27:34 +00:00
|
|
|
site_game_salt = ''
|
2015-02-15 16:46:17 +00:00
|
|
|
openalias_address = None
|
2014-12-29 17:08:13 +00:00
|
|
|
|
2015-01-13 12:28:05 +00:00
|
|
|
admins = ["freenode:moneromooo", "freenode:moneromoo"]
|
2014-12-29 17:08:13 +00:00
|
|
|
|
|
|
|
# list of nicks to ignore for rains - bots, trolls, etc
|
|
|
|
no_rain_to_nicks = []
|
|
|
|
|
2015-01-21 13:50:31 +00:00
|
|
|
# commands used by other bots, to avoid "unknown command" complaints
|
|
|
|
silent_invalid_commands = {
|
2015-01-31 23:07:00 +00:00
|
|
|
'freenode': [
|
|
|
|
'price','worth','net','pools','calc','convert','val']
|
2015-01-21 13:50:31 +00:00
|
|
|
}
|
|
|
|
|
2015-01-26 22:18:18 +00:00
|
|
|
network_config = {
|
|
|
|
'freenode': {
|
|
|
|
'host': 'irc.freenode.net',
|
|
|
|
'port': 6697,
|
|
|
|
'login': tipbot_name,
|
2015-01-28 13:44:56 +00:00
|
|
|
'delay': 0.4,
|
2015-01-26 22:18:18 +00:00
|
|
|
'ssl': True,
|
|
|
|
'sasl': True,
|
|
|
|
'sasl_name': 'monero-tipbot',
|
2015-01-28 13:44:56 +00:00
|
|
|
'welcome_line': 'Welcome to the freenode Internet Relay Chat Network',
|
|
|
|
'timeout_seconds': 600,
|
|
|
|
'channels': ['#txtptest000'],
|
2015-01-26 22:18:18 +00:00
|
|
|
},
|
2015-01-19 08:41:49 +00:00
|
|
|
'reddit': {
|
|
|
|
'subreddits': ['test'],
|
|
|
|
'login': 'testbx',
|
|
|
|
'keyword': '/u/testbx',
|
|
|
|
'user_agent': tipbot_name,
|
2015-02-15 11:17:54 +00:00
|
|
|
'update_period': 35,
|
2015-01-19 08:41:49 +00:00
|
|
|
'load_limit': 100,
|
2015-02-15 16:41:59 +00:00
|
|
|
'use_unread_api': False,
|
2015-02-15 11:17:54 +00:00
|
|
|
'cache_timeout': 30,
|
2015-02-08 21:37:02 +00:00
|
|
|
},
|
|
|
|
'twitter': {
|
|
|
|
'login': 'tipperome',
|
|
|
|
'update_period': 90,
|
|
|
|
'keyword': '@tipperome',
|
2015-02-19 19:35:10 +00:00
|
|
|
'fs_location': '/tmp/twitter',
|
|
|
|
'fs_prefix_tree': 2,
|
2015-03-17 09:09:01 +00:00
|
|
|
'fs_hash_length': 32,
|
2015-02-19 19:35:10 +00:00
|
|
|
'uri_base': 'http://127.0.0.1/',
|
2015-03-17 09:09:01 +00:00
|
|
|
'prefix_when_linked': 'see: ',
|
2015-02-08 21:37:02 +00:00
|
|
|
},
|
2015-01-26 22:18:18 +00:00
|
|
|
}
|
|
|
|
|
2015-01-25 12:36:04 +00:00
|
|
|
dice_min_multiplier=1.1
|
|
|
|
dice_max_multiplier=10
|
2015-01-12 21:51:52 +00:00
|
|
|
dice_edge = 0.01
|
|
|
|
dice_max_bet = 5
|
|
|
|
dice_min_bet = 0.001
|
|
|
|
# how much are we prepared to lose
|
|
|
|
dice_max_loss = 10
|
|
|
|
# how much are we prepared to lose as a ratio of our current pot
|
|
|
|
dice_max_loss_ratio = 0.05
|
2014-12-29 17:08:13 +00:00
|
|
|
|
2015-01-12 21:52:05 +00:00
|
|
|
# see http://wizardofodds.com/games/blackjack/calculator/
|
|
|
|
blackjack_decks = 4
|
|
|
|
blackjack_split_to = 4
|
|
|
|
blackjack_insurance = True
|
|
|
|
blackjack_sidebets = ["over13", "under13", "pair", "climber", "buster", "splits", "match", "addup"]
|
|
|
|
blackjack_max_bet = 5
|
|
|
|
blackjack_min_bet = 0.001
|
|
|
|
# how much are we prepared to lose
|
|
|
|
blackjack_max_loss = 10
|
|
|
|
# how much are we prepared to lose as a ratio of our current pot
|
|
|
|
blackjack_max_loss_ratio = 0.05
|
2015-01-12 21:52:19 +00:00
|
|
|
|
|
|
|
bookie_fee = 0.01
|
|
|
|
bookie_min_bet = 0.001
|
|
|
|
bookie_max_bet = 1000
|
2015-01-20 23:00:30 +00:00
|
|
|
|
|
|
|
pinata_start_amount = 0.75
|
|
|
|
pinata_base_target = 2
|
|
|
|
pinata_num_increments = 20
|
|
|
|
pinata_target_increment = 0.01
|
|
|
|
pinata_winner_base_share = 0.75
|
|
|
|
pinata_rain_remainder_share = 0.8
|
|
|
|
pinata_carry_remainder_share = 0.17
|
2015-02-02 17:47:17 +00:00
|
|
|
|
|
|
|
kitsune_max_bet = 1
|
|
|
|
kitsune_min_bet = 0.001
|
|
|
|
# how much are we prepared to lose
|
|
|
|
kitsune_max_loss = 35
|
|
|
|
# how much are we prepared to lose as a ratio of our current pot
|
|
|
|
kitsune_max_loss_ratio = 0.1
|
|
|
|
|