const Discord = module.require("discord.js");
const fs = require("fs");
module.exports.run = async (robot,message,args) => {
switch(message){
case "help":
message.channel.send("This is HELP!");
break;
case "!demo_test":
message.channel.send("This is TEST!");
break;
default:
message.channel.send("Error: command " + message + " is not defined!");
break;
}
}
player.x = lerp(player.x, pointA.x, speed);
player.y = lerp(player.y, pointA.y, speed);
public static float lerp(float v0, float v1, float t){
return v0 + t * (v1 - v0);
}
const Discord = module.require("discord.js");
const fs = require("fs");
module.exports.run = async (robot,message,args) => {
switch(message){
case "help":
// code
break;
default:
// Command is undefined
break;
}
};
module.exports.help = {
name: "название_команды"
};
module.exports.help = {
name: "название_команды"
};