mirror of
https://github.com/NohamR/TransmissionBot.git
synced 2025-05-24 00:48:59 +00:00
just uncommented definition of CONFIG
This commit is contained in:
parent
179a26e07e
commit
18d046df96
152
bot.py
152
bot.py
@ -41,82 +41,82 @@ Bot configuration:
|
|||||||
2. run the bot, which will make a config.json file containing this configuration info
|
2. run the bot, which will make a config.json file containing this configuration info
|
||||||
3. comment or remove the configuration below, as the config.json will be used instead (this also makes updating to new versions easier)
|
3. comment or remove the configuration below, as the config.json will be used instead (this also makes updating to new versions easier)
|
||||||
"""
|
"""
|
||||||
# CONFIG = {
|
CONFIG = {
|
||||||
# "tsclient": { # information for transmission remote web gui
|
"tsclient": { # information for transmission remote web gui
|
||||||
# 'host': "192.168.0.2",
|
'host': "192.168.0.2",
|
||||||
# 'port': 9091,
|
'port': 9091,
|
||||||
# 'user': "USERNAME",
|
'user': "USERNAME",
|
||||||
# 'password': "PASSWORD"
|
'password': "PASSWORD"
|
||||||
# },
|
},
|
||||||
# "whitelist_user_ids": [], # discord users allowed to use bot
|
"whitelist_user_ids": [], # discord users allowed to use bot
|
||||||
# "blacklist_user_ids": [], # discord users disallowed to use bot
|
"blacklist_user_ids": [], # discord users disallowed to use bot
|
||||||
# "owner_user_ids": [], # discord users given full access
|
"owner_user_ids": [], # discord users given full access
|
||||||
# "DM_compact_output_user_ids": [], # DO NOT EDIT MANUALLY! if a user id is in this list, that user will get compact output via DM (changed by t/compact command)
|
"DM_compact_output_user_ids": [], # DO NOT EDIT MANUALLY! if a user id is in this list, that user will get compact output via DM (changed by t/compact command)
|
||||||
# "reaction_wait_timeout": 7200, # seconds the bot should wait for a reaction to be clicked by a user
|
"reaction_wait_timeout": 7200, # seconds the bot should wait for a reaction to be clicked by a user
|
||||||
# "delete_command_messages": False, # delete command messages from users
|
"delete_command_messages": False, # delete command messages from users
|
||||||
# "delete_command_message_private_torrent": True, # deletes command message if that message contains one or more torrent files that use a private tracker
|
"delete_command_message_private_torrent": True, # deletes command message if that message contains one or more torrent files that use a private tracker
|
||||||
# "private_transfers_protected": True, # prevent transfers on private trackers from being removed
|
"private_transfers_protected": True, # prevent transfers on private trackers from being removed
|
||||||
# "private_transfer_protection_added_user_override": True, # if true, the user that added a private transfer can remove it regardless of 'private_transfers_protected'
|
"private_transfer_protection_added_user_override": True, # if true, the user that added a private transfer can remove it regardless of 'private_transfers_protected'
|
||||||
# "private_transfer_protection_bot_owner_override": False, # similar to 'private_transfer_protection_added_user_override', but allows bot owners to delete private transfers
|
"private_transfer_protection_bot_owner_override": False, # similar to 'private_transfer_protection_added_user_override', but allows bot owners to delete private transfers
|
||||||
# "whitelist_user_can_remove": True, # if true, whitelisted users can remove any transfer
|
"whitelist_user_can_remove": True, # if true, whitelisted users can remove any transfer
|
||||||
# "whitelist_user_can_delete": True, # if true, whitelisted users can remove and delete any transfer
|
"whitelist_user_can_delete": True, # if true, whitelisted users can remove and delete any transfer
|
||||||
# "whitelist_added_user_remove_delete_override": True, # if true, override both 'whitelist_user_can_remove' and 'whitelist_user_can_delete' allowing whitelisted users to remove and delete transfers they added
|
"whitelist_added_user_remove_delete_override": True, # if true, override both 'whitelist_user_can_remove' and 'whitelist_user_can_delete' allowing whitelisted users to remove and delete transfers they added
|
||||||
# "bot_prefix": "t/", # bot command prefix
|
"bot_prefix": "t/", # bot command prefix
|
||||||
# "bot_token": "BOT_TOKEN", # bot token
|
"bot_token": "BOT_TOKEN", # bot token
|
||||||
# "dryrun": False, # if true, no changes are actually applied to transfers
|
"dryrun": False, # if true, no changes are actually applied to transfers
|
||||||
# "listen_channel_ids": [], # channels in which to listen for commands
|
"listen_channel_ids": [], # channels in which to listen for commands
|
||||||
# "listen_all_channels": False, # if true, listen for commands in all text channels
|
"listen_all_channels": False, # if true, listen for commands in all text channels
|
||||||
# "listen_DMs": True, # listen for commands via DM to the bot
|
"listen_DMs": True, # listen for commands via DM to the bot
|
||||||
# "logo_url": "https://iyanovich.files.wordpress.com/2009/04/transmission-logo.png", # URL to logo that appears in some output
|
"logo_url": "https://iyanovich.files.wordpress.com/2009/04/transmission-logo.png", # URL to logo that appears in some output
|
||||||
# "notification_channel_id": 0, # id of channel to which in-channel notificatations will be posted
|
"notification_channel_id": 0, # id of channel to which in-channel notificatations will be posted
|
||||||
# "notification_enabled": True, # if False, in-channel and DM notifications are disabled
|
"notification_enabled": True, # if False, in-channel and DM notifications are disabled
|
||||||
# "notification_enabled_in_channel": True, # if False, in-channel notifications are disabled, but DM notifications will still work
|
"notification_enabled_in_channel": True, # if False, in-channel notifications are disabled, but DM notifications will still work
|
||||||
# "notification_freq": 300, # number of seconds between checking transfers and posting notifications
|
"notification_freq": 300, # number of seconds between checking transfers and posting notifications
|
||||||
# "notification_DM_opt_out_user_ids": [], # DON'T MODIFY (used by bot to record users that have opted out of receiving DM notifications)
|
"notification_DM_opt_out_user_ids": [], # DON'T MODIFY (used by bot to record users that have opted out of receiving DM notifications)
|
||||||
# "notification_states":{ # determines the types of transfer state changes that are reported in notifications...
|
"notification_states":{ # determines the types of transfer state changes that are reported in notifications...
|
||||||
# "in_channel": # ...for in-channel notifications, (this is the full list of potential state changes)
|
"in_channel": # ...for in-channel notifications, (this is the full list of potential state changes)
|
||||||
# [
|
[
|
||||||
# "new",
|
"new",
|
||||||
# "removed",
|
"removed",
|
||||||
# "error",
|
"error",
|
||||||
# "downloaded",
|
"downloaded",
|
||||||
# "stalled",
|
"stalled",
|
||||||
# "unstalled",
|
"unstalled",
|
||||||
# "finished",
|
"finished",
|
||||||
# "stopped",
|
"stopped",
|
||||||
# "started"
|
"started"
|
||||||
# ],
|
],
|
||||||
# "notified_users": # ...DM notifications for users that opted in to DM notifications for transfer(s)
|
"notified_users": # ...DM notifications for users that opted in to DM notifications for transfer(s)
|
||||||
# [
|
[
|
||||||
# "removed",
|
"removed",
|
||||||
# "error",
|
"error",
|
||||||
# "downloaded",
|
"downloaded",
|
||||||
# "stalled",
|
"stalled",
|
||||||
# "unstalled",
|
"unstalled",
|
||||||
# "finished",
|
"finished",
|
||||||
# "stopped",
|
"stopped",
|
||||||
# "started"
|
"started"
|
||||||
# ],
|
],
|
||||||
# "added_user":# ...and DM notifications to users that added transfers
|
"added_user":# ...and DM notifications to users that added transfers
|
||||||
# [
|
[
|
||||||
# "removed",
|
"removed",
|
||||||
# "error",
|
"error",
|
||||||
# "downloaded",
|
"downloaded",
|
||||||
# "stalled",
|
"stalled",
|
||||||
# "unstalled",
|
"unstalled",
|
||||||
# "finished",
|
"finished",
|
||||||
# "stopped",
|
"stopped",
|
||||||
# "started"
|
"started"
|
||||||
# ]
|
]
|
||||||
# },
|
},
|
||||||
# "repeat_cancel_verbose": True, # if true, print message when auto-update is canceled for a message
|
"repeat_cancel_verbose": True, # if true, print message when auto-update is canceled for a message
|
||||||
# "repeat_freq": 2, # number of seconds between updating an auto-update message
|
"repeat_freq": 2, # number of seconds between updating an auto-update message
|
||||||
# "repeat_freq_DM_by_user_ids": {}, # use t/repeatfreq to set autoupdate frequency over DM on a per-user basis
|
"repeat_freq_DM_by_user_ids": {}, # use t/repeatfreq to set autoupdate frequency over DM on a per-user basis
|
||||||
# "repeat_timeout_DM_by_user_ids": {}, # same but for autoupdate timeout
|
"repeat_timeout_DM_by_user_ids": {}, # same but for autoupdate timeout
|
||||||
# "repeat_timeout": 3600, # number of seconds before an auto-update message times out
|
"repeat_timeout": 3600, # number of seconds before an auto-update message times out
|
||||||
# "repeat_timeout_verbose": True, # if true, print message when auto-update message times out and stops updating
|
"repeat_timeout_verbose": True, # if true, print message when auto-update message times out and stops updating
|
||||||
# "summary_num_top_ratio": 5 # number of top seed-ratio transfers to show at the bottom of the summary output
|
"summary_num_top_ratio": 5 # number of top seed-ratio transfers to show at the bottom of the summary output
|
||||||
# }
|
}
|
||||||
|
|
||||||
TSCLIENT_CONFIG = None
|
TSCLIENT_CONFIG = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user