2018-12-23 19:03:40 +00:00
|
|
|
import datetime
|
|
|
|
|
2019-02-26 12:21:33 +00:00
|
|
|
# Basic bot config, insert your token here, update description if you want
|
2018-12-23 13:13:39 +00:00
|
|
|
prefixes = [".", "!"]
|
|
|
|
token = "token-goes-here"
|
2019-01-07 08:49:19 +00:00
|
|
|
bot_description = "Robocop-NG, the moderation bot of ReSwitched."
|
2018-12-23 17:27:51 +00:00
|
|
|
|
2019-02-26 12:21:33 +00:00
|
|
|
# If you forked robocop-ng, put your repo here
|
2018-12-23 19:03:40 +00:00
|
|
|
source_url = "https://github.com/aveao/robocop-ng"
|
2019-01-15 01:48:23 +00:00
|
|
|
rules_url = "https://reswitched.team/discord/#rules"
|
2018-12-23 19:03:40 +00:00
|
|
|
|
2018-12-23 17:27:51 +00:00
|
|
|
# The bot description to be used in .robocop embed
|
|
|
|
embed_desc = "Robocop-NG is developed by [Ave](https://github.com/aveao)"\
|
|
|
|
" and [tomGER](https://github.com/tumGER), and is a rewrite "\
|
|
|
|
"of Robocop.\nRobocop is based on Kurisu by 916253 and ihaveamac."
|
|
|
|
|
2018-12-23 19:03:40 +00:00
|
|
|
|
2019-02-26 12:21:33 +00:00
|
|
|
# Minimum account age required to join the guild
|
|
|
|
# If user's account creation is shorter than the time delta given here
|
|
|
|
# then user will be kicked and informed
|
2018-12-23 19:03:40 +00:00
|
|
|
min_age = datetime.timedelta(minutes=15)
|
|
|
|
|
2019-02-26 12:21:33 +00:00
|
|
|
# The bot will only work in these guilds
|
2018-12-23 13:13:39 +00:00
|
|
|
guild_whitelist = [
|
|
|
|
269333940928512010 # ReSwitched discord
|
|
|
|
]
|
|
|
|
|
2018-12-23 19:59:42 +00:00
|
|
|
# Named roles to be used with .approve and .revoke
|
2019-02-26 12:21:33 +00:00
|
|
|
# Example: .approve User hacker
|
2018-12-23 19:59:42 +00:00
|
|
|
named_roles = {
|
2019-02-26 12:21:33 +00:00
|
|
|
"community": 420010997877833731,
|
|
|
|
"hacker": 364508795038072833,
|
|
|
|
"participant": 434353085926866946
|
2018-12-23 19:59:42 +00:00
|
|
|
}
|
|
|
|
|
2019-02-26 12:21:33 +00:00
|
|
|
# The bot manager and staff roles
|
|
|
|
# Bot manager can run eval, exit and other destructive commands
|
|
|
|
# Staff can run administrative commands
|
|
|
|
bot_manager_role_id = 466447265863696394 # Bot management role in ReSwitched
|
|
|
|
staff_role_ids = [364647829248933888, # Team role in ReSwitched
|
|
|
|
360138431524765707, # Mod role in ReSwitched
|
|
|
|
466447265863696394, # Bot management role in ReSwitched
|
|
|
|
360138163156549632, # Admin role in ReSwitched
|
|
|
|
287289529986187266] # Wizard role in ReSwitched
|
2018-12-23 15:44:16 +00:00
|
|
|
|
2019-02-26 12:21:33 +00:00
|
|
|
# Various log channels used to log bot and guild's activity
|
|
|
|
# You can use same channel for multiple log types
|
2019-02-26 13:11:06 +00:00
|
|
|
# Spylog channel logs suspicious messages or messages by members under watch
|
2019-03-02 23:40:43 +00:00
|
|
|
# Invites created with .invite will direct to the welcome channel.
|
2019-02-26 12:21:33 +00:00
|
|
|
log_channel = 290958160414375946 # server-logs in ReSwitched
|
|
|
|
botlog_channel = 529070282409771048 # bot-logs channel in ReSwitched
|
|
|
|
modlog_channel = 542114169244221452 # mod-logs channel in ReSwitched
|
2019-02-26 13:11:06 +00:00
|
|
|
spylog_channel = 548304839294189579 # spy channel in ReSwitched
|
2019-02-26 12:21:33 +00:00
|
|
|
welcome_channel = 326416669058662401 # newcomers channel in ReSwitched
|
2018-12-23 19:06:32 +00:00
|
|
|
|
2019-02-26 12:21:33 +00:00
|
|
|
# These channel entries are used to determine which roles will be given
|
|
|
|
# access when we unmute on them
|
|
|
|
general_channels = [420029476634886144,
|
|
|
|
414949821003202562,
|
|
|
|
383368936466546698,
|
|
|
|
343244421044633602,
|
|
|
|
491316901692178432,
|
|
|
|
539212260350885908] # Channels everyone can access
|
|
|
|
community_channels = [269333940928512010,
|
|
|
|
438839875970662400,
|
|
|
|
404722395845361668,
|
|
|
|
435687501068501002,
|
|
|
|
286612533757083648] # Channels requiring community role
|
2018-12-23 20:50:05 +00:00
|
|
|
|
2019-03-01 06:07:47 +00:00
|
|
|
# Controls which roles are blocked during lockdown
|
|
|
|
lockdown_configs = {
|
|
|
|
# Used as a default value for channels without a config
|
|
|
|
"default": {
|
|
|
|
"channels": general_channels,
|
|
|
|
"roles": [named_roles["participant"]]
|
|
|
|
},
|
|
|
|
"community": {
|
|
|
|
"channels": community_channels,
|
|
|
|
"roles": [named_roles["community"], named_roles["hacker"]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-26 12:21:33 +00:00
|
|
|
# Mute role is applied to users when they're muted
|
|
|
|
# As we no longer have mute role on ReSwitched, I set it to 0 here
|
|
|
|
mute_role = 0 # Mute role in ReSwitched
|
2019-01-29 10:51:43 +00:00
|
|
|
|
|
|
|
# Channels that will be cleaned every minute/hour
|
|
|
|
minutely_clean_channels = []
|
2019-02-26 12:21:33 +00:00
|
|
|
hourly_clean_channels = []
|
2019-01-29 10:51:43 +00:00
|
|
|
|
|
|
|
# Edited and deletes messages in these channels will be logged
|
|
|
|
spy_channels = general_channels
|
2019-03-01 06:07:47 +00:00
|
|
|
|
|
|
|
# Channels and roles where users can pin messages
|
|
|
|
allowed_pin_channels = []
|
|
|
|
allowed_pin_roles = []
|
2019-03-03 13:29:46 +00:00
|
|
|
|
|
|
|
# Used for the pinboard. Leave empty if you don't wish for a gist pinboard.
|
|
|
|
github_oauth_token = ""
|