Giter VIP home page Giter VIP logo

brstmgram's Introduction

BRSTMgram

A Telegram bot for bringing SCM experience to your chat. Example instance: @brstm_bot
Based on the SwiftyCM library
Using OpenRevolution to do file conversion to WAV.

Using

Authentication

The token is read from the TG_TOKEN environment variable.

Cache

The application uses two environment variables to specify cache locations. Useful in case of running in a container to combine with volumes configuration, or for running on an read-only state system. The files get automatically deleted after being processed.

  • BRSTM_ARTIFACT_LOCATION - BRSTM file storage
  • WAV_DOWNLOADS_LOCATION - WAV file storage

Docker

The pre-built container image is available:

$ podman pull ghcr.io/freeapp2014/brstmgram:latest

Running:

$ podman run -dit -e TG_TOKEN=<your-bot-token> --name brstmgram ghcr.io/freeapp2014/brstmgram:latest 

Alternatively, the image can be built using the included Dockerfile.

Manual build

  • BRSTMgram: Swift 5.3 or later required. OpenRevolution 2.x or later required. cURL development headers needed for the network features to function.
    The revolution main converter is expected to be found as brstm in $PATH, for example in /usr/bin. Clone this repository, then run swift package resolve to download all dependencies, swift build to build and run with swift run.
  • OpenRevolution: refer to GitHub

brstmgram's People

Contributors

freeapp2014 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

brstmgram's Issues

Game song filter in /f command

The song name filter in the /f command works by sending a search query to the SCM server and filtering the results by game ID. This is an issue because the search query returns a limited number of results, which means that some songs from the game could not get into it and the bot's result message would not show all songs that match the user's search query. The bot should filter it's full game song list for matching songs locally.

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.