dankmemer.py

Getting started

  • Installation
    • Requirements
    • Install with pip
    • Optional dependencies
    • Configure your token
      • Using a .env file
      • Discord bot settings
    • API access
  • Your first request
    • Finding an item
    • Where to go next
  • Examples
    • Standalone applications
    • Discord bots
    • Configuration and delivery
    • Use several resources together
    • Watch drops without a Discord bot

Guides

  • Working with resources
    • Items, names, and search
    • Caching and changing values
    • Fishing and related records
      • Creature availability windows
    • Drops, sales, gifts, and fishing events
    • Other current data
    • Publications
    • Pagination
    • Models and failures
  • Using discord.py
    • Choose an example
    • Functions and decorators
    • A Bot subclass
    • Command syncing
  • Using Cogs
    • Create your project
    • Commands and decorated listeners
    • Load and run the extension
    • Primary handlers and additional listeners
    • Explicit registration and removal
    • What subscription IDs identify
    • Reloading and load failures
    • Growing into several Cogs
  • Item autocomplete
    • Add an item command
    • Loading and caching
    • Search and cache controls
  • Slash command recipes
    • Items, autocomplete, and skins
    • Fishing catalogs and active events
    • Gifts, sales, lottery, merchant, and streaming
    • Add a command to a function-based bot
  • Discord notifications
    • A notification Cog
    • Run commands and notifications together
    • Notifications at startup
    • Sending failures and durable replay
    • Normal function decorators
  • Standalone recipes
    • Search, filter, and resolve related catalogs
    • Read publication history with bounds
    • Use several current resources
    • Watch changes without a bot
  • Events and polling
    • Watch for drops
    • Register and remove handlers
    • Which requests run
    • First reads and missed changes
    • Polling failures and retries
    • Callback names and arguments
    • Delivery choices
    • Bounds and monitoring
  • Client lifecycle and requests
    • Request limits, timeouts, and logging
  • Troubleshooting
    • No event arrived
    • A Discord command does not respond
    • No Discord notification was sent on startup
    • A lookup returned None
    • Values look out of date
    • An HTTP 404 or response error appeared
    • API access was rejected
    • A durable callback was repeated
    • A durable subscription stays paused
    • Shutdown and caller-owned resources

Persistent delivery

  • Persistent event delivery
    • Durable replay with SQLite
    • Persistent Discord notifications
    • PostgreSQL and existing pools
    • Handling a failed callback
    • Custom event stores
  • Shared workers
    • Independent or shared coordination
    • Shared registrations and diagnostics

API reference

  • Client
    • DankMemer
      • DankMemer.state
      • DankMemer.is_running
      • DankMemer.is_closed
      • DankMemer.active_polling_resources
      • DankMemer.paused_polling_resources
      • DankMemer.retry_polling()
      • DankMemer.count_pending_events()
      • DankMemer.paused_event_subscriptions
      • DankMemer.last_delivery_errors
      • DankMemer.last_coordination_error
      • DankMemer.sync_event_subscriptions()
      • DankMemer.retry_pending()
      • DankMemer.last_poll_errors
      • DankMemer.add_listener()
      • DankMemer.remove_listener()
      • DankMemer.event()
      • DankMemer.listen()
      • DankMemer.clear_cache()
      • DankMemer.start()
      • DankMemer.close()
    • Client state
      • ClientState
  • Resource methods
    • Reference catalogs
      • Items
      • Pets
      • Skins
      • Commands
    • Fishing
      • Fishing
      • Creatures
      • Locations
      • NPCs
      • Tools
      • Baits
      • Buckets
      • Skills
    • Current activity
      • GlobalBoosts
      • Lottery
      • MerchantTrades
      • Stream
      • Users
      • Drops
      • StoreSales
      • StoreDailyGifts
      • FishingEvents
    • Publications
      • Blogs
      • Changelogs
    • Pagination result
      • Page
  • Event reference
    • Active collections
      • on_global_boosts_changed()
      • on_drops_changed()
      • on_drop_started()
      • on_drop_updated()
      • on_drop_ended()
      • on_store_sales_changed()
      • on_store_sale_started()
      • on_store_sale_updated()
      • on_store_sale_ended()
      • on_fishing_events_changed()
      • on_fishing_event_started()
      • on_fishing_event_updated()
      • on_fishing_event_ended()
    • Daily gifts and streaming
      • on_store_daily_gifts_changed()
      • on_store_daily_gift()
      • on_store_daily_gift_updated()
      • on_stream_trending_game()
      • on_stream_trending_game_updated()
    • Results and publications
      • on_lottery_result()
      • on_lottery_result_updated()
      • on_merchant_rotation()
      • on_merchant_rotation_updated()
      • on_blog_published()
      • on_changelog_published()
  • Discord integration
    • Cog decorators and lifetime
      • event()
      • listen()
      • bind()
      • unbind()
    • Item autocomplete
      • ItemAutocomplete
  • Response models
    • Catalog records
      • Item
      • Pet
      • PetStats
      • Skin
      • Command
      • CommandOption
    • Fishing records
      • FishingCreature
      • FishingVariant
      • FishingTime
      • FishingLocation
      • FishingNPC
      • FishingTool
      • FishingToolRange
      • FishingBait
      • FishingBucket
      • FishingSkill
      • FishingSkillRequirements
      • FishingBadgeRequirement
      • FishingSkillRequirement
    • Live activity
      • GlobalBoost
      • Drop
      • StoreSale
      • StoreDailyGift
      • StoreGiftMetadata
      • FishingEvent
      • LotteryResult
      • MerchantRotation
      • MerchantTrade
      • Reward
    • Publication records
      • Blog
      • Changelog
    • JSON values
      • dankmemer.JSONValue
  • Configuration
    • Requests and application identity
      • ApplicationIdentity
      • RequestConfig
      • RetryConfig
    • Caching
      • CacheConfig
      • FishingCacheConfig
      • TTLCache
      • NoCache
    • Polling
      • PollingConfig
      • IntervalPolling
      • HourlyPolling
      • DailyPolling
      • DisabledPolling
      • PollingResource
    • Delivery and coordination
      • EventConfig
      • EventDelivery
      • CoordinationConfig
      • CoordinationMode
  • Event stores
    • SQLite
      • SqliteEventStore
    • PostgreSQL
      • PostgresEventStore
    • Custom stores
      • EventStore
      • CoordinatedEventStore
      • MemoryEventStore
    • Stored records
      • CallbackIntent
      • StoredCheckpoint
      • StoredCallback
      • CommitResult
      • PendingCallbackLimit
  • Exceptions
    • DankMemerError
    • ConfigurationError
    • LifecycleError
    • PaginationError
    • AmbiguousLookupError
    • DankMemerResponseError
    • EventRecoveryError
    • EventPayloadError
    • DankMemerConnectionError
    • DankMemerTimeoutError
    • DankMemerHTTPError
    • BadRequest
    • AuthenticationError
    • Forbidden
    • NotFound
    • RateLimited
    • ServerError

Releases

  • Migrating from rc3 to 1.0.0
    • Create the new client
    • Replace item queries and filter objects
    • Update model attributes and imports
    • Move fishing resources under fishing
    • Change caching and request configuration
    • Update error handling and logging
    • Add notifications when you need them
  • Release notes
    • 1.0.2
    • 1.0.1
    • 1.0.0
      • Resources and models
      • Events and delivery
      • Lifecycle and requests
      • Documentation
      • Limits to account for
dankmemer.py
  • Search


© Copyright .

Built with Sphinx using a theme provided by Read the Docs.