Skip to content

Instantly share code, notes, and snippets.

View Soheab's full-sized avatar
📚

Soheab Soheab

📚
  • 15:46 (UTC +01:00)
View GitHub Profile
@No767
No767 / 01-free-hosting-bad.md
Last active September 30, 2025 05:49
Explanation of why free hosts for Discord bots are bad

Why Free Hosting is Bad

Contact Noelle for any concerns or questions with this gist

When looking for hosting your bot, free services and/or providers that claim to support hosting Discord Bots. Do not use them. Why? Let me explain.

The Drawbacks

Free hosts are providers who specialize in offering an free platform to host projects.

@Rapptz
Rapptz / keepass.md
Last active September 3, 2025 13:59
Setting up KeePass

Setting Up KeePass

I frequently see discussions around which password manager to use. I personally use [KeePass][main]. This is an open source program that allows you to have control in your data. The database format is encrypted so as long as you keep your master password secure, the chance of someone getting access to your passwords is practically zero.

This document is just meant as a signpost to steer you in the right direction of how to set up KeePass across multiple operating systems and have your file synced in the cloud all while paying $0 and not having to set up a single server to do so.

Why KeePass?

You can skip this if you don't care

@LeoCx1000
LeoCx1000 / .README.md
Last active May 20, 2025 19:22
Mentionable CommandTree implementation to allow mentioning slash commands in discord.py

discord.py MentionableTree implementation

My implementation of a CommandTree subclass which allows for finding a mention for a given app command.

How to use?

Just copy the entire third file into a new python file of your project, and import MentionableTree from it.

You can also use git clone [gist link] folder_name and then from folder_name import MentionableTree

@jaburns
jaburns / server_notcached.py
Last active May 31, 2024 16:51 — forked from aallan/server_notcached.py
A non-caching version of Python's SimpleHTTPServer
#!/usr/bin/env python3
import socketserver
import http.server
PORT = 8080
class MyHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
def end_headers(self):
self.send_my_headers()
http.server.SimpleHTTPRequestHandler.end_headers(self)
@Painezor
Painezor / Checks.py
Last active April 20, 2025 16:07
Built-in Checks for the commands extension of discord py
@commands.guild_only()
# Command cannot be used in private messages.
@commands.dm_only()
# Command can only be used in private messages.
@commands.is_owner()
# Command can only be used by the bot owner.
@commands.is_nsfw()