Skip to content

Instantly share code, notes, and snippets.

View kidsonfilms-python-rules's full-sized avatar
😀
I may be slow to respond.

Siddharth Ray kidsonfilms-python-rules

😀
I may be slow to respond.
View GitHub Profile
@kidsonfilms-python-rules
kidsonfilms-python-rules / sendDiscordMsg.js
Created May 1, 2021 05:52
Send Discord Message at certain time
var robot = require("robotjs");
// Put the message you want to send
const message = ''
// Set Date as (Year, Month 0-11, Day, Hour, Minute)
const eta_ms = new Date(2021, 3, 30, 22, 41).getTime() - Date.now();
console.log(`Sending Message in ${eta_ms}ms or ${new Date(Date.now() + eta_ms)}`)
var timeout = setTimeout(function(){
@kidsonfilms-python-rules
kidsonfilms-python-rules / spam.js
Last active March 5, 2021 18:27
Spam a Text every 20 sec. in Node.js
var robot = require("robotjs");
var timerID = setInterval(function () {
robot.typeString(`i am a robot. This was developed by @kidsonfilms#4635`);
robot.keyTap('enter')
}, 20 * 1000);