2024-04-29 01:29:48 +01:00
|
|
|
# Example config file for Jimmy v2.
|
|
|
|
# This file is populated mostly with the default values set in src/conf.py.
|
2024-01-02 22:29:25 +00:00
|
|
|
[jimmy]
|
2024-01-06 20:53:12 +00:00
|
|
|
token = "token" # the bot token
|
2024-04-29 01:29:48 +01:00
|
|
|
debug_guilds = [994710566612500550] # server IDs to create slash commands in. Omit for all guilds.
|
|
|
|
disabled_commands = ["i do not exist"] # A list of full command names to disable (e.g. "<group name> <subcommand", "command_name").
|
2024-05-01 01:18:06 +01:00
|
|
|
disable_mode = "disable" # Can be "disable" or "remove". "remove" removes the command entirely until the next reboot.
|
2024-04-29 01:29:48 +01:00
|
|
|
modules = ["cogs.*"] # a list of modules to load. Glob-based patterns can be used. Defaults to all cogs if ommitted
|
2024-05-01 01:18:06 +01:00
|
|
|
delay = { 421698654189912064 = [0.1, 2.5] } # Adds an artificial delay before running commands. Useful for a soft-ban.
|
|
|
|
# Values must range from 0.01 (minimum) and 2.8 (maximum).
|
|
|
|
|
2024-01-02 22:59:47 +00:00
|
|
|
|
|
|
|
[logging]
|
2024-01-06 21:43:52 +00:00
|
|
|
level = "DEBUG" # can be one of DEBUG, INFO, WARNING, ERROR, CRITICAL. Defaults to INFO
|
|
|
|
file = "jimmy.log" # if omitted, defaults to jimmy.log. Always pretty prints to stdout.
|
|
|
|
mode = "a" # can be over(w)rite or (a)ppend. Defaults to append.
|
|
|
|
suppress = [
|
|
|
|
"discord.client",
|
|
|
|
"discord.gateway",
|
|
|
|
"discord.http",
|
|
|
|
"selenium.webdriver.remote.remote_connection" # make sure to include this one to prevent /screenshot from putting
|
|
|
|
# literal images (in base64) in your logs.
|
|
|
|
]
|
|
|
|
# All the loggers specified here will have their log level set to WARNING.
|
2024-01-06 20:53:12 +00:00
|
|
|
|
2024-04-29 01:29:48 +01:00
|
|
|
|
|
|
|
# Ollama server setups. Omit all `ollama.*` to disable all AI-related features.
|
2024-01-06 20:53:12 +00:00
|
|
|
[ollama.internal]
|
|
|
|
# name is "internal"
|
|
|
|
owner = 421698654189912064 # who owns the server
|
|
|
|
allowed_models = [
|
|
|
|
"*", # for all models
|
|
|
|
"llama2-uncensored:latest" # for a specific tag.
|
|
|
|
# Note that every model has a tag called "latest" which is the most recent version.
|
|
|
|
]
|
|
|
|
base_url = "http://ollama:11434/api" # this is the default if you're running via docker compose
|
|
|
|
|
|
|
|
[ollama.external]
|
|
|
|
owner = 421698654189912064
|
|
|
|
allowed_models = ["*"]
|
|
|
|
base_url = "http://example.com/api"
|
2024-04-29 01:29:48 +01:00
|
|
|
icon_url = "http://example.com/favicon.png" # An icon to use in the footer of embeds
|
|
|
|
|
|
|
|
[screenshot]
|
|
|
|
# Configuration for the /screenshot command.
|
|
|
|
proxy = "http://example.test:8888" # the HTTP/S/OCKS proxy to use
|
|
|
|
|
|
|
|
|
|
|
|
[quote_a]
|
|
|
|
# configuration for the /quota command.
|
|
|
|
# channel = 123456
|
|
|
|
# ^ The channel ID. If omitted, will default to a channel called "quotes".
|
|
|
|
|
|
|
|
[quote_a.names]
|
|
|
|
foo = "bar"
|
|
|
|
# A key = "Value" mapping of names to true names. For example:
|
|
|
|
# foo = "bar"
|
|
|
|
# foobar = "bar"
|
|
|
|
# ipv6 = "security"
|
|
|
|
|
|
|
|
[redis]
|
|
|
|
# Redis configuration. If you are using the docker-compose setup, then you do not need to configure this.
|
|
|
|
host = "redis" # the host[name or IP] of the redis server
|
|
|
|
port = 6379 # self-explanatory
|
2024-05-05 02:27:41 +01:00
|
|
|
# the no_ping option was removed after g+808D621F. All options in this section are now passed directly to redis.Redis().
|
|
|
|
# See the python redis docs for more info.
|
2024-04-29 01:29:48 +01:00
|
|
|
|
|
|
|
[responder]
|
|
|
|
# Configures the auto-responder.
|
|
|
|
overpowered_by = [421698654189912064] # if these users are present in the server's member cache, auto-responses will be disabled in that server.
|
|
|
|
overrule_offline_superiors = true # if all the overpower users are missing or offline, ignore overpower rules
|
|
|
|
downloads_pdfs = true # If False, PDF links will not be downloaded and uploaded to discord.
|
2024-01-06 20:53:12 +00:00
|
|
|
|
2024-04-29 01:29:48 +01:00
|
|
|
[responder.transcoding]
|
|
|
|
# Configured specifically automated transcoding.
|
|
|
|
enabled = true # whether any transcoding at all should be done. If false, no links or attachments are ever probed.
|
|
|
|
hevc = true # Enables probing video links and converting any HEVC videos to H264+opus.
|
|
|
|
on_demand = true # Enables transcoding any video to h264+opus when 📼 (VHS) is reacted.
|
2024-05-01 00:46:03 +01:00
|
|
|
|
|
|
|
[network]
|
|
|
|
ip_servers = [
|
2024-05-01 01:05:09 +01:00
|
|
|
"ip.i-am.nexus",
|
|
|
|
"ip.shronk.tech"
|
2024-05-01 00:46:03 +01:00
|
|
|
] # A list of SHRoNK IP servers. See: https://github.com/SHRoNK-Corporation/shronk-ip-spec/blob/main/RFS0001.md
|
2024-05-05 02:30:07 +01:00
|
|
|
|
|
|
|
[starboard]
|
|
|
|
enabled = false # disables starboard entirely
|
|
|
|
emoji = "⭐" # the emoji to use. Defaults to the plain star.
|
|
|
|
whitelist = [994710566612500550] # An array of server IDs to whitelist. Omitted means all servers.
|
2024-05-05 02:57:53 +01:00
|
|
|
channel_name = "starboard" # the channel name to search for. Globally, not per-server.
|