Skip to main content

Discord extensions voice library made with rust

Project description

discord-ext-songbird

Test songbird

Songbird is voice client which made by Rust.

This library is wrapping songbird for discord.py.

Document

Support

Only macos and linux.

If you are using linux, we are only support this python version. 3.8.10+, 3.9.5+, 3.10.0+

Why I am not supporting windows?

It's too hard for me.

Install

pip install "dextbird @ git+https://github.com/tuna2134/discord-ext-songbird.git"

Sample code

from dextbird import VoiceClient
import discord

import os
import logging


client = discord.Client(intents=discord.Intents.all())
logging.getLogger().setLevel(logging.INFO)


@client.event
async def on_message(message):
    if message.content == "!join":
        vc = await message.author.voice.channel.connect(cls=VoiceClient)
    elif message.content == "!play":
        # Play lycoris recoil
        track = await message.guild.voice_client.ytdl("https://youtu.be/Vi-1402wYtI?si=x_rhftnpQ0fKcfEE")
        track.play()
    elif message.content == "!leave":
        await message.guild.voice_client.disconnect()
    elif message.content == "!stop":
        message.guild.voice_client.stop()


client.run(os.getenv("TOKEN"))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dextbird-0.4.9.tar.gz (29.5 kB view hashes)

Uploaded Source

Built Distributions

dextbird-0.4.9-cp312-cp312-musllinux_1_2_x86_64.whl (6.8 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

dextbird-0.4.9-cp312-cp312-manylinux_2_34_x86_64.whl (6.7 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.34+ x86-64

dextbird-0.4.9-cp311-cp311-musllinux_1_2_x86_64.whl (6.8 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

dextbird-0.4.9-cp311-cp311-manylinux_2_34_x86_64.whl (6.7 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

dextbird-0.4.9-cp310-cp310-musllinux_1_2_x86_64.whl (6.8 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

dextbird-0.4.9-cp310-cp310-manylinux_2_34_x86_64.whl (6.7 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

dextbird-0.4.9-cp39-cp39-musllinux_1_2_x86_64.whl (6.8 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

dextbird-0.4.9-cp39-cp39-manylinux_2_34_x86_64.whl (6.7 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.34+ x86-64

dextbird-0.4.9-cp38-cp38-musllinux_1_2_x86_64.whl (6.8 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ x86-64

dextbird-0.4.9-cp38-cp38-manylinux_2_34_x86_64.whl (6.7 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.34+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page