Skip to content

Instantly share code, notes, and snippets.

View Ovyerus's full-sized avatar
😵
too many ideas!!

Michael Mitchell Ovyerus

😵
too many ideas!!
View GitHub Profile
@Ovyerus
Ovyerus / detidebot.js
Created January 25, 2017 05:33
discord seflbot that does magic
const Eris = require('eris');
const bot = new Eris("TOKEN");
const detideReplace = {
'(': ')',
')': '(',
'{': '}',
'}': '{',
'[': ']',
']': '[',
### Keybase proof
I hereby claim:
* I am ovyerus on github.
* I am ovyerus (https://keybase.io/ovyerus) on keybase.
* I have a public key ASB85aXnzaKdL3MlfWXlFbzjgmYMQlHVJ_jDSftvZ_miGQo
To claim this, I am signing this object:
class Timer {
constructor(func, time) {
if (typeof func !== 'function') throw new Error('func is not a function');
if (typeof time !== 'number') throw new Error('time is not a number');
this.timerObj = setInterval(func, time);
this.func = func;
this.time = time;
}