-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
40 lines (32 loc) · 879 Bytes
/
test.py
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
from model.managers import BotManager, NetworkManager, ServerManager, ChannelManager, init_db
networkManager = NetworkManager
botManager = BotManager
serverManager = ServerManager
channelManager = ChannelManager
init_db()
botManager.add("scud", "0xff")
botManager.output("scud")
botManager.delete("scud", "0xff")
botManager.add("scud", "0xff")
botManager.output("scud")
channelManager.add("#scud.test")
botManager.addChannel("scud", "#scud.test")
serverManager.add("0xff", "irc.0xff.com", "6697", True)
botManager.output("scud")
serverManager.output()
print "networks"
print networkManager
#networkManager.delete("0xff", True)
print "bots"
botManager.output()
print "networks"
print networkManager
print "servers"
serverManager.output()
print "channels"
channelManager.output()
print "Cleaning Servers"
serverManager.clean()
print "Servers"
serverManager.output()
quit()