-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsample.py
54 lines (46 loc) · 1.19 KB
/
sample.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from iroffer import config
path="/etc/iroffer" # path from inside the chroot if chrooted
nickserv_pass="password1"
server_list=[("irc.example.net", 6667)]
chan_list=["#channel"]
filedir_list=[]
uploaddir_list=[]
downloadhost_list=[] # everyone if empty
uploadhost_list=[] # nobody if empty
autosend_list=[(-1, '!list', "XDCC listing")]
adminhost=[
"telnet!*@telnet",
"*!*@example.fr",
]
hadminhost=[
]
adminpass="password2"
hadminpass="password3"
mybot = "sample"
nick = "[XDCC]`%s" % mybot
headline="Listing available at pack #-1 or here: http://xdcc.listing.tld/%5BXDCC%5D%60MyBot/"
restrictprivlistmsg=headline
telnet_port = ((sum(ord(i) for i in mybot) % 100) + 2323)
config(
mybot=mybot,
nick=nick,
path=path,
nickserv_pass=nickserv_pass,
server_list=server_list,
chan_list=chan_list,
filedir_list=filedir_list,
autosend_list=autosend_list,
headline=headline,
adminpass=adminpass,
adminhost=adminhost,
hadminpass=hadminpass,
hadminhost=hadminhost,
telnet_port=telnet_port,
restrictprivlistmsg=restrictprivlistmsg,
uploaddir_list=uploaddir_list,
uploadhost_list=uploadhost_list,
downloadhost_list=downloadhost_list
)