Skip to content

Instantly share code, notes, and snippets.

Sending Voice Messages via Discord Bots

Voice Message

Requirements:

  • An .ogg format audio file
  • A Discord bot Token

Notes:

  • files created via the vorbis encoder may not play back on mobile, therfore it's suggested to use the opus encoder for your .ogg files
@HDR
HDR / RS3Console.md
Last active October 26, 2022 09:55
Undocumented Runescape Console functionality

Undocumented Console functionality

Command Description Example
<col=ffffff> Changes the color of text <col=ff0000>This text is red
<sprite=1> Prints a sprite in console Looks like it's <sprite=69>
<img=1> Prints a chat badge in console Look at my JMOD crown! <img=1>
<lt> Prints a "less-than" symbol <lt> Hello World
<gt> Prints a "Greater-than" symbol <gt> Hello World
@HDR
HDR / ProjectRed_Segment_Display_Gate.md
Last active September 11, 2022 00:39
ProjectRed Segment Display Gate

ProjectRed Segment Display gates are controlled using Bundled Cables, each bundled cable has 16 colors, in this case the first 8 (1-8) control the right display, while the last 8 (9-16) control the left display.

Right Display

Numbers represent the decimal value for each segment

Digit (DP) G F E D C B A Hex Dec
@HDR
HDR / EmbeddedActivities.md
Last active May 27, 2023 11:46
Discord Embedded Activities List (Embedded Application ID's)
Activity ID
Awkword 879863881349087252
Betrayal.io 773336526917861400
Checkers in the park 832013003968348200
Chess in the park 832012774040141894
Doodle Crew 878067389634314250
Fishington.io 814288819477020702
Letter Tile 879863686565621790
Poker Night 755827207812677713
@HDR
HDR / argon1.sh
Last active September 19, 2021 10:46
Argon One script (Pi3/Pi4)
#!/bin/bash
argon_create_file() {
if [ -f $1 ]; then
sudo rm $1
fi
sudo touch $1
sudo chmod 666 $1
}
const char joey_firmware[]={
0x00, 0x50, 0x00, 0x20, 0x95, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@HDR
HDR / M5StickDatasheet.ino
Last active January 29, 2020 12:07
The M5StickC Datasheet, hosted on the M5StickC itself (Requires https://github.com/tzapu/WiFiManager/tree/development)
#include <M5StickC.h>
#include <WiFi.h>
#include <DNSServer.h>
#include <WiFiClient.h>
#include <WebServer.h>
#include <WiFiManager.h>
#include <ESPmDNS.h>
#include <WiFiClient.h>
WebServer webServer(80);
@HDR
HDR / RPi_I2C_driver.py
Created January 14, 2019 20:17 — forked from DenisFromHR/RPi_I2C_driver.py
RaspberryPi I2C LCD Python stuff
# -*- coding: utf-8 -*-
"""
Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic
Made available under GNU GENERAL PUBLIC LICENSE
# Modified Python I2C library for Raspberry Pi
# as found on http://www.recantha.co.uk/blog/?p=4849
# Joined existing 'i2c_lib.py' and 'lcddriver.py' into a single library
# added bits and pieces from various sources
# By DenisFromHR (Denis Pleic)
@HDR
HDR / srgb.py
Last active July 25, 2018 22:22
Blinkt single pixel RGB & brightness
#!/usr/bin/env python
import sys
import blinkt
def usage():
print("Usage: {} <pixel(0-7)> <r> <g> <b> <brightness(0-10)>".format(sys.argv[0]))
sys.exit(1)
@HDR
HDR / DS_Power_LED_Swap.md
Last active June 13, 2023 06:28
DS Lite | Power LED Swap

Welcome to a quick and simple guide on replacing the power LED on a DS Lite.

Please note that i am not responsible for any damage caused to your consoles while following this guide, do this at your own risk.

What you will need:

  • A soldering iron (Irons with smaller tips are better)
  • Tweezers
  • Any color of 0603 SMD LEDs
  • A solder wick will help in cleaning up some solder.
  • Some patience