Coder Social home page Coder Social logo

velum-sail's Introduction

Velum-Sail

Velum-Sail is a command handler for Velum, which in turn is a wrapper for the Eludris API. It expands on velum by adding shell-like text-based commands, a command handler that can hook into a velum.GatewayClient, and extensions to keep your files organised (coming soonTM).

Please keep in mind that this library is still in its infancy, and some much needed features such as documentation are coming in the nearTM future.

Installing

Python 3.10 or higher is required.

To install the library, currently the only option is to install it off of this very github page.

python3 -m pip install -U git+https://github.com/eludris-community/velum-sail

Example

import asyncio
import typing

import velum
import sail


bot = velum.GatewayClient()
manager = sail.CommandManager.with_prefix("!")
manager.bind_to_app(bot)


@manager.command()
async def my_command(ctx: sail.Context, x: typing.List[bool]) -> None:
    await bot.rest.send_message(f"{ctx.author} sent in {len(x)} bools, {sum(x)} of which were True!")


asyncio.run(bot.start())

For more in-depth examples, please see the examples directory.

velum-sail's People

Contributors

higherorderlogic avatar ooliver1 avatar sharp-eyes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.