No project description provided
Project description
discord-ext-songbird
support
Only macos and linux.
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":
await message.guild.voice_client.stop()
client.run(os.getenv("TOKEN"))
Project details
Release history Release notifications | RSS feed
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.2.2.tar.gz
(20.5 kB
view hashes)
Built Distribution
Close
Hashes for dextbird-0.2.2-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21d0663db857c8cb8c64197167dc97e7d550fd04eb0db3341060165252ccf2ad |
|
MD5 | 418da27ab5a796a4a1f309f17f12a37f |
|
BLAKE2b-256 | 30c1bb49418d18d3c00f123fad4c2f0b131a61c6e9530cb86821ec015400d362 |