This gist takes advantage of GitHub's Token Scanning feature to reset Discord Bot tokens that users post on Discord.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Chunks an array of strings into an array of an array of strings | |
* where the total characters of the strings in each chunk is less than | |
* or equal to `maxChunkCharacters`. | |
* @param data An array of strings | |
* @param maxChunkCharacters The maximum amount of characters that should be allowed per chunk | |
* @param join The character that each string will later be joined on | |
* @returns An array of an array of strings | |
* @example | |
* ```ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2021 Carter "Fyko" Himmel | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
* software and associated documentation files (the "Software"), to deal in the Software | |
* without restriction, including without limitation the rights to use, copy, modify, | |
* merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
* permit persons to whom the Software is furnished to do so, subject to the following | |
* conditions: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fyko#0001 (492374435274162177) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NzA3OTk1NjY1NjYxMTY1NTY4.XrQ6WA.yC8FjGmM3KbO0dD1wNP3jqNzq2c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Client, Collection, GuildMember, Snowflake, Structures, Guild as ImportedGuild } from 'discord.js'; | |
import GuildMemberCollector, { GuildMemberCollectorOptions } from './GuildMemberCollector'; | |
type MemberCollection = Collection<Snowflake, GuildMember>; | |
declare module 'discord.js' { | |
interface Guild { | |
awaitMembers( | |
filter: (member: GuildMember) => boolean, | |
options?: GuildMemberCollectorOptions, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[macro_use] | |
extern crate log; | |
use anyhow::Result; | |
use rustacles_brokers::amqp::AmqpBroker; | |
use serde_json::{from_slice, to_vec}; | |
use std::collections::HashMap; | |
use tokio::time::{delay_for, timeout, Duration}; | |
pub use proxy::models::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax=docker/dockerfile-upstream:experimental | |
# WARNING: THE LINE ABOVE CANNOT BE REMOVED | |
# Note: Remember to change the workdir & paths that use "trakor/inkress" | |
# https://stackoverflow.com/q/54952867 | |
# https://github.com/rust-lang/cargo/issues/2644#issuecomment-436907777 | |
# -------------------------------- | |
# building in this image | |
# -------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'node-fetch'; | |
import qs from 'querystring'; | |
enum ErrorCode { | |
'missing-input-secret' = 'Your secret key is missing.', | |
'invalid-input-secret' = 'Your secret key is invalid or malformed.', | |
'missing-input-response' = 'The response parameter (verification token) is missing.', | |
'invalid-input-response' = 'The response parameter (verification token) is invalid or malformed.', | |
'bad-request' = 'The request is invalid or malformed.', | |
'invalid-or-already-seen-response' = 'The response parameter has already been checked, or has another issue.', |
I hereby claim:
- I am fyko on github.
- I am fyko (https://keybase.io/fyko) on keybase.
- I have a public key ASAMTkMlDtCWi1VXm-H0Tjx_pF1FaI1ylldPBkPqypesJgo
To claim this, I am signing this object: