forked from Steve-V/tgg-BotSteve
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow a config for the data expiry, and move the default config to an…
… outside file.
- Loading branch information
Showing
4 changed files
with
43 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*~ | ||
*pyc | ||
.directory | ||
modules/astrobot.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
nick = 'phenny' | ||
host = 'irc.example.net' | ||
channels = ['#example', '#test'] | ||
owner = 'yournickname' | ||
|
||
# password = 'yourserverpassword' | ||
|
||
# These are people who will be able to use admin.py's functions... | ||
admins = [owner, 'someoneyoutrust'] | ||
# But admin.py is disabled by default, as follows: | ||
exclude = ['admin'] | ||
|
||
# If you want to enumerate a list of modules rather than disabling | ||
# some, use "enable = ['example']", which takes precedent over exclude | ||
# | ||
# enable = [] | ||
|
||
# Directories to load user modules from | ||
# e.g. /path/to/my/modules | ||
extra = [] | ||
|
||
# Services to load: maps channel names to white or black lists | ||
external = { | ||
'#liberal': ['!'], # allow all | ||
'#conservative': [], # allow none | ||
'*': ['!'] # default whitelist, allow all | ||
} | ||
|
||
# Configuration for the nicktracker module. | ||
nicktracker = { | ||
# The time for loaded data to expire, and we should reload it. In seconds. | ||
'expiry': 30*60, | ||
} | ||
|
||
# EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters