Skip to content

Instantly share code, notes, and snippets.

View MazeW's full-sized avatar
🪻

‮ezaM MazeW

🪻
View GitHub Profile

#Hi!

image

yea
@MazeW
MazeW / run.js
Created December 25, 2018 20:22
Simple sleep function for node.js 9.3 or newer.
function sleep(n) {
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, (n * 1000));
}
// where n = seconds
// remove the * 1000 multiplier in the function to make it miliseconds
# l33t ruby bot made by yours truly
require 'discordrb'
require 'yaml'
config = YAML.load_file('config.yml')
client = Discordrb::Commands::CommandBot.new token: config['bot_token'], prefix: config['bot_prefix']
client.command(:ping, chain_usable: false, description: 'Basic ping command to test if bot is alive or not', usage: 'ping') do |event|
event.respond 'Pong!'
end
client.command(:roll, description: 'picks a random number from 1 to 6', usage: 'roll') do |event|
@MazeW
MazeW / shortArray.json
Created January 13, 2018 00:36
veri gud
This file has been truncated, but you can view the full file.
["a","aa","aah","aahed","aahing","aahs","aal","aalii","aaliis","aals","aardvark","aardvarks","aardwolf","aardwolves","aargh","aarrgh","aarrghh","aarti","aartis","aas","aasvogel","aasvogels","ab","aba","abac","abaca","abacas","abaci","aback","abacs","abacterial","abactinal","abactinally","abactor","abactors","abacus","abacuses","abaft","abaka","abakas","abalone","abalones","abamp","abampere","abamperes","abamps","aband","abanded","abanding","abandon","abandoned","abandonedly","abandonee","abandonees","abandoner","abandoners","abandoning","abandonment","abandonments","abandons","abandonware","abandonwares","abands","abapical","abas","abase","abased","abasedly","abasement","abasements","abaser","abasers","abases","abash","abashed","abashedly","abashes","abashing","abashless","abashment","abashments","abasia","abasias","abasing","abask","abatable","abate","abated","abatement","abatements","abater","abaters","abates","abating","abatis","abatises","abator","abators","abattis","abattises","abattoir","abattoirs","aba
@MazeW
MazeW / shortArray.json
Created January 13, 2018 00:35
veri gud
This file has been truncated, but you can view the full file.
["a","aa","aah","aahed","aahing","aahs","aal","aalii","aaliis","aals","aardvark","aardvarks","aardwolf","aardwolves","aargh","aarrgh","aarrghh","aarti","aartis","aas","aasvogel","aasvogels","ab","aba","abac","abaca","abacas","abaci","aback","abacs","abacterial","abactinal","abactinally","abactor","abactors","abacus","abacuses","abaft","abaka","abakas","abalone","abalones","abamp","abampere","abamperes","abamps","aband","abanded","abanding","abandon","abandoned","abandonedly","abandonee","abandonees","abandoner","abandoners","abandoning","abandonment","abandonments","abandons","abandonware","abandonwares","abands","abapical","abas","abase","abased","abasedly","abasement","abasements","abaser","abasers","abases","abash","abashed","abashedly","abashes","abashing","abashless","abashment","abashments","abasia","abasias","abasing","abask","abatable","abate","abated","abatement","abatements","abater","abaters","abates","abating","abatis","abatises","abator","abators","abattis","abattises","abattoir","abattoirs","aba
I unlock maps b