Skip to content

Instantly share code, notes, and snippets.

View NickPryorMe's full-sized avatar
🏠
Working from home

Nick NickPryorMe

🏠
Working from home
View GitHub Profile
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active April 16, 2025 07:57
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
@NovaFox161
NovaFox161 / december-summary.md
Created December 17, 2021 21:00
DDevs Q&A Summary 17/12/2021

DDevs Q&A December 2021 Summary - Happy Holidays!

Forward

This is a nonexhaustive summary of the DDevs Q&A stage. Most of the points below are paraphrased for brevity. Ephasis is my own unless explicitly stated, and my opinions on certain things may shine through. Please refer to a VOD of the stage for the exact wording from the Discord Developers.

Upcoming Features (and demos if available)

  • Application Commands Permissions V2
    • "Super super super close"
    • Will not release before the holidays because fixing things on christmas is just not cool
  • Closed beta testing will occur after the holidays
@almeidx
almeidx / steam_scam.yml
Last active October 27, 2021 21:24
Zeppelin automod rule for deleting scam messages
steam_scam:
affects_bots: false
triggers:
- match_words:
only_full_words: false
case_sensitive: false
normalize: true
loose_matching: true
strip_markdown: true
match_visible_names: true
@Huskydog9988
Huskydog9988 / Microservice Discord Bot.md
Last active September 10, 2021 09:09
An overview of services for each microservice framework

Microservice Discord Bot

Resources related to microservice Discord bots. Below in Different Stacks is a list of the core libs for the bot.

Different Stacks

@112RG
112RG / microservice.md
Created October 21, 2018 04:09
Discord bot. Microservice a love hate

Please read this gist by DasWolke it goes into a much better explanation of why you should use microservice Discord bots.

This is about my experience in making a microservice discord bot.

To start let's look at the core design I was looking for in creating my bot

(https://i.imgur.com/bWxXyc3.png)

I was looking to have multiple gateways that serve different shards groups this design could allow for a beta or premium version of the bot to be hosted on the same service more easily. I also wanted plug and play workers that don't store any information and could be restarted or crash without having any downtime and be scaled just by changing the replica value in docker swarm.

@Zitrax
Zitrax / stringformat_constexpr_if.cpp
Last active November 7, 2023 23:06
stringformat with constexpr if
#include <string>
#include <iostream>
#include <memory>
/**
* Convert all std::strings to const char* using constexpr if (C++17)
*/
template<typename T>
auto convert(T&& t) {
@mbinna
mbinna / effective_modern_cmake.md
Last active April 21, 2025 14:17
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@DasWolke
DasWolke / microservice bots.md
Last active February 14, 2025 15:17
Microservice bots

Microservice Bots

What they are and why you should use them

Introduction

Recently more and more chatbots appear, the overall chatbot market grows and the platform for it grows as well. Today we are taking a close look at what benefits creating a microservice chatbot on Discord - (a communication platform mainly targeted at gamers) would provide.

The concepts and ideas explained in this whitepaper are geared towards bots with a bigger userbase where the limits of a usual bot style appear with a greater effect

Information about Discord itself

(If you are already proficient with the Discord API and the way a normal bot works, you may skip ahead to The Concept)

@jagrosh
jagrosh / jagrosh_privacy_policy.md
Last active February 6, 2025 21:44
Privacy Policy and Agreement for jagrosh's Bots

Privacy Policy

This document entails the privacy policy and agreement that you accept when adding any of jagrosh's bots to a server, or as a member of such a server. This document does not supersede the Developer Terms of Service.

Bots, Services, and Servers

The following is a list of bots to which this privacy policy applies.

  • Spectra#7794 (135251434445733888)
  • 💾❗#0863 (159133099806949376)
  • Beta#4388 (162311503821799425)
@mariocj89
mariocj89 / python-logging.md
Last active March 26, 2025 04:35
Understanding logging in Python

Logging trees

Introduction

When applications are running in production, they become black boxes that need to be traced and monitored. One of the simplest, yet main, ways to do so is logging. Logging allows us - at the time we develop our software - to instruct the program to emit information while the system is running that will be useful for us and our sysadmins.