only allow certain servers to prevent public usage

master
lza_menace 2 years ago
parent 64bf046101
commit e408b2663a

@ -44,6 +44,10 @@ async def on_message(message):
if message.author == bot.user:
return
if str(message.guild) not in settings.discord_servers:
print(f'Unapproved guild: {message.guild}')
return
msg = message.content
if not msg.startswith(settings.discord_command_prefix):
return

@ -21,6 +21,7 @@ enable_search_route = bool_env(os.environ.get("ENABLE_SEARCH_ROUTE", False))
discord_token = "xxxxxxx" # https://discord.com/developers/applications
discord_admins = ["lza.art101.eth#7207"]
discord_command_prefix = "!"
discord_servers = ["Art101 • Patrn • NFT Art"]
icecast2_hostname = "localhost"
icecast2_max_clients = 32

Loading…
Cancel
Save