Редакция 2 | К новейшей редакции | Содержимое файла | Сравнить с предыдущей | Последнее изменение | Открыть журнал | RSS
Редакция | Автор | № строки | Строка |
---|---|---|---|
2 | scream | 1 | # -*- coding: utf-8 -*- |
2 | """ Neo-Modus Direct Connect Protocol Package """ |
||
3 | from protocol import NMDC |
||
4 | |||
5 | class NMDCClientToHub(NMDC): |
||
6 | def nmdc_BadPass(self): |
||
7 | pass |
||
8 | |||
9 | def nmdc_BotList(self): |
||
10 | pass |
||
11 | |||
12 | def nmdc_Close(self): |
||
13 | pass |
||
14 | |||
15 | def nmdc_ConnectToMe(self): |
||
16 | pass |
||
17 | |||
18 | def nmdc_ForceMove(self): |
||
19 | pass |
||
20 | |||
21 | def nmdc_GetNickList(self): |
||
22 | pass |
||
23 | |||
24 | def nmdc_GetPass(self): |
||
25 | pass |
||
26 | |||
27 | def nmdc_Hello(self, params): |
||
28 | self.sendLine("$Version 1,0091|$GetNickList|$MyINFO $ALL twistedbot TEST<++ V:0.698,M:A,H:1/0/0,S:5>$ $0.005$$0$|") |
||
29 | #self.makeAnswer("Version","1,0099") |
||
30 | #self.makeAnswer("GetNickList","") |
||
31 | #self.makeAnswer("MyINFO","$ALL twistedbot<++ V:0.698,M:A,H:1/0/0,S:5>$ $0.005$$0$") |
||
32 | |||
33 | def nmdc_HubIsFull(self): |
||
34 | pass |
||
35 | |||
36 | def nmdc_HubName(self, params): |
||
37 | pass |
||
38 | |||
39 | def nmdc_HubTopic(self): |
||
40 | pass |
||
41 | |||
42 | def nmdc_Key(self, params): |
||
43 | print "nmdc_Key" |
||
44 | pass |
||
45 | |||
46 | def nmdc_Kick(self): |
||
47 | pass |
||
48 | |||
49 | def nmdc_Lock(self, params): |
||
50 | from tools.dctools import createKey |
||
51 | keylock = createKey(params) |
||
52 | print "nmdc_Lock: %s" %keylock |
||
53 | self.makeAnswer("Supports", |
||
54 | "UserCommand NoGetINFO NoHello UserIP2 TTHSearch ZPipe0") |
||
55 | self.makeAnswer("Key", keylock) |
||
56 | self.makeAnswer("ValidateNick", "twistedbot") |
||
57 | |||
58 | def nmdc_LogedIn(self): |
||
59 | pass |
||
60 | |||
61 | def nmdc_MyINFO(self): |
||
62 | pass |
||
63 | |||
64 | def nmdc_MyPass(self): |
||
65 | pass |
||
66 | |||
67 | def nmdc_NickList(self): |
||
68 | pass |
||
69 | |||
70 | def nmdc_OpForceMove(self): |
||
71 | pass |
||
72 | |||
73 | def nmdc_OpList(self): |
||
74 | pass |
||
75 | |||
76 | def nmdc_Quit(self): |
||
77 | pass |
||
78 | |||
79 | def nmdc_RevConnectToMe(self): |
||
80 | pass |
||
81 | |||
82 | def nmdc_Search(self): |
||
83 | pass |
||
84 | |||
85 | def nmdc_SR(self): |
||
86 | pass |
||
87 | |||
88 | def nmdc_Supports(self, params): |
||
89 | pass |
||
90 | |||
91 | def nmdc_UserCommand(self): |
||
92 | pass |
||
93 | |||
94 | def nmdc_UserIP(self): |
||
95 | pass |
||
96 | |||
97 | def nmdc_Version(self): |
||
98 | pass |
||
99 | |||
100 | def nmdc_ValidateNick(self): |
||
101 | pass |
||
102 | |||
103 | def nmdc_ValidateDenide(self): |
||
104 | pass |
||
105 |