An nextcord extension that helps you to launch activities on Discord.
Project description
nextcord-ext-activities
| PyPi | Docs | Support server | GitHub repo |
nextcord.ext.activities is an extension that helps you to launch activities on Discord.
Quick example
import nextcord
from nextcord.ext import activities, commands
bot = commands.Bot(command_prefix="$")
@bot.event
async def on_ready():
print(f"Logged in as {str(bot.user)} (ID {bot.user.id})")
@bot.command()
async def poker(ctx, channel: nextcord.VoiceChannel):
invite_link = await channel.create_activity_invite(activities.Activity.poker)
await ctx.send(invite_link.url)
@bot.command()
async def betrayal(ctx, channel: nextcord.VoiceChannel):
invite_link = await channel.create_activity_invite(activities.Activity.betrayal)
await ctx.send(invite_link.url)
bot.run("token here")
You can find more example in the example directory.
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
Close
Hashes for nextcord-ext-activities-2022.6.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25462326d33b9c747ecc9ed7c6d99ff052f6f396395a6c46069f1aeb7728bb18 |
|
MD5 | 6f3bb3b76ad9e0b01d85d51fb234abc8 |
|
BLAKE2b-256 | 27bc8e463eed47792e575ed917ce667604e225e4a7eca202f0b40a59a6642d13 |