-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjuliet.cfg
86 lines (66 loc) · 1.98 KB
/
juliet.cfg
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
##
# Sample configuration file for the Juliet IRC Radio Bot.
#
# Comments in this file start with a #
##
##
# Set up the connection to your radio.
# - For Windows, this will be a COM* value.
# - For Linux and macOS, this will be the /dev/tty* entry for your comm port.
radio:
port: '/dev/tty.usbserial'
baud: 38400
##
# This section defines the IRC server that Juliet will join.
server:
# if host is omitted, Juliet will start a lightweight IRC server internally
host: localhost
# the port to use for the IRC server
port: 6667
# a unique nickname for the bot on the IRC server
nickname: juliet
# a descriptive name for the bot on the IRC server
realname: Juliet Radio Bot
# This is a list of channels that Juliet will join when started.
channels:
- name: '#CQCQCQ'
# Channels may also specify a key if required:
- name: '#PRIVATE'
key: CHANNEL_KEY
# Juliet can also be summoned to a channel by a direct mesage.
#-------------------------------------------------------------------------------
# setup logging system -- or remove this section to disable logging
# this uses the standard dict config for the Python logging framework
logging:
version: 1
formatters:
brief:
format: '%(message)s'
short:
format: '%(levelname)s:%(name)s:%(message)s'
long:
format: '%(asctime)s %(levelname)-8s %(threadName)s %(name)s %(message)s'
datefmt: '%Y-%m-%d %H:%M:%S'
# Set the logging level for all juliet objects.
root:
level: INFO
handlers: [logfile]
# Optionally, you can choose to send logging to both the console and a file.
#handlers: [console, logfile]
# Control logging for other modules
loggers:
irc:
level: WARN
juliet.MessageBuffer:
level: WARN
handlers:
console:
class: logging.StreamHandler
formatter: short
stream: ext://sys.stdout
logfile:
class : logging.FileHandler
formatter: long
filename: juliet.log
mode: w
# vim: ft=yaml