-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from DankCity/73-use-appdirs-for-logs
73 use appdirs for logs
- Loading branch information
Showing
8 changed files
with
94 additions
and
51 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
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,4 +1,6 @@ | ||
|
||
from ._version import get_versions | ||
__version__ = get_versions()['version'] | ||
del get_versions | ||
|
||
APPNAME = "dankbot" | ||
APPAUTHOR = "DankCity" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[dankbot] | ||
# Leave directory blank and dankbot will determine the best place to | ||
# log to your platform | ||
log_to_file: true | ||
directory: | ||
file_name: dankbot.log | ||
backups: 5 | ||
max_bytes: 1000000 | ||
|
||
[slack] | ||
# Follow instructions at https://my.slack.com/services/new/bot | ||
token: <put here> | ||
channel: #random | ||
|
||
[reddit] | ||
# r/dankmemes, r/funnygifs, etc | ||
subreddits: dankmemes, funnygifs | ||
|
||
[imgur] | ||
# Register at https://api.imgur.com/oauth2/addclient | ||
# Select Anonymous usage | ||
client_id: <your client ID> | ||
client_secret: <your client secret> | ||
|
||
[mysql] | ||
# depricated, switching ti sqlite | ||
database: <db> | ||
username: <username> | ||
password: <password> | ||
|
||
[misc] | ||
include_nsfw: false | ||
max_memes: 3 |
Empty file.
This file was deleted.
Oops, something went wrong.
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