Skip to content

Instantly share code, notes, and snippets.

Danny Rapptz

Block or report user

Report or block Rapptz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View discord_qol.md

I restricted these to client-only QoL features that I thought were small.

  • Reverse sorting search
  • Group by Guild in Emoji panel so you can see what guild an emoji is in
  • Disabling "GIF" or "Gift" buttons in the message box
  • Hover over for complete timestamp on messages
    • Maybe the same for embed timestamps?
  • More time information in call messages (e.g. how long it lasted for) (I know it's provided in the message since I have it in d.py)
  • Lock channels so you don't accidentally move them by dragging (this one might be less trivial iunno)
  • Character count indicator for knowing if you're reaching 2000 characters. too hard apparently
View .md

The day after she diagnosed a patient with cancer, Dr. Theepa Sundaralingam gave him her personal phone number and Instagram handle.

Over the next few months in 2015, frequent flirtatious texting turned into hugging and kissing and eventually progressed to the Toronto doctor masturbating and having intercourse with her patient in his hospital bed while he was being treated for his illness. Toronto oncologist Dr. Theepa Sundaralingam leaves a discipline hearing at the College of Physicians and Surgeons on Wednesday. (Andrew Francis Wallace / Toronto Star)

And for all that — which was laid out in documents filed at Sundaralingam’s discipline hearing — the doctor was stripped of her licence Wednesday by a discipline panel at the College of Physicians and Surgeons of Ontario, having been found guilty of sexually abusing a patient.

“From virtually the beginning of your doctor/patient relationship, you crossed boundaries and ultimately sexually abused an extremely vulnerable patient suffering from a life-threate

View DiscordAvatar.cs
using Discord;
namespace Yonom.DiscordTools
{
static class DiscordAvatar
{
// for documentation purposes only
private static enum DefaultAvatars
{
blurple = 0,
View gist:a4f2c24dcd9507be2404e1f9a943f02e
2016-11-02 17:31:20 #python_discord-py @luke#7172: uhhh
2016-11-02 17:31:36 #python_discord-py @Fuyukai desu#0588: what
2016-11-02 17:31:46 #python_discord-py @luke#7172: :/
2016-11-02 17:31:50 #python_discord-py @luke#7172: I don't know how to do this
2016-11-02 17:32:27 #python_discord-py @luke#7172: I need to get info of another shard
2016-11-02 17:33:03 #python_discord-py @luke#7172: like server amount, etc
2016-11-02 17:33:07 #python_discord-py @luke#7172: whats the best method to do this
2016-11-02 17:34:07 #python_discord-py @Fuyukai desu#0588: ipc
2016-11-02 17:34:37 #python_discord-py @luke#7172: Indian Penal Code?
2016-11-02 17:34:41 #python_discord-py @Recchan#4305: who shards
View webhooks.py
import requests
import json
USER_TOKEN = 'token'
API_BASE = 'https://discordapp.com/api'
class Embeds:
def __init__(self, data):
basic_keys = ('title', 'type', 'description', 'url', 'timestamp', 'color',
'footer', 'image', 'thumbnail', 'provider', 'author')
@Rapptz
Rapptz / custom_commands.py
Last active Oct 29, 2018
Showing off custom commands using discord.ext
View custom_commands.py
import discord
from discord.ext import commands
import json, inspect
import functools
import re
# some JSON set up for our storage because >lazy<
class CustomCommandEntry:
__slots__ = ['name', 'content', 'guild_id']
@Rapptz
Rapptz / changelog.md
Last active Jan 30, 2016
Changelog for R. Danny
View changelog.md

Changelog (Updated Jan. 29th 2016)

The bot has been completely rewritten.

For feature requests or questions feel free to ping/private message @Danny.

Big changes

  • Most things don't require quotes anymore. A lot of people had a hard time with the concept of adding quotes to things so if it's the last argument of a command
@Rapptz
Rapptz / map_generator.py
Created Jan 26, 2016
The random map generator for Splatoon tournaments.
View map_generator.py
from __future__ import division
import random
from collections import Counter, namedtuple
import bisect
import math
# for my own purposes.
debug = False
def weighted_choice(choices):
@Rapptz
Rapptz / rdanny.md
Created Dec 20, 2015
R. Danny v3.0.0
View rdanny.md

R. Danny v3.0.0 ideas:

  • Fully asyncio rewrite.
    • Will use the async branch (or v0.10.0) when it becomes available.
  • Authority system based on permissions/roles.
    • e.g. Manage Messages -> !cleanup is valid
    • e.g. Bot Mod -> can call bot commands without having the permissions themselves
    • This will make it easier for people to administrate on servers I'm not on.
  • Remove cronjob and pass it in as a background task to the event loop
    • Lowers the need of dependencies by quite a bit.
View breaking.md

Breaking changes from v0.8.0 to v0.9.0:

  • All HTTP requests now throw exceptions.
  • send_message no longer takes in a string ID for destination.
    • Use discord.Object(id='...') instead.
  • discord.InvalidEventName is removed
  • discord.InvalidDestination is renamed to discord.ClientException
  • on_server_create was renamed to on_server_join
  • on_server_delete was renamed to on_server_remove
  • A lot of the factory methods in discord.Colour were renamed.
You can’t perform that action at this time.