My implementation of a CommandTree subclass which allows for finding a mention for a given app command.
Just copy the entire third file into a new file python of your project, and import it.
@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() |
#!/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) |
My implementation of a CommandTree subclass which allows for finding a mention for a given app command.
Just copy the entire third file into a new file python of your project, and import it.
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.
You can skip this if you don't care