A Python package to retrieve detailed Spotify album images for Discord integration.
Project description
discordify
A Python package to retrieve detailed Spotify album images for Discord integration.
example.py
import discord
from discord.ext import commands
from discordify import Spotify
bot = commands.Bot(
command_prefix=",",
intents=discord.Intents.all(),
allowed_mentions=discord.AllowedMentions.none()
)
@bot.command(name="spotify")
async def spotif(ctx: commands.Context, member: discord.Member = None):
member = member or ctx.author
client = Spotify(bot=bot, member=member)
content, image, view = await client.get()
await ctx.reply(content=content, file=image, view=view)
bot.run("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
discordify-0.0.1.tar.gz
(53.0 kB
view hashes)
Built Distribution
discordify-0.0.1-py3-none-any.whl
(51.2 kB
view hashes)
Close
Hashes for discordify-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 705cd3b43dde0536fffd4dd596111d24c2a982f47e794e691ca3a54e41ebd464 |
|
MD5 | f74fd48eef4621455cdde594ea26588c |
|
BLAKE2b-256 | b726852aef926735883566da3efd27a67e651b20eae91d26e34735b42019c678 |