forked from sim0629/sirc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py.example
40 lines (36 loc) · 924 Bytes
/
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
# coding: utf-8
# SIRC
N_LINES = 32
SIRC_PORT = 2354
SIRC_DB = 'sirc_db'
NOTIFY_NAME = '!'
# IRC
SERVER = 'irc.uriirc.org'
PORT = 16667
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 = 'http://neria.kr:%d/callback/' % SIRC_PORT