Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Pycord Paginator is a library to paginate your messages or embeds when using Pycord.
⚠ This library is a fork of https://github.com/FlamptX/paginator.py, made for Diskord.
To install the library, open your terminal and run this command:
pip install pycord-paging
Example with reactions:
from discord import Embed
from discord.ext import commands
from paginator import Paginator, Page
bot = commands.Bot(command_prefix="!")
paginator = Paginator(bot)
@bot.event
async def on_ready():
print("Bot online")
@bot.command()
async def paginator(ctx):
pages = [
Page(embed=Embed(title="Page #1", description="Testing")),
Page(embed=Embed(title="Page #2", description="Still testing")),
Page(embed=Embed(title="Page #3", description="Guess... testing"))
]
await paginator.send(ctx.channel, pages, type=1, author=ctx.author, disable_on_timeout=False)
bot.run("...")
Example with buttons:
from discord import Embed
from discord.ext import commands
from paginator import Paginator, Page
bot = commands.Bot(command_prefix="!")
paginator = Paginator(bot)
@bot.event
async def on_ready():
print("Bot online")
@bot.command()
async def paginator(ctx):
pages = [
Page(embed=Embed(title="Page #1", description="Testing")),
Page(embed=Embed(title="Page #2", description="Still testing")),
Page(embed=Embed(title="Page #3", description="Guess... testing"))
]
await paginator.send(ctx.channel, pages, type=2, author=ctx.author, disable_on_timeout=False)
bot.run("...")
Docs will be published soon... 👀
FAQs
Pycord paginator for messages and embeds with reactions or buttons.
We found that pycord-paging 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.