
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
.. image:: https://discord.com/api/guilds/815886477066108968/embed.png :target: https://discord.gg/egvmz5NjSZ :alt: Discord server invite .. image:: https://img.shields.io/pypi/v/discake.svg :target: https://pypi.python.org/pypi/discake :alt: PyPI version info .. image:: https://img.shields.io/pypi/pyversions/discake.svg :target: https://pypi.python.org/pypi/discake :alt: PyPI supported Python versions
A discord py util library.
Python 3.8 or higher is required
.. code:: sh
# Linux/macOS
python3 -m pip install -U discake
# Windows
py -3 -m pip install -U discake
.. code:: py
import discord
from discord import Embed, Intents
from discord.ext import commands
from discake import Paginator
class MyBot(commands.Bot):
def __init__(self):
super().__init__(command_prefix = '!')
async def on_ready(self):
print('Logged on as', self.user)
client = MyBot(intents=Intents.default())
@client.command(name = 'paginate', description = 'Pagination using the library')
async def _paginate(ctx):
entry_list = []
for i in range(0,20):
embed = Embed(description = f'This is the {i}th page')
entry_list.append(embed)
paginate_object = Paginator(
entries = entry_list,
timeout = 10.0
)
await paginate_object.send(ctx)
client.run('TOKEN')
.. image:: https://invidget.switchblade.xyz/egvmz5NjSZ?theme=light :target: https://discord.gg/egvmz5NjSZ :alt: Support Server
.. image:: https://discord.c99.nl/widget/theme-3/545953035776688139.png :target: https://discord.gg/egvmz5NjSZ :alt: Author Info
FAQs
A discord py support library containing utilities.
We found that discake demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.