GithubHelp home page GithubHelp logo

dailyscry's Introduction

DailyScry

This bot allows you to post a random image from Scryfall to an array of services e.g Mastodon, Telegram or locally.

Posts of this bot can be found at

Installation

cargo

Run cargo install daily_scry

binary release

You can download the latest release form the release page.

DIY

  1. git clone https://github.com/DerMolly/DailyScry.git
  2. cargo build --release

Usage

Post random scryfall image to mastodon, telegram or stdout


Usage: daily_scry [OPTIONS]

Options:
  -v, --verbose...  Increase logging verbosity
  -q, --quiet...    Decrease logging verbosity
      --mastodon    Post to mastodon
      --telegram    Post to telegram
      --dry-run     Run the command without posting anything
  -h, --help        Print help
  -V, --version     Print version

Version: 1.0.0

Author: Philip Molares <[email protected]>

Configuration

environment variable description
DAILY_SCRY_MASTODON_URL The url of the mastodon instance, where your account is hosted.
DAILY_SCRY_MASTODON_ACCESS_TOKEN The access token for your application.
DAILY_SCRY_TELEGRAM_TOKEN The telegram bot token you can get from @BotFather
DAILY_SCRY_TELEGRAM_CHAT_ID The chat id where the bot should post its message. This can be determinded with @username_to_id_bot
DAILY_SCRY_IGNORED_ORACLE_IDS List of oracle_ids that should be ignored and not be randomly selected. Items should be seperated by ,

dailyscry's People

Contributors

dermolly avatar renovate[bot] avatar

Watchers

 avatar

dailyscry's Issues

Split DAILY_SCRY_IGNORED_ORACLE_IDS up

There should be two variables now:

  1. DAILY_SCRY_BANNED_ORACLE_IDS those won't be shown at all
  2. DAILY_SCRY_DISCOURAGED_ORACLE_IDS If we hit one of those cards we only continue in 10% of cases

This let's users define hard nopes, and soft nopes (like basic lands)

Add non-random card selection

It would be nice to specify the cards by other means.

This could mean using their muliverse_id or scryfall_id or (more for the cli tool than the posting part) search for a card…

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • fix(deps): update rust crate clap-verbosity-flag to v2.2.1
  • fix(deps): update rust crate image to v0.25.2
  • fix(deps): update rust crate scryfall to 0.17.0
  • chore(deps): update fsfe/reuse docker tag to v4
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

cargo
Cargo.toml
  • megalodon 0.13.4
  • scryfall 0.16.1
  • string-builder 0.2.0
  • url 2.5.0
  • snafu 0.8.2
  • futures 0.3.30
  • clap-verbosity-flag 2.2.0
  • pretty_env_logger 0.5.0
  • log 0.4.21
  • dotenv 0.15.0
  • image 0.25.1
  • uuid 1.8.0
  • clap 4.5.4
  • reqwest 0.12
  • teloxide-core 0.9.1
  • tokio 1.37.0
  • temp-env 0.3.6
github-actions
.github/actions/setup-rust/action.yml
.github/workflows/build.yml
  • actions/checkout v4.1.6@a5ac7e51b41094c92402da3b24376905380afc29
.github/workflows/daily_scry.yml
  • robinraju/release-downloader v1.10
.github/workflows/lint.yml
  • actions/checkout v4.1.6@a5ac7e51b41094c92402da3b24376905380afc29
.github/workflows/release.yml
  • actions/checkout v4.1.6@a5ac7e51b41094c92402da3b24376905380afc29
  • marvinpinto/action-automatic-releases v1.2.1
.github/workflows/reuse.yml
  • actions/checkout v4.1.6@a5ac7e51b41094c92402da3b24376905380afc29
  • fsfe/reuse 3.0.2@sha256:985ca841881779fa56560cd8478821270e78e4f23e21d7d741370a4abba3c654
.github/workflows/test.yml
  • actions/checkout v4.1.6@a5ac7e51b41094c92402da3b24376905380afc29

  • Check this box to trigger a request for Renovate to run again on this repository

Handle too long card texts for mastodon

Card texts over 500 characters are a problem for mastodon (or at least botsin.space). We should handle that accordingly. Check the hashtags and how much space they take up…

Prevent basic lands

Basic lands are kinda boring, so we probably want to remove them from the random rotation…

Adhere to content_warning flag

Some cards have a content_warning flag and they should not be displayed. Maybe it would be okay to add a flag in dailyscry that allows them anyway, but the default should be no content_warning cards…

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.