-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py.example
46 lines (42 loc) · 1.11 KB
/
config.py.example
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
# coding: utf-8
# SIRC
N_LINES = 32
SIRC_ADDRESS = '0.0.0.0'
SIRC_PORT = 2354
SIRC_URL = 'http://neria.kr:%d/' % SIRC_PORT
SIRC_DB = 'sirc'
SIRC_DB_USE_AUTH = True
SIRC_DB_USER = 'sirc'
SIRC_DB_PASS = 'sirc'
NOTIFY_NAME = '!'
# IRC
SERVER = 'irc.uriirc.org'
USE_SSL = True
PORT = 16662
BOT_NAME = 's'
OPERATOR_NAME = 'sgm'
OPERATOR_COMMAND = '!옵'
# Cookie keys
SESSION_ID = 'SIRC_SESSION_ID'
TOKEN_SECRET = 'OAUTH_TOKEN_SECRET'
OAUTH_PROVIDER = 'OAUTH_PROVIDER'
# OAuth
OAUTH = {
'snucse': {
'CONSUMER_KEY': '',
'CONSUMER_SECRET': '',
'REQUEST_URL': 'https://www.snucse.org/app/RequestToken',
'AUTHORIZE_URL': 'https://www.snucse.org/app/Authorize',
'ACCESS_URL': 'https://www.snucse.org/app/AccessToken',
'PREFIX': '+'
},
'twitter': {
'CONSUMER_KEY': '',
'CONSUMER_SECRET': '',
'REQUEST_URL': 'https://api.twitter.com/oauth/request_token',
'AUTHORIZE_URL': 'https://api.twitter.com/oauth/authenticate',
'ACCESS_URL': 'https://api.twitter.com/oauth/access_token',
'PREFIX': '@'
}
}
CALLBACK_URL = '%scallback/' % SIRC_URL