Skip to content

Instantly share code, notes, and snippets.

View TobiasFeld22's full-sized avatar

Tobias TobiasFeld22

  • The Netherlands
View GitHub Profile
@TobiasFeld22
TobiasFeld22 / Spark-dashboard.js
Last active April 21, 2018 20:29
engine to connect to the spark dashboard on v0.1+
/* eslint prefer-destructuring: 0*/
var Spark = require("Spark")
const io = require("socket.io-client")
const Engine = Spark.engine("Spark-dashboard")
const version = "1"
Engine.code = (client) => {
if (!client.config.apiKey) {
return
}
client.socket = io("https://dashboard.discordspark.com/", {
@TobiasFeld22
TobiasFeld22 / eval.js
Last active January 7, 2018 04:18
Eval module for the Spark framework | discordspark.tk
exports.name = "eval"
exports.aliases = []
exports.level = 10;
exports.command = function(client, message) {
const clean = text => {
if (typeof(text) === "string")
return text.replace(/`/g, "`" + String.fromCharCode(8203)).replace(/@/g, "@" + String.fromCharCode(8203));
else
return text;
}
@TobiasFeld22
TobiasFeld22 / boot-function.js
Created November 25, 2017 19:23
Default files for spark
exports.name = "name-bf";
// Execute this command every specified amount of time.
exports.time = 0
// Delay for how long after the "ready" event this function should be executed
exports.delay = 0;
exports.function = function(client) {
// execute your code on boot here.
<html>
<head>
<title> Spark standard page </title>
</head>
<body>
<h1> <%- data.botname %> </h1>
<p> Made by <%- data.ownername %> </p>
<p> Running Spark <%- data.version %> </p>
@TobiasFeld22
TobiasFeld22 / LICENSE
Last active October 22, 2017 18:18
Runkit discordbots.org update endpoint
MIT License
Copyright (c) 2017 Tobias Feld (tobias.feld@hotmail.com)
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:
input[type=checkbox]{
height: 0;
width: 0;
visibility: hidden;
}
label {
cursor: pointer;
text-indent: -9999px;
width: 35px;
@TobiasFeld22
TobiasFeld22 / zalgo
Created September 11, 2017 19:16
Zalgo
T̶͍̞̞͎̭̖͔͔̦̦̺̭ͭ̓͊͑ͪ͆ͣ̐̀̾͊ͬ͊͂h̸̵̻͙̳̲̝̟̩̯̜͔̗̣̮͍̱̟̓ͧ̈͂̄̋̓͘͜͢ͅi̪̜̺̥̩̪͕̟̭͑ͩ̄̀͌̀ͯ̇͊̄̿͊͛̀͒͘͡s̛͍͍̩̼̠̭̳̀̐ͤͥ̈́ͤ̊̏̒̄̾ͫ́̕͞ ̶̛̩̩̤͉̺̙̱̱̤̟̟̣̙͇̭̘͊̊̎́͐͗͂ͯ̊̀͜ͅͅi̴̢͓̗͕̞̥͈̠̹͉͓̘̺̪͕̱͙̹ͥͤ̿͌͗͗̽͡͡͞s̨̭͎̰̳̘̾͐̅ͯͧ͂ͬ͊ͮ̇ͥ͌̒͒̚͝ ̨̡͚̱̤͇̙͖̖̱̹̦̲̱̘̭̘̫̐̄͐̎ͮͧ͋̂͛ͥ̆̋͊ͨ̽ͤ̚͘Z̧͙̫͖̮̳͖̖̩ͩͩ̋̎͟a̛̛͍͉̮̫̬̬̝͎͈͔͖̳̮͇͍̯͚̐͌͊ͭ͋̐́ͅl̷̛͈̦͚̲͚̗͕̜̘͕̲ͤ̊̔̿͗͂́́ͯ̚͟͜g̶̡̧̧̫̤̲̤͉͈̮̖̗̝̲̪̬͎̐ͮͭͣ̌̉ͨͪͩ͝ö́ͤ̇̊̌̓̐҉̼̩͕̘̬̱̯͓͔̯͇̫̙̠͠ͅ === This is Zalgo
@TobiasFeld22
TobiasFeld22 / file.js
Created March 26, 2017 20:17
progress?
var input = msg.content.split(" ")
if(input[0] == config.prefix + "accept"){
d = new Date();
if (client.guilds.get("294509304868896769").members.get(msg.author.id) == undefined){msg.channel.sendMessage("", {embed: {title: "You have no permission to execute this command!", description: "Only an **ADL Team Member** is able to do this.\nYou are: **ADL User**" , color: 0xff0000, footer: {text: ":no_entry: "}, timestamp: d}}); return}
else if (client.guilds.get("294509304868896769").members.get(msg.author.id).roles.get("295625073241620490") != undefined){msg.channel.sendMessage("", {embed: {title: "You have no permission to execute this command!", description: "Only an **ADL Team Member** is able to do this.\nYou are: **ADL User**" , color: 0xff0000, footer: {text: ":no_entry: "}, timestamp: d}}); return}
if (input[1] == null || IsNan(input[1]) == true){msg.channel.sendMessage(":1234: Please use a number"); return}
connection.query("select * from cases where cases = ?", [input[1]], function(err, resul