lua_xmpp_privacy_bot/config.lua
2024-06-24 17:03:12 -05:00

81 lines
2.4 KiB
Lua

-- Main privacy bot configuration file
config = {
-- Log verbosity, 1 will print debug 0 will not. TODO: give more control over log output
verbosity = 1,
-- Bot nickname
name = "Privacy Link Bot",
--[[
This will set the type of url to replace the service domain with. Can be:
- clearnet
- onion
- eepsite
- yggdrasil
- TODO: make it work and more types?
]]--
prefered_website_medium = "clearnet",
-- Choose random frontend instead of fallback one, will force clearnet
--random_frontend = true,
random_frontend = false,
-- Reply using XEP-0461 instead of just quoting
use_reply_xep = true,
-- List of desired frontends to extract from `services.json`
sites = {
-- Key is domain pattern
["reddit[.]com"] = {
-- Specify which frontents should be used
frontends = { "libreddit", "redlib" }
-- This can be used to force and instance on a per site basis, overrides everything else
-- force_instance = { "example.com" }
},
["instagram[.]com"] = {
frontends = { "proxigram" }
},
["www[.]instagram[.]com"] = {
frontends = { "proxigram" }
},
--[[["github[.]com"] = {
frontends = { "gothub" }
},]]--
["google[.]com"] = {
frontends = { "searxng" }
},
["youtube[.]com"] = {
frontends = { "piped", "invidious"}
},
["www[.]youtube[.]com"] = {
frontends = { "piped", "invidious"}
},
["youtu[.]be"] = {
frontends = { "piped", "invidious", }
},
["twitter[.]com"] = {
frontends = { "nitter", }
},
["x[.]com"] = {
frontends = { "nitter", }
},
["wikipedia[.]org"] = {
frontends = { "wikiless", }
},
["medium[.]com"] = {
frontends = { "scribe", }
},
["imgur[.]com"] = {
frontends = { "rimgo", }
},
["translate[.]google[.]com"] = {
frontends = { "lingva", }
},
["tiktok[.]com"] = {
frontends = { "proxitok", }
},
["fandom[.]com"] = {
frontends = { "breezewiki", }
},
-- TODO: the rest
}
}
-- Load config file with private information
dofile("config_private.lua")