Skip to content

Instantly share code, notes, and snippets.

@mudkipdev
mudkipdev / colored-logging.md
Last active March 22, 2026 03:34
Colored Logging in Minestom

Colored Logging

If you do not have a logger added yet, check out this build script generator to find the proper dependency strings to include in build.gradle.kts.

If you want to customize the colors further, check out this resource from W3schools.

TinyLog

  1. Create a file named ColoredConsoleWriter.java.
package com.example;
@mudkipdev
mudkipdev / slash_commands.py
Last active June 2, 2023 04:28
A basic slash command example for discord.py v2.x.
from discord.ext import commands
from discord import app_commands
import discord
intents = discord.Intents.default()
intents.message_content = True # Ignore this line if you're not using prefix commands.
# You could use a client here instead, if you don't want to use prefix/hybrid commands.
bot = commands.Bot(intents=intents, command_prefix="!")
@mudkipdev
mudkipdev / pagination.py
Last active August 13, 2023 19:04
A discord.py embed pagination system using buttons.
from discord.ext import commands
import discord
import asyncio
__all__ = ("Paginator",)
class Paginator:
def __init__(
self,