Skip to content

Instantly share code, notes, and snippets.

View AtoraSuunva's full-sized avatar
🤔
🤔

Atora AtoraSuunva

🤔
🤔
View GitHub Profile
@AtoraSuunva
AtoraSuunva / hype-train.js
Created December 1, 2017 02:08
Choo chooooo!
// You can run with with node.js (v >= 8.0.0)
// node <Path to this script> [Time in ms between frames]
// node ./hype-train.js
// node ./hype-train.js 75
// Feel free to try editing the frames
const train = [String.raw`
o o o o o oo oo oo oo}
o o oo ooo oo ooo ooo ooo ooo ooo oooooo}
@AtoraSuunva
AtoraSuunva / train.js
Created October 30, 2018 00:34
choo choo
const train = [
` ooo
o ____
_||__| | ______ ______ ______
( | | | | | | |
/-()---() ~ ()--() ~ ()--() ~ ()--()`,
`
oo
o ____
@AtoraSuunva
AtoraSuunva / pinterest-remove.user.js
Created June 22, 2020 19:05
Removes Pinterest and it's 1000 domains from Google search (By shoving them into a <details>)
// ==UserScript==
// @name Google Pinterest Remover
// @description Removes Pinterest and it's 1000 domains from Google search (By shoving them into a <details>)
// @version 2
// @include http*://www.google.*/search*
// @grant none
// ==/UserScript==
const res = document.getElementById('res')
const hidden = document.createElement('details')
@AtoraSuunva
AtoraSuunva / why.md
Last active June 10, 2023 05:21
Why Slash Commands?

Recently, all of my bots have been migrated to accept slash commands (or "interactions") only.

Why?

Because:

  • They provide a nice in-client way to see what commands a bot has and what parameters commands have
  • Also provide autocomplete/choice parameters so you don't have to remember what exactly the bot expects
  • I don't have to maintain a parameter parser/validator/shlexer anymore
  • Bots literally have no choice (see below)