adding trending notes, bot: dont show replies by other dvms than the contacted

This commit is contained in:
Believethehype
2023-12-10 20:16:01 +01:00
parent 732e5955ae
commit 5359f69bb1
3 changed files with 185 additions and 28 deletions

View File

@@ -10,7 +10,7 @@ import tasks.textextraction_pdf as textextraction_pdf
import tasks.textextraction_google as textextraction_google
import tasks.translation_google as translation_google
import tasks.translation_libretranslate as translation_libretranslate
from tasks import imagegeneration_replicate_sdxl, videogeneration_replicate_svd
from tasks import imagegeneration_replicate_sdxl, videogeneration_replicate_svd, trending_notes_nostrband
from utils.admin_utils import AdminConfig
from utils.backend_utils import keep_alive
@@ -132,6 +132,10 @@ def playground():
bot_config.SUPPORTED_DVMS.append(discover_inactive)
discover_inactive.run()
trending = trending_notes_nostrband.build_example("Trending Notes on nostr.band", "trending_notes_nostrband", admin_config)
bot_config.SUPPORTED_DVMS.append(trending)
trending.run()
# Run the bot
Bot(bot_config)
# Keep the main function alive for libraries that require it, like openai