update word lists on discover example

This commit is contained in:
Believethehype
2024-05-23 10:29:44 +02:00
parent 925c55baf6
commit 128a5b1de6

View File

@@ -18,6 +18,8 @@ from nostr_dvm.utils.zap_utils import check_and_set_ln_bits_keys
def playground(): def playground():
# Popular NOSTR.band # Popular NOSTR.band
admin_config_trending_nostr_band = AdminConfig() admin_config_trending_nostr_band = AdminConfig()
admin_config_trending_nostr_band.REBROADCAST_NIP89 = True
admin_config_trending_nostr_band.UPDATE_PROFILE = False
custom_processing_msg = "Looking for trending notes on nostr.band.." custom_processing_msg = "Looking for trending notes on nostr.band.."
trending_nb = discovery_trending_notes_nostrband.build_example("Trending Notes on nostr.band", trending_nb = discovery_trending_notes_nostrband.build_example("Trending Notes on nostr.band",
"trending_notes_nostrband", "trending_notes_nostrband",
@@ -27,7 +29,7 @@ def playground():
# Popular Garden&Plants # Popular Garden&Plants
admin_config_plants = AdminConfig() admin_config_plants = AdminConfig()
admin_config_plants.REBROADCAST_NIP89 = False admin_config_plants.REBROADCAST_NIP89 = True
admin_config_plants.UPDATE_PROFILE = False admin_config_plants.UPDATE_PROFILE = False
# admin_config_plants.DELETE_NIP89 = True # admin_config_plants.DELETE_NIP89 = True
# admin_config_plants.PRIVKEY = "" # admin_config_plants.PRIVKEY = ""
@@ -40,7 +42,7 @@ def playground():
"#flowerstr", "#bloomscrolling", "#treestr", "#plantstr", "touchgrass", ], "#flowerstr", "#bloomscrolling", "#treestr", "#plantstr", "touchgrass", ],
"avoid_list": ["porn", "smoke", "nsfw", "bitcoin", "bolt12", "bolt11", "github", "currency", "utxo", "avoid_list": ["porn", "smoke", "nsfw", "bitcoin", "bolt12", "bolt11", "github", "currency", "utxo",
"encryption", "government", "airpod", "ipad", "iphone", "android", "warren", "encryption", "government", "airpod", "ipad", "iphone", "android", "warren",
"moderna", "pfizer", "moderna", "pfizer", "corona", "socialism",
"murder", "tax", "engagement", "hodlers", "hodl", "gdp", "global markets", "crypto", "wherostr", "murder", "tax", "engagement", "hodlers", "hodl", "gdp", "global markets", "crypto", "wherostr",
"presidency", "dollar", "asset", "microsoft", "amazon", "billionaire", "ceo", "industry", "presidency", "dollar", "asset", "microsoft", "amazon", "billionaire", "ceo", "industry",
"white house", "blocks", "streaming", "summary", "wealth", "beef", "cunt", "nigger", "business", "white house", "blocks", "streaming", "summary", "wealth", "beef", "cunt", "nigger", "business",
@@ -69,23 +71,25 @@ def playground():
# Popular Animals (Fluffy frens) # Popular Animals (Fluffy frens)
admin_config_animals = AdminConfig() admin_config_animals = AdminConfig()
admin_config_animals.REBROADCAST_NIP89 = False admin_config_animals.REBROADCAST_NIP89 = True
admin_config_animals.UPDATE_PROFILE = False admin_config_animals.UPDATE_PROFILE = False
options_animal = { options_animal = {
"search_list": ["catstr", "pawstr", "dogstr", " cat ", " cats ", "🐾", "🐈", "🐕", " dog ", " dogs ", " fluffy ", "search_list": ["catstr", "pawstr", "dogstr", "pugstr", " cat ", " cats ", "doggo", " deer ", " dog ", " dogs ", " fluffy ",
"animal", "animal",
" duck", " lion ", " lions ", " fox ", " foxes ", " koala ", " koalas ", "capybara", "squirrel", " duck", " lion ", " lions ", " fox ", " foxes ", " koala ", " koalas ", "capybara", "squirrel",
"monkey", "panda", "alpaca", " otter"], " monkey", "panda", "alpaca", " otter"],
"avoid_list": ["porn", "smoke", "nsfw", "bitcoin", "bolt12", "bolt11", "github", "currency", "utxo", "avoid_list": ["porn", "smoke", "nsfw", "bitcoin", "bolt12", "bolt11", "github", "currency", "utxo",
"encryption", "government", "airpod", "ipad", "iphone", "android", "warren", "encryption", "government", "airpod", "ipad", "iphone", "android", "warren",
"moderna", "pfizer", "moderna", "pfizer", " meat ", "pc mouse", "shotgun", "vagina", "rune", "testicle", "victim",
"murder", "tax", "engagement", "hodlers", "hodl", "gdp", "global markets", "crypto", "wherostr", "sexualize", "murder", "tax", "engagement", "hodlers", "hodl", "gdp", "global markets", "crypto",
"presidency", "dollar", "asset", "microsoft", "amazon", "billionaire", "ceo", "industry", "presidency", "dollar", "asset", "microsoft", "amazon", "billionaire", "ceo", "industry",
"white house", "blocks", "streaming", "summary", "wealth", "beef", "cunt", "nigger", "business", "white house", "hot dog", "spirit animal", "migrant", "blocks", "streaming", "summary",
"wealth", "beef", "cunt", "nigger", "business", "tore off", "chart",
"retail", "bakery", "synth", "slaughterhouse", "hamas", "dog days", "ww3", "socialmedia", "retail", "bakery", "synth", "slaughterhouse", "hamas", "dog days", "ww3", "socialmedia",
"nintendo", "signature", "deepfake", "congressman", "fried chicken", "cypherpunk", "nintendo", "signature", "deepfake", "congressman", "fried chicken", "cypherpunk", "social media",
"chef", "cooked", "foodstr", "minister", "dissentwatch", "inkblot", "covid", "robot", "pandemic", "chef", "cooked", "foodstr", "minister", "dissentwatch", "inkblot", "covid", "robot", "pandemic",
" dies ", "bethesda", " defi ", " minister ", "nostr-hotter-site", " ai ", "palestine", "animalistic", " dies ", "bethesda", " defi ", " minister ", "nostr-hotter-site", " ai ", "palestine",
"animalistic", "wherostr",
" hit by a", "https://boards.4chan", "https://techcrunch.com", "https://screenrant.com"], " hit by a", "https://boards.4chan", "https://techcrunch.com", "https://screenrant.com"],
"must_list": ["http"], "must_list": ["http"],
@@ -110,9 +114,9 @@ def playground():
# Popular Followers # Popular Followers
admin_config_followers = AdminConfig() admin_config_followers = AdminConfig()
admin_config_followers.REBROADCAST_NIP89 = False admin_config_followers.REBROADCAST_NIP89 = True
admin_config_followers.UPDATE_PROFILE = False admin_config_followers.UPDATE_PROFILE = False
custom_processing_msg = ["Looking for popular notes from npubs you follow..", custom_processing_msg = ["Processing popular notes from npubs you follow..",
"Let's see what npubs you follow have been up to..", "Let's see what npubs you follow have been up to..",
"Processing a personalized feed, just for you.."] "Processing a personalized feed, just for you.."]
update_db = False update_db = False
@@ -123,8 +127,8 @@ def playground():
cost = 0 cost = 0
discovery_followers = content_discovery_currently_popular_followers.build_example( discovery_followers = content_discovery_currently_popular_followers.build_example(
"Currently Popular Notes from npubs you follow", "Popular from npubs you follow",
"discovery_content_followers", "discovery_content_followers",
admin_config=admin_config_followers, admin_config=admin_config_followers,
options=options_followers_popular, options=options_followers_popular,
cost=cost, cost=cost,
@@ -135,10 +139,10 @@ def playground():
# Popular Global # Popular Global
admin_config_global_popular = AdminConfig() admin_config_global_popular = AdminConfig()
admin_config_global_popular.REBROADCAST_NIP89 = False admin_config_global_popular.REBROADCAST_NIP89 = True
admin_config_global_popular.UPDATE_PROFILE = False admin_config_global_popular.UPDATE_PROFILE = False
custom_processing_msg = ["Looking for popular notes on the Nostr..", "Let's see what's trending on Nostr..", custom_processing_msg = ["Looking for popular notes on the Nostr..", "Let's see what's trending on Nostr..",
"Finding the best notes for you.."] "Finding the best notes on the Nostr.."]
update_db = False update_db = False
options_global_popular = { options_global_popular = {
@@ -169,8 +173,10 @@ def playground():
subscription_config.LNBITS_URL = os.getenv("LNBITS_HOST") subscription_config.LNBITS_URL = os.getenv("LNBITS_HOST")
sub_admin_config = AdminConfig() sub_admin_config = AdminConfig()
# sub_admin_config.USERNPUBS = ["7782f93c5762538e1f7ccc5af83cd8018a528b9cd965048386ca1b75335f24c6"] #Add npubs of services that can contact the subscription handler # sub_admin_config.USERNPUBS = ["7782f93c5762538e1f7ccc5af83cd8018a528b9cd965048386ca1b75335f24c6"] #Add npubs of services that can contact the subscription handler
x = threading.Thread(target=Subscription, args=(Subscription(subscription_config, sub_admin_config),))
x.start() #currently there is none, but add this once subscriptions are live.
#x = threading.Thread(target=Subscription, args=(Subscription(subscription_config, sub_admin_config),))
#x.start()
# keep_alive() # keep_alive()