semvec/pypi-packages huggingface dataset:
nextcord-ext-activities 2022.6.11
An nextcord extension that helps you to launch activities on Discord.
License: MIT
Keywords: activities

# nextcord-ext-activities
| [PyPi](https://pypi.org/project/nextcord-ext-activities/) | [Docs](https://nextcord-ext-activities.readthedocs.io) | [Support server](https://discord.gg/dt4xFRSkeW) | [GitHub repo](https://github.com/MaskDuck/nextcord-ext-activities) |<br>
nextcord.ext.activities is an extension that helps you to launch activities on Discord. <br>

# Quick example
```py
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](https://github.com/MaskDuck/nextcord-ext-activities/tree/main/examples).

[![Powered by Nextcord](https://custom-icon-badges.herokuapp.com/badge/-Powered%20by%20Nextcord-0d1620?logo=nextcord)](https://github.com/nextcord/nextcord "Powered by Nextcord Python API Wrapper")