Skip to content

Instantly share code, notes, and snippets.

View SGA-A's full-sized avatar
💫
Learning

George SGA-A

💫
Learning
View GitHub Profile
@SGA-A
SGA-A / regex.txt
Last active February 2, 2024 12:35
Fundamental-SCs
. - Any Character Except New Line
\d - Digit (0-9)
\D - Not a Digit (0-9)
\w - Word Character (a-z, A-Z, 0-9, _)
\W - Not a Word Character
\s - Whitespace (space, tab, newline)
\S - Not a Whitespace (space, tab, newline)
\b - Word Boundary (it is a word)
\B - Not a Word Boundary (it is part of a word)
@SGA-A
SGA-A / music.py
Created July 22, 2024 16:49 — forked from EvieePy/music.py
Basic music with playlist support on Rewrite
"""
Please understand Music bots are complex, and that even this basic example can be daunting to a beginner.
For this reason it's highly advised you familiarize yourself with discord.py, python and asyncio, BEFORE
you attempt to write a music bot.
This example makes use of: Python 3.6
For a more basic voice example please read:
https://github.com/Rapptz/discord.py/blob/rewrite/examples/basic_voice.py
@SGA-A
SGA-A / error_handler.py
Created July 22, 2024 16:51 — forked from EvieePy/error_handler.py
Simple Error Handling for ext.commands - discord.py
"""
If you are not using this inside a cog, add the event decorator e.g:
@bot.event
async def on_command_error(ctx, error)
For examples of cogs see:
https://gist.github.com/EvieePy/d78c061a4798ae81be9825468fe146be
For a list of exceptions:
https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#exceptions
@SGA-A
SGA-A / bot_example.py
Created July 22, 2024 16:51 — forked from EvieePy/bot_example.py
A Cogs Example for the rewrite version of - discord.py
import discord
from discord.ext import commands
import sys, traceback
"""This is a multi file example showcasing many features of the command extension and the use of cogs.
These are examples only and are not intended to be used as a fully functioning bot. Rather they should give you a basic
understanding and platform for creating your own bot.
These examples make use of Python 3.6.2 and the rewrite version on the lib.