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")
Comparision:
discord
spotify mobile notification
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.2.tar.gz
(53.4 kB
view hashes)
Built Distribution
discordify-0.0.2-py3-none-any.whl
(51.4 kB
view hashes)
Close
Hashes for discordify-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf39d2c934b608a2d8a31ba11beffe78726bb7d7be9ed656699955985ffe01c7 |
|
MD5 | a4dd79eca476e0525031d3e7a02b40b4 |
|
BLAKE2b-256 | 917910e01e5860177fc366567590a763d948dd4821142321351b00ee1f70e4e5 |