A 3rd party library to use discord's VC Party Games feature with disnake
Project description
disnake-together
Table of Contents
About
A 3rd party library for Discord's BETA feature of VC Party Games
Prerequisites
You should have disnake installed in order to use this package
To install disnake, run the following code in a terminal
pip install disnake
Examples
Generate a link for YouTube Together
from disnake.ext import commands
from disnake_together import DisnakeTogether
client = commands.Bot(command_prefix = "*")
togetherControl = DisnakeTogether(client)
@client.command()
async def youtubeTogether(self, ctx):
togetherControl = DiscordTogether(self.client)
# To check if the user is in a vc
try:
vc = ctx.author.voice.channel.id
except:
await ctx.channel.send("You are not in a VC, please join one and then use the command")
# Get invite link
link = await togetherControl.create_link(vc, 'youtube')
await ctx.send(f"Click the link 👇\n{link}")
You can replace youtube
with the other interactions i.e betrayal, chess, fishing, poker
Contributing
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
File details
Details for the file disnake_together-1.0.3.tar.gz
.
File metadata
- Download URL: disnake_together-1.0.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 274508637435d42857a85d8873c883d77e3b224b16871e41dc70c1d2d1cb3133 |
|
MD5 | 656d8c3c423eab81c32292df3b17850b |
|
BLAKE2b-256 | 4a08511fdd8cb83dd0c663724647167f84e449da846f2e6333efe93efb580527 |