Skip to content

Instantly share code, notes, and snippets.

View lcadyptes's full-sized avatar

lcadyptes

  • Güney Kutbu
View GitHub Profile
@InterStella0
InterStella0 / Pagination_walkthrough.md
Last active December 26, 2024 15:10
A walkthrough on action based pagination in discord.py

Pagination Walkthrough in discord.py

In this tutorial I will go through the entire length of pagination in discord.py

I kindly ask you to go through the entire thing, as it is not recommended to skip the subtopics because they are interconnected in some way.

Table Content

@wellinthatcase
wellinthatcase / example.py
Last active December 17, 2020 18:10
Simple asyncpg connection.
# Simple example code to create a per-guild prefix.
import asyncpg
import asyncio
from discord.ext import commands
# Credentials for our bot and the database.
# I suggest searching up on PostgreSQL connection strings.
creds = \
@jegfish
jegfish / example_db.py
Last active September 5, 2024 09:01
Example code for connecting to and using a postgres database using discord.py and asyncpg.
# asyncpg docs: https://magicstack.github.io/asyncpg/current/
# This uses discord.py rewrite branch and .format(). If you are using the async branch of discord.py, it shouldn't matter much
# as only 'await ctx.send()' is something you should need to change. If you are using python 3.6+, you can use f strings as opposed to
# .format() for increased efficiency.
import discord
from discord.ext import commands
import asyncio
import asyncpg
@PurpleBooth
PurpleBooth / README-Template.md
Last active December 27, 2024 08:01
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites