mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-03-17 21:31:52 +01:00
Update discovery.py
This commit is contained in:
parent
f1a86e9641
commit
07529d1622
@ -65,6 +65,10 @@ def build_db_scheduler(name, identifier, admin_config, options, image, descripti
|
||||
dvm_config.RELAY_LIST = RELAY_LIST
|
||||
dvm_config.DATABASE = database
|
||||
dvm_config.WOT_FILTERING = True
|
||||
dvm_config.WOT_BASED_ON_NPUBS = ["99bb5591c9116600f845107d31f9b59e2f7c7e09a1ff802e84f1d43da557ca64",
|
||||
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
|
||||
"3f770d65d3a764a9c5cb503ae123e62ec7598ad035d836e2a810f3877a745b24"
|
||||
]
|
||||
|
||||
# Activate these to use a subscription based model instead
|
||||
# dvm_config.SUBSCRIPTION_REQUIRED = True
|
||||
@ -157,7 +161,7 @@ def build_example_nostrband(name, identifier, admin_config, image, about, custom
|
||||
"name": name,
|
||||
"picture": image,
|
||||
"about": about,
|
||||
"amount": "Free",
|
||||
"amount": "free",
|
||||
"supportsEncryption": True,
|
||||
"acceptsNutZaps": dvm_config.ENABLE_NUTZAP,
|
||||
"nip90Params": {}
|
||||
@ -589,7 +593,7 @@ def build_example_oneperfollow(name, identifier, admin_config, options, image, c
|
||||
"lud16": dvm_config.LN_ADDRESS,
|
||||
"supportsEncryption": True,
|
||||
"acceptsNutZaps": dvm_config.ENABLE_NUTZAP,
|
||||
"personalized": False,
|
||||
"personalized": True,
|
||||
"amount": create_amount_tag(cost),
|
||||
"nip90Params": {
|
||||
"max_results": {
|
||||
@ -835,10 +839,10 @@ def playground():
|
||||
admin_config_mining.REBROADCAST_NIP89 = rebroadcast_NIP89
|
||||
admin_config_mining.REBROADCAST_NIP65_RELAY_LIST = rebroadcast_NIP65_Relay_List
|
||||
admin_config_mining.UPDATE_PROFILE = update_profile
|
||||
# admin_config_plants.DELETE_NIP89 = True
|
||||
# admin_config_plants.PRIVKEY = ""
|
||||
# admin_config_plants.EVENTID = "ff28be59708ee597c7010fd43a7e649e1ab51da491266ca82a84177e0007e4d6"
|
||||
# admin_config_plants.POW = True
|
||||
#admin_config_mining.DELETE_NIP89 = True
|
||||
#admin_config_mining.PRIVKEY = ""
|
||||
#admin_config_mining.EVENTID = "26a60420379197142f5d7e68fcaac1825b14228c803e2dd80579fe2da581942f"
|
||||
#admin_config_mining.POW = True
|
||||
options_mining = {
|
||||
"search_list": ["bitaxe", "homeminer", " S9 ", "homemining"],
|
||||
"avoid_list": ["nsfw"],
|
||||
@ -863,6 +867,42 @@ def playground():
|
||||
database=DATABASE)
|
||||
discovery_mining.run()
|
||||
|
||||
# Popular Garden&Plants
|
||||
admin_config_gm = AdminConfig()
|
||||
admin_config_gm.REBROADCAST_NIP89 = rebroadcast_NIP89
|
||||
admin_config_gm.REBROADCAST_NIP65_RELAY_LIST = rebroadcast_NIP65_Relay_List
|
||||
admin_config_gm.UPDATE_PROFILE = update_profile
|
||||
# admin_config_gm.DELETE_NIP89 = True
|
||||
# admin_config_gm.PRIVKEY = ""
|
||||
# admin_config_gm.EVENTID = "ff28be59708ee597c7010fd43a7e649e1ab51da491266ca82a84177e0007e4d6"
|
||||
# admin_config_gm.POW = True
|
||||
options_gm = {
|
||||
"search_list": [" gm ", "gm.", " gfm ", " gfm.", "gm\n", "gm \n", "gfm\n", "gm!", "gm http", "gm\nhttp"],
|
||||
"avoid_list": ["porn"],
|
||||
"db_name": "db/nostr_recent_notes.db",
|
||||
"db_since": 16 * 60 * 60, # 12h since gmt
|
||||
"personalized": False,
|
||||
"logger": False}
|
||||
|
||||
image = "https://image.nostr.build/a27e576de988e125fa5e7b8ed9dd01b70c360967e8d73532dfdd823c76dfdd3e.jpg"
|
||||
description = "I show today's best GM notes."
|
||||
custom_processing_msg = ["GM fren."]
|
||||
update_db = False
|
||||
cost = 0
|
||||
discovery_gm = build_example_topic("Popular GMs", "discovery_content_gm",
|
||||
admin_config_gm, options_gm,
|
||||
image=image,
|
||||
description=description,
|
||||
update_rate=global_update_rate,
|
||||
cost=cost,
|
||||
processing_msg=custom_processing_msg,
|
||||
update_db=update_db,
|
||||
database=DATABASE)
|
||||
discovery_gm.run()
|
||||
|
||||
|
||||
|
||||
|
||||
# Popular Animals (Fluffy frens)
|
||||
admin_config_animals = AdminConfig()
|
||||
admin_config_animals.REBROADCAST_NIP89 = rebroadcast_NIP89
|
||||
|
Loading…
x
Reference in New Issue
Block a user