Example:
function newLevel(){
clientMessage(new HTTPRequest("http://google.com").get());
}
function procCmd(str){
let args = str.split(" ");
let cmd = args.shift();
Example:
function newLevel(){
clientMessage(new HTTPRequest("http://google.com").get());
}
function procCmd(str){
let args = str.split(" ");
let cmd = args.shift();
HTTPRequest( | |
"GET", | |
"https://edroid.tk/projects/serverstatus/info.php", | |
null, | |
{responseType: "json"} | |
).then(({data}) => console.log(data)); |
let int = createInterval(() => console.log("Hello!"), 1000);
int.run();
setTimeout(() => int.stop(), 5000);
/** | |
* CommandClient | |
* have custom commands for your bot | |
* @author eDroid | |
*/ | |
const Discord = require("discord.js"); | |
class CommandClient { | |
constructor(client, prefix = "/"){ |
const readline = require("readline"); | |
class DiscordCLI { | |
constructor(client, options){ | |
this.channel = null; | |
this.client = client; | |
this.options = { | |
exit_message: "EXIT_CHANNEL", | |
prompt_format: "#:channel [You] > ", | |
incoming_format: "#:channel [:sender] > :message" |
<?php | |
/** | |
* ColorConverter | |
* @author eDroid | |
* @link https://edroidthedev.com | |
*/ | |
class ColorConverter { | |
/** | |
* Hex to RGB | |
* |
{ | |
// Make sure the %FrameworkDir% variable exists. | |
// Place the file in /Sublime Text/Data/Packages/User directory | |
// Open a .cs file and press CTRL+B | |
// Select 'C#' | |
// Voila | |
"shell_cmd": "%FrameworkDir%\\v4.0.30319\\csc.exe /nologo $file && ${file/\\.cs/\\.exe/}" | |
} |