Skip to content

Instantly share code, notes, and snippets.

View untuned's full-sized avatar
🌷
look at those flowers

untuned untuned

🌷
look at those flowers
View GitHub Profile
@untuned
untuned / keybase.md
Last active October 6, 2021 03:50
Keybase proof

Keybase proof

I hereby claim:

  • I am untuned on github.
  • I am untuned (https://keybase.io/untuned) on keybase.
  • I have a public key whose fingerprint is 2A28 31E4 5574 E2CB 1DAD 1FB8 40C6 1E0E D031 B05F

To claim this, I am signing this object:

@untuned
untuned / delete-discord-dms.js
Last active February 28, 2019 01:56
delete all message in a discord dm
clearMessages = function(guild_id, author_id, authToken, deleted = new Set()) {
const searchURL = `https://discordapp.com/api/v6/channels/${guild_id}/messages/search?author_id=${author_id}&include_nsfw=true`
const headers = {
Authorization: authToken
}
let clock = 0
interval = 500
function delay(duration) {
return new Promise((resolve, reject) => {