mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Make the tipbot nick configurable
This commit is contained in:
parent
d06bf258f8
commit
c8f765f361
1 changed files with 3 additions and 2 deletions
|
@ -16,6 +16,7 @@ import json
|
|||
import httplib
|
||||
import time
|
||||
|
||||
tipbot_name = "monero-testnet-tipbot"
|
||||
irc_network = 'irc.freenode.net'
|
||||
irc_port = 6667
|
||||
irc_homechan = '#txtptest000'
|
||||
|
@ -69,8 +70,8 @@ def connect_to_irc(network,port):
|
|||
exit()
|
||||
log_IRCRECV(irc.recv ( 4096 ))
|
||||
irc.send ( 'PASS *********\r\n')
|
||||
irc.send ( 'NICK monero-tipbot\r\n' )
|
||||
irc.send ( 'USER monero-tipbot monero-tipbot monero-tipbot :monero-tipbot\r\n' )
|
||||
irc.send ( 'NICK %s\r\n' % tipbot_name)
|
||||
irc.send ( 'USER %s %s %s :%s\r\n' % (tipbot_name, tipbot_name, tipbot_name, tipbot_name))
|
||||
|
||||
def connect_to_redis(host,port):
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue