-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfics.py
More file actions
43 lines (28 loc) · 834 Bytes
/
fics.py
File metadata and controls
43 lines (28 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#Telnet connection for freechess
import os
import logging
import telnetlib
HOST = "freechess.org" #69.36.243.188
PORT = 5000
USER = "7UP"
PASS = ''
contact = 'reason71944@gmail.com'
tn = telnetlib.Telnet(HOST)
endTime = 15
FingerData = ""
saveArea = "save.txt"
Ignore = ['RoboAdmin','Mamer', 'Relay'] #Welcoming bots that are annoying. This may change later
Connected = False
logger = logging.getLogger("Mr.Logger 1")
logger.setLevel(logging.DEBUG) #set the level to debug status
LeLogger = logging.StreamHandler() #get ready to output
LeLogger = logging.setLevel(logging.DEBUG) #set handler to debug status
format = logging.Formatter("$(asctime)s - %(name)s - %(levelname)s - %(message)s") #format the message
LeLogger.setFormatter(format)
logger.addHandler(LeLogger)
##Testing
#
#logger.debug("debug message")
#
#
##